From 9f92a3d7b883082587461dbcb882d28ea7668df8 Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 11 Apr 2006 15:57:40 +0000 Subject: 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 --- lib/puppet/client/master.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') 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 -- cgit