diff options
Diffstat (limited to 'manifests/master/update.pp')
-rw-r--r-- | manifests/master/update.pp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/manifests/master/update.pp b/manifests/master/update.pp index f650482..ddc8ba1 100644 --- a/manifests/master/update.pp +++ b/manifests/master/update.pp @@ -1,5 +1,6 @@ class puppet::master::update( - $method = hiera('puppet::master::update::method', 'cron') + $ensure = present, + $method = hiera('puppet::master::update::method', 'cron') ) { # puppet update script file { "/usr/local/sbin/update-puppet-conf.sh": @@ -16,7 +17,7 @@ class puppet::master::update( user => puppet, minute => "*/5", ensure => $method ? { - 'cron' => present, + 'cron' => $ensure, default => absent, }, require => [ File["/usr/local/sbin/update-puppet-conf.sh"], User["puppet"] ], @@ -28,7 +29,7 @@ class puppet::master::update( owner => gitolite, group => gitolite, ensure => $method ? { - 'cron' => absent, + 'cron' => $ensure, default => present, }, source => "puppet:///modules/puppet/post-update.sh", |