I’ve been able to provision CentOS & Ubuntu hosts on my new Foreman instance. Great!
I noticed that Foreman isn’t installing the Puppet agent, and I’m confused why.
I see the following code in the
Preseed default finish template, but I don’t understand what this does. The Foreman Installer did install and configure a Puppet server, but it doesn’t seem to be getting picked up when I provision a host.
<% # safemode renderer does not support unary negation pm_set = @host.puppetmaster.empty? ? false : true puppet_enabled = pm_set || host_param_true?('force-puppet') ...
And further down:
<% if puppet_enabled %> <% if host_param_true?('enable-puppetlabs-pc1-repo') || host_param_true?('enable-puppetlabs-repo') || host_param_true?('enable-puppetlabs-puppet5-repo') -%> <%= snippet 'puppetlabs_repo' %> <% end -%> <%= snippet 'puppet_setup' %> <% end -%>
What am I missing?