summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-04-11 15:57:40 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-04-11 15:57:40 +0000
commit9f92a3d7b883082587461dbcb882d28ea7668df8 (patch)
tree4f2e5fe4b66d5725ee5bfadef6503028d263c297 /lib/puppet
parent4d750418d00bdd39118493003d60481a35212ed1 (diff)
downloadpuppet-9f92a3d7b883082587461dbcb882d28ea7668df8.tar.gz
puppet-9f92a3d7b883082587461dbcb882d28ea7668df8.tar.xz
puppet-9f92a3d7b883082587461dbcb882d28ea7668df8.zip
Adding the puppet client version to the fact list as "clientversion"
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1100 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/client/master.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/puppet/client/master.rb b/lib/puppet/client/master.rb
index 6c30a4431..1da921aa4 100644
--- a/lib/puppet/client/master.rb
+++ b/lib/puppet/client/master.rb
@@ -9,6 +9,8 @@ class Puppet::Client::MasterClient < Puppet::Client
new configurations, where you want to fix the broken configuration
rather than reverting to a known-good one."
]
+
+
)
@drivername = :Master
@@ -19,6 +21,10 @@ class Puppet::Client::MasterClient < Puppet::Client
facts[name] = fact.downcase
}
+ # Add our client version to the list of facts, so people can use it
+ # in their manifests
+ facts["clientversion"] = Puppet.version.to_s
+
facts
end