Puppet Class: exportfact
- Defined in:
- manifests/init.pp
Overview
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'manifests/init.pp', line 1
class exportfact {
$facterdir = $puppetversion ? {
/Enterprise/ => '/etc/puppetlabs/facter',
default => '/etc/facter'
}
ensure_resource(file,
$facterdir,
{ ensure => directory })
$factsdir = "$facterdir/facts.d"
ensure_resource(file,
"$factsdir",
{ ensure => directory,
require => File[$facterdir] })
}
|