adding libaugeas-ruby
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
class puppet::common ($ensure = 'present') {
|
||||
class puppet::common (
|
||||
$ensure = 'present') {
|
||||
$pkg_ens = $ensure ? {
|
||||
'present' => 'latest',
|
||||
default => $ensure,
|
||||
}
|
||||
|
||||
package { 'facter': ensure => $pkg_ens }
|
||||
|
||||
package { 'libaugeas-ruby': }
|
||||
$ens_dir = $ensure ? {
|
||||
'present' => 'directory',
|
||||
default => $ensure,
|
||||
@@ -32,6 +35,6 @@ class puppet::common ($ensure = 'present') {
|
||||
$factpath = "${pv_dir}/lib/facter"
|
||||
|
||||
# add facter variable to custom facts.
|
||||
file { '/etc/profile.d/puppet.sh': content => "export FACTERLIB=\"${factpath}\"\n",
|
||||
file { '/etc/profile.d/puppet.sh': content => "export FACTERLIB=\"${factpath}\"\n",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user