On Thursday, September 12, 2013 1:07:12 PM UTC-5, Guy Knights wrote:
>
> Actually, one thing I've noticed while trying to troubleshoot this issue 
> is that I can't see any evidence that puppet agent is using the environment 
> specified in its config file. If I run puppet agent with the --debug flag 
> there is no mention of the environment whatsoever.
>
> Is there any way to get puppet agent to tell me what environment it's 
> using when it requests the catalogue from the master?
>
>
Yes, call the notice() function to emit that information into the master's 
log, or declare a Notify resource to emit it into the agent's log.  Example:

notify { 'My environment':
  message => "my environment is ${::environment}"
}

Put that at top level in your site.pp to ensure that it is declared for 
every node, no matter what.


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