From: Silvio Rhatto Date: Fri, 25 Nov 2011 15:27:08 +0000 (-0200) Subject: Adding ensure parameter to domain::check X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d0bec93f54005df62b99aba205d995a7cbff4bf9;p=puppet-nodo.git Adding ensure parameter to domain::check --- 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"], } }