diff options
author | Nicolas Vigier <boklm@mageia.org> | 2012-02-05 23:48:51 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2012-02-05 23:48:51 +0000 |
commit | acd935a626f701b4bde2e9d32294d53b8fa5b647 (patch) | |
tree | df718f955b8dcb5939d263d24ebb9a077de053a3 /modules/subversion | |
parent | 6e828853e40c76be4b08097bb21f38de2f1228e0 (diff) | |
download | puppet-acd935a626f701b4bde2e9d32294d53b8fa5b647.tar puppet-acd935a626f701b4bde2e9d32294d53b8fa5b647.tar.gz puppet-acd935a626f701b4bde2e9d32294d53b8fa5b647.tar.bz2 puppet-acd935a626f701b4bde2e9d32294d53b8fa5b647.tar.xz puppet-acd935a626f701b4bde2e9d32294d53b8fa5b647.zip |
allow having no cron to update subversion snapshot
Diffstat (limited to 'modules/subversion')
-rw-r--r-- | modules/subversion/manifests/init.pp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/modules/subversion/manifests/init.pp b/modules/subversion/manifests/init.pp index 70e4e38b..cb0ebbbf 100644 --- a/modules/subversion/manifests/init.pp +++ b/modules/subversion/manifests/init.pp @@ -275,12 +275,14 @@ class subversion { require => Package['subversion'] } - cron { "update $name": - command => "cd $name && /usr/bin/svn update -q", - user => $user, - minute => $refresh, - require => Exec["/usr/bin/svn co $source $name"], - } + if ($refresh != '0') { + cron { "update $name": + command => "cd $name && /usr/bin/svn update -q", + user => $user, + minute => $refresh, + require => Exec["/usr/bin/svn co $source $name"], + } + } } class mirror { |