Sha256: d98fd26fd95ff6755efcdc1654ab91dc7e65a44d3304e17907fcb410572b4cb9

Contents?: true

Size: 342 Bytes

Versions: 83

Compression:

Stored size: 342 Bytes

Contents

# Fact: puppetversion
#
# Purpose: Return the version of puppet installed.
#
# Resolution:
#   Requires puppet via Ruby and returns the value of its version constant.
#
# Caveats:
#

Facter.add(:puppetversion) do
  setcode do
    begin
      require 'puppet/version'
      Puppet.version.to_s
    rescue LoadError
      nil
    end
  end
end

Version data entries

83 entries across 83 versions & 2 rubygems

Version Path
facter-2.5.7 lib/facter/puppetversion.rb
facter-2.5.7-x86-mingw32 lib/facter/puppetversion.rb
facter-2.5.7-x64-mingw32 lib/facter/puppetversion.rb
facter-2.5.7-universal-darwin lib/facter/puppetversion.rb
facter-2.5.6-x86-mingw32 lib/facter/puppetversion.rb
facter-2.5.6-x64-mingw32 lib/facter/puppetversion.rb
facter-2.5.6-universal-darwin lib/facter/puppetversion.rb
facter-2.5.6 lib/facter/puppetversion.rb
facter-2.5.5-x86-mingw32 lib/facter/puppetversion.rb
facter-2.5.5-x64-mingw32 lib/facter/puppetversion.rb
facter-2.5.5-universal-darwin lib/facter/puppetversion.rb
facter-2.5.5 lib/facter/puppetversion.rb
facter-2.5.4-x86-mingw32 lib/facter/puppetversion.rb
facter-2.5.4-x64-mingw32 lib/facter/puppetversion.rb
facter-2.5.4-universal-darwin lib/facter/puppetversion.rb
facter-2.5.4 lib/facter/puppetversion.rb
bolt-0.24.0 vendored/facter/lib/facter/puppetversion.rb
bolt-0.23.0 vendored/facter/lib/facter/puppetversion.rb
bolt-0.22.0 vendored/facter/lib/facter/puppetversion.rb
bolt-0.21.8 vendored/facter/lib/facter/puppetversion.rb