diff options
| author | Luke Kanies <luke@madstop.com> | 2007-08-22 22:13:23 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-08-22 22:13:23 -0500 |
| commit | 7c4d39ec09c10871d7eb234fe4392381245ff443 (patch) | |
| tree | 32476596280f2b04107e00bcf256b8d7d4826794 /lib/puppet | |
| parent | b599862fc85c968676799edde865a96faa66a75b (diff) | |
| download | puppet-7c4d39ec09c10871d7eb234fe4392381245ff443.tar.gz puppet-7c4d39ec09c10871d7eb234fe4392381245ff443.tar.xz puppet-7c4d39ec09c10871d7eb234fe4392381245ff443.zip | |
Adding environment information to the client fact list. The environment is retrieved from the normal Puppet configuration, so it is set via puppet.conf or the cli, rather than being a normal fact.
Diffstat (limited to 'lib/puppet')
| -rw-r--r-- | lib/puppet/network/client/master.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/puppet/network/client/master.rb b/lib/puppet/network/client/master.rb index 41fd0f7f2..0286ab87b 100644 --- a/lib/puppet/network/client/master.rb +++ b/lib/puppet/network/client/master.rb @@ -38,6 +38,9 @@ class Puppet::Network::Client::Master < Puppet::Network::Client # in their manifests facts["clientversion"] = Puppet.version.to_s + # And add our environment as a fact. + facts["environment"] = Puppet[:environment] + facts end |
