-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require puppet server installed before setting file user to puppet #113
Conversation
I am testing this change to see if it affects the errors I am seeing on install |
I don't think this would work, https://github.com/Katello/puppet-capsule/blob/master/manifests/init.pp#L222-L243 But, there should already be a puppet user on the box, as puppet is what's running the code in this class. |
So, I wasn't sure this would work either, but I just got a successful install using this and theforeman/puppet-katello#156 . If you think the uid is a safer option, I can re-tool the PR and re-run my test. Been so long since I saw success on an install. |
I'm really surprised that works... :-\ Puppet must be able to resolve the dependencies, even though it looks like a loop to me. IMHO the UID is probably safer, maybe @ekohl has a suggestion |
8b57cf5
to
ad50063
Compare
OK - so I tested this with the update to use '52' as the user for the UID and that gave me the same green result testing installs locally. |
IIRC puppet 4 client no longer creates the user, just the server. I'd not be happy with using an ID because not every OS guarantees that to be the same. I know at least Debian doesn't and I don't know if puppetlabs will commit itself to the same UID. Not sure if I have a better idea though. |
Since we only support CentOS with this today, I'd like us to just take this as is to fix the issues and we can re-visit this when we get to other OSes, or what I think is more likely to happen this all gets re-factored. |
UID's are guaranteed on Red Hat-based OS's, puppet is forever enshrined as uid 52: https://git.fedorahosted.org/cgit/setup.git/tree/uidgid#n61 |
ad50063
to
2cc10b3
Compare
Although, the long term goal should be to support other OS's, and eventually maybe puppet-certs exists in some form that works with Foreman standalone... this isn't ideal for those cases. But for now, especially to avoid cross-module dependencies as much as possible, the UID should be good. APT from me |
I agree this is for now the best solution, just not happy that this is the best solution ;) |
No description provided.