HomePhorge

(PUP-2104) Add cfacter setting to enable cfacter implementation.
f41800ab4c0aUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-2104) Add cfacter setting to enable cfacter implementation.

Adding a --cfacter setting that will replace the facter implementation
with the native facter implementation if the following conditions are
met:

  • cfacter is installed
  • the version of cfacter is at least 0.2.0 (not yet released).
  • facter has not evaluated any facts by the time the setting is set.

To accomplish this last point, certain default setting values needed to
be delay-evaluated as they relied on facts. Therefore a :default
for a setting now accepts a Proc and calls the Proc only once when the
default value is needed.

Details

Provenance
Peter Huene <peter.huene@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUe69979feb5ff: (maint) Remove unnecessary facter stub in compiler_spec.rb.
Branches
Unknown
Tags
Unknown

Event Timeline

Peter Huene <peter.huene@puppetlabs.com> committed rPUf41800ab4c0a: (PUP-2104) Add cfacter setting to enable cfacter implementation. (authored by Peter Huene <peter.huene@puppetlabs.com>).Jun 27 2014, 1:44 AM