----- Original Message -----
> From: "Jonathan Gazeley" <[email protected]>
> To: "puppet-users" <[email protected]>
> Sent: Friday, September 5, 2014 3:59:28 PM
> Subject: Re: [Puppet Users] --configprint

> On 05/09/14 15:02, R.I.Pienaar wrote:
>>
>> ----- Original Message -----
>>> From: "Jonathan Gazeley" <[email protected]>
>>> To: "puppet-users" <[email protected]>
>>> Sent: Friday, September 5, 2014 2:53:27 PM
>>> Subject: [Puppet Users] --configprint
>>> Hi peeps,
>>>
>>> I've just noticed that "puppet agent --configprint runinterval" is not
>>> doing what I expect. Why does it misreport the environment? The node is
>>> indeed checking into the netops environment.
>>>
>>> [jg4461@web-team-dev ~]$ puppet agent --configprint environment
>>> production
>> Try it as root.
>>
> 
> OK, that gives the expected output. My question is based on this custom
> fact:
> 
> https://gist.github.com/hunner/1989071
> 
> MCollective caches the fact as non-root and so I am unable to match on
> environment when using mco.

Use the preferred method where in a manifest you dump out the facts to a yaml
file for mcollective to use.

the method you posted there won't work reliably anymore as the node isnt the
only thing in charge of its environment - the master and ENC can now override
it.

https://docs.puppetlabs.com/mcollective/deploy/standard.html#populate-the-fact-file

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/838694262.515.1409929486719.JavaMail.zimbra%40devco.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to