diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-11-25 13:27:08 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-11-25 13:27:08 -0200 |
commit | d0bec93f54005df62b99aba205d995a7cbff4bf9 (patch) | |
tree | 208749e23858483a1208e417c13bcff9b212b0cb | |
parent | b6e8be209eaf98d859e353f39b98d4703785d692 (diff) | |
download | puppet-nodo-d0bec93f54005df62b99aba205d995a7cbff4bf9.tar.gz puppet-nodo-d0bec93f54005df62b99aba205d995a7cbff4bf9.tar.bz2 |
Adding ensure parameter to domain::check
-rw-r--r-- | manifests/subsystems/domain.pp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/subsystems/domain.pp b/manifests/subsystems/domain.pp index b4d0954..d076052 100644 --- a/manifests/subsystems/domain.pp +++ b/manifests/subsystems/domain.pp @@ -11,9 +11,9 @@ class domain { source => "puppet://$server/modules/nodo/bin/domain-check", } - define check($interval = '60', $email = 'root', $hour = '0', - $minute = '0', $weekday = '0', - $file = false) { + define check($interval = '60', $email = 'root', $hour = '0', + $minute = '0', $weekday = '0', + $file = false, $ensure = present) { $cert_check = "/usr/local/bin/domain-check -a -q -x ${interval} -e ${email}" @@ -28,7 +28,7 @@ class domain { hour => $hour, minute => $minute, weekday => $weekday, - ensure => present, + ensure => $ensure, require => File["/usr/local/bin/domain-check"], } } |