diff options
author | Michael Scherer <misc@mageia.org> | 2011-03-08 12:29:52 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-03-08 12:29:52 +0000 |
commit | 04ec2e6320e223217fba79db58d7aac7a589c933 (patch) | |
tree | ca447dbfd78f526f503a5ec1a553cb747b3f96b4 /modules/subversion | |
parent | 4920481b72cf1a608b0eb3c68f32e56f77a43d58 (diff) | |
download | puppet-04ec2e6320e223217fba79db58d7aac7a589c933.tar puppet-04ec2e6320e223217fba79db58d7aac7a589c933.tar.gz puppet-04ec2e6320e223217fba79db58d7aac7a589c933.tar.bz2 puppet-04ec2e6320e223217fba79db58d7aac7a589c933.tar.xz puppet-04ec2e6320e223217fba79db58d7aac7a589c933.zip |
- do not create the cronjob if the corresponding checkout didn't succeed
Diffstat (limited to 'modules/subversion')
-rw-r--r-- | modules/subversion/manifests/init.pp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/subversion/manifests/init.pp b/modules/subversion/manifests/init.pp index 95ce34cd..175b2b2a 100644 --- a/modules/subversion/manifests/init.pp +++ b/modules/subversion/manifests/init.pp @@ -273,7 +273,8 @@ class subversion { cron { "update $name": command => "cd $name && /usr/bin/svn update -q", user => $user, - minute => $refresh + minute => $refresh, + requires => Exec["/usr/bin/svn co $source $name"], } } @@ -300,6 +301,7 @@ class subversion { cron { "update $name": command => "/usr/bin/svnsync synchronize file://$name", minute => $refresh, + requires => Exec["/usr/local/bin/create_svn_mirror.sh $name $source"], } } } |