-
Notifications
You must be signed in to change notification settings - Fork 287
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
fixes #16560 - use new snippets for config management #6317
Conversation
@stbenjam i'm not really familiar with this area, what is the best way to test this PR? |
Well if you really want to test, the only way to do it is provision a client. The goal of theforeman/forklift#295 is to make that a little easier, it sets up an all-in-one libvirt provisioning environment. It's still a bunch of steps as not everything can be automated, but at least it's like 7 steps instead of 40. |
@stbenjam i'll give theforeman/forklift#295 a shot, thx |
There actually might be an issue since theforeman/puppet-foreman_proxy#267 was merged, I'll have a fix for it shortly if you want to hold off running the playbook until after lunch |
ya i can hold off, no worries |
(assigning this to myself to test a script) |
@stbenjam after provisioning, I get pretty close but it looks like the server hostnames are all just "puppet", and the provisioned system is unable to get its cert |
Did you follow the notes here and modify the puppet_setup snippet? theforeman/forklift#295 (comment) |
I added it to |
Yea, that's the problem, sorry. It's a little confusing - updating files doesn't change the template, they're stored in the DB. The files are only read by db:seeds. You need to go into the templates page in the UI and edit it (and potentially unlock it). Or, edit the files and run db:seed again. Either way, confirm the contents of the puppet_setup snippet has the extra or condition in it for enable-puppet4. |
@stbenjam I am still having trouble with this, I'm not sure where I am going wrong. I made the following changes to the templates:
After that I hit the "rebuild pxe default" button, not sure if that matters. I still have the nested guest running if there's anything you want me to look at on the guest. |
No need to touch puppet.conf, or the rebuild pxe default. You rebuilt the guest after making the changes? You included the changes here from this PR in the templates (particularly Katello kickstart default)? Can you share the rendered kickstart? Go to the host page, click the 'Templates' tab and on "Provisioning template" click Review. |
ah, it looks like it is using /etc/puppet still which does not exist:
|
You updated |
That looks like the old puppet.conf snippet, not the new puppet_setup one to me. |
@stbenjam i did not :( I only made the change on the filesystem for this PR, and added 299 in the template editor. I'll make the additional template changes now |
ACK
|
🏃 🏃 🏃 🏃 (pretend it is four marionette puppets) |
(cherry picked from commit e4fb873)
(cherry picked from commit e4fb873)
Goes along with theforeman/community-templates#299. Users will need to specifically set an "enable-puppet4" param if they want puppet 4.
The eventual goal is to get rid of these templates, but after looking at this today, it's pretty involved. We need to make Katello work with the redhat snippet in foreman https://github.com/theforeman/community-templates/blob/develop/snippets/redhat_register.erb#L16-L42, among some other changes possibly.