Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the purpose of $puppet::agent::env? #109

Closed
bschonec opened this issue Oct 1, 2015 · 1 comment
Closed

What's the purpose of $puppet::agent::env? #109

bschonec opened this issue Oct 1, 2015 · 1 comment

Comments

@bschonec
Copy link

bschonec commented Oct 1, 2015

I don't see that $::env has any value at all. It's not a facter fact and puppet 'environment' is actually:

[root@ltstd001 puppet]# puppet config print | grep environment
environment = production
[root@ltstd001 puppet]#

I don't see that $::env works at all for my environment.

@ghoneycutt
Copy link
Owner

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

puppet::agent::env: production

Or you could create a custom fact, $::env, that is set to 'production'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants