]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
Add PE facts to stdlib
authorMatthaus Owens <matthaus@puppetlabs.com>
Tue, 23 Oct 2012 21:13:11 +0000 (14:13 -0700)
committerMatthaus Owens <matthaus@puppetlabs.com>
Thu, 25 Oct 2012 00:23:42 +0000 (17:23 -0700)
commitcdf3b05f35f78971203dfd9fadd2552ad5a41bd4
treeb1c1f5c24b8a66c2eb97fdfa8b0d32c9bde165cb
parent417d219aa6e42f2a16af42c98aa063fc1d9d2ecd
Add PE facts to stdlib

As many PE modules have PE specific functionality, but are deployed to all
nodes, including FOSS nodes, it is valuable to be able to selectively enable
those PE specific functions. These facts allow modules to use the is_pe fact to
determine whether the module should be used or not. The facts include is_pe,
pe_version, pe_major_version, pe_minor_version, and pe_patch_version. For PE
2.6.0 those facts would have values true, 2.6.0, 2, 6, and 0, respectively.
lib/facter/pe_version.rb [new file with mode: 0644]