On Tuesday, June 11, 2013 7:04:05 AM UTC-5, Peter Van Biesen wrote:
>
>
> Related: ENC can override the puppet.conf, can the site.pp do this too ? 
> Can I set an entry to force an agent to be in a particular environment, 
> whatever is in the puppet.conf ?
>
>
Not in site.pp, no.  The environment setting is exposed in Puppet manifests 
as a top-level variable, and once set during a given catalog run, the 
values of Puppet variables cannot be changed.

Note, in fact, that that $manifestdir/site.pp is merely the default choice 
for the entry-point manifest.  An alternative entry-point can be specified 
in puppet.conf ('manifest' or 'manifestdir' property), and in fact 
different entry-point manifests can be specified for different 
environments.  Therefore, the environment must be determined before the 
entry-point manifest is parsed.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to