Issue #17692 has been updated by Henrik Lindberg.

Status changed from Accepted to Duplicate

This is basically a duplicate of issue #16753 which now has a solution in 
review (making it possible to query).
----------------------------------------
Bug #17692: Puppet doesn't report environment as fact
https://projects.puppetlabs.com/issues/17692#change-77910

Author: Kamil Swiatkowski
Status: Duplicate
Priority: Normal
Assignee: Henrik Lindberg
Category: agent
Target version: 3.1.0
Affected Puppet version: 3.0.1
Keywords: 
Branch: 


Hi,

Yesterday I updated puppet server to 3.0.1 and a few clients from 2.7 to 3.0.1. 
I use external node classifier. The script need to know what environment was 
set by the agent. For 2.7 agent I could find environment in yaml disk cache 
located in /var/lib/puppet/yaml/facts/nodename_fqdn.yaml. For 3.0.1 client it's 
impossible. There is no fact named environment.

It's very annoing that I can't figure out what environment is requested by 
client (especially when invoking puppet agent by command line and passing 
--environment parameter for testing purposes).

Passing requested environment to ENC as a second command line parameter is 
probably the best solution. I know that it was already discussed e.g. 
http://projects.puppetlabs.com/issues/3910 but maybe it should be reconsidered?




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to