On Tuesday, October 8, 2013 12:06:18 PM UTC-5, wilddog64 wrote:
>
> It seems that instead of add the following line in [master], they have to 
> be in [agent] for dynamic environment to work.  So the document does not 
> reflect what PE 3.x is.
>
> On Oct 8, 2013, at 7:52 AM, wilddog64 <[email protected] <javascript:>> 
> wrote:
>
> So I follow this 
> document<https://puppetlabs.com/blog/git-workflow-and-puppet-environments>to 
> setup the puppet dynamic environment, and my puppet.conf for dynamic 
> environment settings looks like this,
>
>     # Setup dynamic environments with R10k
>     environment = production
>     manifest    = $confdir/environments/$environment/manifests/default.pp
>     modulepath  = 
> $confdir/environments/$environment/modules:$confdir/environments/$environment/dist:/opt/puppet/share/puppet/modules/
>
>
> The 'manifest' and 'modulepath' parameters are meaningful only to the 
master.  It should be harmless to copy them into the [agent] section, but 
not useful.  On the other hand, the 'environment' setting is meaningful (in 
different ways) to both agent and master, so if you want to specify a 
non-default environment for an agent then you do need to specify it in the 
[agent] section or in the [main] section.  Although that may not be clear 
from the document you referenced, the doc is consistent with that.  The 
example config for dynamic environments in fact sets the environment in 
both the [main] section *and* the [agent] section, and even in the [master] 
section as well.


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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to