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