summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-08-22 22:13:23 -0500
committerLuke Kanies <luke@madstop.com>2007-08-22 22:13:23 -0500
commit7c4d39ec09c10871d7eb234fe4392381245ff443 (patch)
tree32476596280f2b04107e00bcf256b8d7d4826794 /lib/puppet
parentb599862fc85c968676799edde865a96faa66a75b (diff)
downloadpuppet-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.rb3
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