{"action":"created","issue":{"url":"https://api.github.com/repos/ghoneycutt/puppet-module-puppet/issues/109","labels_url":"https://api.github.com/repos/ghoneycutt/puppet-module-puppet/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/ghoneycutt/puppet-module-puppet/issues/109/comments","events_url":"https://api.github.com/repos/ghoneycutt/puppet-module-puppet/issues/109/events","html_url":"https://github.com/ghoneycutt/puppet-module-puppet/issues/109","id":109346727,"number":109,"title":"What's the purpose of $puppet::agent::env?","user":{"login":"bschonec","id":9570174,"avatar_url":"https://avatars.githubusercontent.com/u/9570174?v=3","gravatar_id":"","url":"https://api.github.com/users/bschonec","html_url":"https://github.com/bschonec","followers_url":"https://api.github.com/users/bschonec/followers","following_url":"https://api.github.com/users/bschonec/following{/other_user}","gists_url":"https://api.github.com/users/bschonec/gists{/gist_id}","starred_url":"https://api.github.com/users/bschonec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bschonec/subscriptions","organizations_url":"https://api.github.com/users/bschonec/orgs","repos_url":"https://api.github.com/users/bschonec/repos","events_url":"https://api.github.com/users/bschonec/events{/privacy}","received_events_url":"https://api.github.com/users/bschonec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-01T17:32:11Z","updated_at":"2015-10-01T20:06:59Z","closed_at":null,"body":"I don't see that $::env has any value at all.  It's not a facter fact and puppet 'environment' is actually:\r\n\r\n[root@ltstd001 puppet]# puppet config print | grep environment\r\nenvironment = production\r\n[root@ltstd001 puppet]# \r\n\r\nI don't see that $::env works at all for my environment."},"comment":{"url":"https://api.github.com/repos/ghoneycutt/puppet-module-puppet/issues/comments/144833337","html_url":"https://github.com/ghoneycutt/puppet-module-puppet/issues/109#issuecomment-144833337","issue_url":"https://api.github.com/repos/ghoneycutt/puppet-module-puppet/issues/109","id":144833337,"user":{"login":"ghoneycutt","id":313891,"avatar_url":"https://avatars.githubusercontent.com/u/313891?v=3","gravatar_id":"","url":"https://api.github.com/users/ghoneycutt","html_url":"https://github.com/ghoneycutt","followers_url":"https://api.github.com/users/ghoneycutt/followers","following_url":"https://api.github.com/users/ghoneycutt/following{/other_user}","gists_url":"https://api.github.com/users/ghoneycutt/gists{/gist_id}","starred_url":"https://api.github.com/users/ghoneycutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghoneycutt/subscriptions","organizations_url":"https://api.github.com/users/ghoneycutt/orgs","repos_url":"https://api.github.com/users/ghoneycutt/repos","events_url":"https://api.github.com/users/ghoneycutt/events{/privacy}","received_events_url":"https://api.github.com/users/ghoneycutt/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T20:06:59Z","updated_at":"2015-10-01T20:06:59Z","body":"It is a variable used by the puppet module. This is a work around when you run puppet initially you are in a given environment though you may bootstrap into another environment. I add the following to hiera\r\n\r\n``` yaml\r\npuppet::agent::env: production\r\n```\r\n\r\nOr you could create a custom fact, `$::env`, that is set to 'production'"}}