summaryrefslogtreecommitdiff
path: root/manifests/master
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-24 19:57:57 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-24 19:57:57 -0200
commite53682c533248f365c8258dfb024d97156018c44 (patch)
treed34278cace3f77bda0d2de59ea9634ac7d5495fc /manifests/master
parent55851d5607bfea2cbc79aa2ec269559b2b6ec6fc (diff)
downloadpuppet-puppet-e53682c533248f365c8258dfb024d97156018c44.tar.gz
puppet-puppet-e53682c533248f365c8258dfb024d97156018c44.tar.bz2
Refactoring present/absent scheme
Diffstat (limited to 'manifests/master')
-rw-r--r--manifests/master/update.pp7
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",