cleaning up
This commit is contained in:
@@ -5,10 +5,22 @@ class puppet::common ($ensure = 'present') {
|
||||
default => $ensure,
|
||||
}
|
||||
}
|
||||
$facts_d = '/etc/facter/facts.d'
|
||||
File['/etc/facter'] -> File[$facts_d]
|
||||
|
||||
file { ['/etc/facter', $facts_d]:
|
||||
ensure => $ensure ? {
|
||||
'present' => 'directory',
|
||||
default => $ensure,
|
||||
},
|
||||
mode => 0755,
|
||||
owner => root,
|
||||
group => root,
|
||||
}
|
||||
|
||||
# add facter variable to custom facts.
|
||||
file { "/etc/profile.d/puppet.sh":
|
||||
content => "export FACTERLIB=\"${factpath}\"\n",
|
||||
ensure => $ensure,
|
||||
ensure => 'absent',
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user