aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-07-06 16:54:06 +0000
committerNicolas Vigier <boklm@mageia.org>2013-07-06 16:54:06 +0000
commit92088122f2d1f3fbe63b506fd8e8bd312847000b (patch)
tree24c1594e4f209314559e4c67c3348cfb592ea9cc /modules/git
parent5d315569131f82b38643dda70ea230012093d143 (diff)
downloadpuppet-92088122f2d1f3fbe63b506fd8e8bd312847000b.tar
puppet-92088122f2d1f3fbe63b506fd8e8bd312847000b.tar.gz
puppet-92088122f2d1f3fbe63b506fd8e8bd312847000b.tar.bz2
puppet-92088122f2d1f3fbe63b506fd8e8bd312847000b.tar.xz
puppet-92088122f2d1f3fbe63b506fd8e8bd312847000b.zip
git::snapshot: don't add cron if $refresh == '0'
Diffstat (limited to 'modules/git')
-rw-r--r--modules/git/manifests/snapshot.pp12
1 files changed, 7 insertions, 5 deletions
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
+ }
}
}