Add cfacter to puppet3 nodes

CFacter is a rewrite of facter in C. It can live next to ruby facter and
will replace facter when puppet.conf is set to do so. For now, put it on
machines so we can get used to it and experiment with using it speed
things up. The primary advantage is that it is faster.

Change-Id: I3433a670eaf7718cb20311835b9109504312a2ef
This commit is contained in:
Spencer Krum 2015-07-02 15:22:49 -07:00
parent 959c24466c
commit 2600c7f0ba

View File

@ -263,10 +263,12 @@ class openstack_project::template (
'2.7.': { '2.7.': {
$pin_facter = '1.' $pin_facter = '1.'
$pin_puppetdb = '1.' $pin_puppetdb = '1.'
$cfacter = false
} }
/^3\./: { /^3\./: {
$pin_facter = '2.' $pin_facter = '2.'
$pin_puppetdb = '2.' $pin_puppetdb = '2.'
$cfacter = true
} }
default: { default: {
fail("Puppet version not supported") fail("Puppet version not supported")
@ -289,6 +291,12 @@ class openstack_project::template (
} }
if $cfacter {
package { 'cfacter':
ensure => latest,
}
}
# Which Puppet do I take? # Which Puppet do I take?
# Take $puppet_version and pin to that version # Take $puppet_version and pin to that version
if ($::osfamily == 'Debian') { if ($::osfamily == 'Debian') {