summaryrefslogtreecommitdiffstats
path: root/lib/facter/puppetversion.rb
blob: d2eb1f30614a311b3710434ffb2b4ec1e6756314 (plain)
1
2
3
4
5
6
7
8
9
10
Facter.add(:puppetversion) do
    setcode do
        begin
            require 'puppet'
            Puppet::PUPPETVERSION.to_s
        rescue LoadError
            nil
        end
    end
end