summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
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