I migrate 200 nodes to foreman, the main issue i have now is that the
puppet configuration for those hosts isn't feet to foreman definition.
What is the best way to publish updated puppet configuration with the
options from foreman?
ca_server = <%= @host.puppet_ca_server %>
certname = <%= @host.certname %>
environment = <%= @host.environment %>
server = <%= @host.puppetmaster %>
I installed puppet module for agent, i can edit the puppet.conf.erb
template but does the puppet will know @host.* variable ?
this is something we would like to tackle in future. Currently there is
no way to redeploy files templated by Foreman.
We have some work-in-progress branch that opens up the Puppet template
to public, therefore you should be able to construct a command (and
execute it via mcollective or similar) that would redeploy the file via
wget or curl. But we are not there yet.
I guess the easiest way for now would be ssh-in-loop overwriting the
configuration with correct values for your environment. You should be
able to use our API to query the smart proxy names if you have more then
one.
LZ
···
On Sun, Jul 27, 2014 at 02:06:38AM -0700, eliran shlomo wrote:
> Hi,
>
> I migrate 200 nodes to foreman, the main issue i have now is that the
> puppet configuration for those hosts isn't feet to foreman definition.
>
> What is the best way to publish updated puppet configuration with the
> options from foreman?
> ca_server = <%= @host.puppet_ca_server %>
> certname = <%= @host.certname %>
> environment = <%= @host.environment %>
> server = <%= @host.puppetmaster %>
>
> I installed puppet module for agent, i can edit the puppet.conf.erb
> template but does the puppet will know @host.* variable ?
>
> BR,
>
> eliran
>
> --
> You received this message because you are subscribed to the Google Groups "Foreman users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
> To post to this group, send email to foreman-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/foreman-users.
> For more options, visit https://groups.google.com/d/optout.