From 92088122f2d1f3fbe63b506fd8e8bd312847000b Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sat, 6 Jul 2013 16:54:06 +0000 Subject: git::snapshot: don't add cron if $refresh == '0' --- modules/git/manifests/snapshot.pp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/git/manifests/snapshot.pp b/modules/git/manifests/snapshot.pp index 8b903700..47ace403 100644 --- a/modules/git/manifests/snapshot.pp +++ b/modules/git/manifests/snapshot.pp @@ -13,10 +13,12 @@ define git::snapshot( $source, user => $user } - cron { "update $name": - # FIXME no -q ? - command => "cd $name && /usr/bin/git pull", - user => $user, - minute => $refresh + if ($refresh != '0') { + cron { "update $name": + # FIXME no -q ? + command => "cd $name && /usr/bin/git pull", + user => $user, + minute => $refresh + } } } -- cgit v1.2.1