Issue #17692 has been updated by eric sorenson.

Status changed from Unreviewed to Accepted
Assignee set to Andrew Parker
Target version set to 3.1.0

Andy this is related to the yaml node cache and should probably be addressed as 
part of #16753 for 3.1.0
----------------------------------------
Bug #17692: Puppet doesn't report environment as fact
https://projects.puppetlabs.com/issues/17692#change-77848

Author: Kamil Swiatkowski
Status: Accepted
Priority: Normal
Assignee: Andrew Parker
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