diff options
author | Michael Scherer <misc@mageia.org> | 2011-02-02 19:38:51 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-02-02 19:38:51 +0000 |
commit | d6c98b72a84a924588b27f922b48e775f64b4cae (patch) | |
tree | 23bf858c702d82eadbf32231deb45fb425c289c5 /modules/git | |
parent | 6c0596b3010c5307c606c4dafb32166f1d10a3fb (diff) | |
download | puppet-d6c98b72a84a924588b27f922b48e775f64b4cae.tar puppet-d6c98b72a84a924588b27f922b48e775f64b4cae.tar.gz puppet-d6c98b72a84a924588b27f922b48e775f64b4cae.tar.bz2 puppet-d6c98b72a84a924588b27f922b48e775f64b4cae.tar.xz puppet-d6c98b72a84a924588b27f922b48e775f64b4cae.zip |
add a require for ordering
Diffstat (limited to 'modules/git')
-rw-r--r-- | modules/git/manifests/init.pp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/git/manifests/init.pp b/modules/git/manifests/init.pp index 624c1cc6..f9714e4e 100644 --- a/modules/git/manifests/init.pp +++ b/modules/git/manifests/init.pp @@ -80,12 +80,14 @@ class git { $options = " " } - exec { "/usr/bin/git svn clone $options $source $name": + exec { "/usr/bin/git svn init $options $source $name": + alias => "git svn $name", creates => $name, } cron { "update $name": - command => "cd $name && /usr/bin/git svn rebase" , + # done in 2 times, so fetch can fill the repo after init + command => "cd $name && /usr/bin/git svn fetch && /usr/bin/git svn rebase" , minute => $refresh } # TODO find a way to prevent commit @@ -94,7 +96,8 @@ class git { owner => root, group => root, mode => 755, - content => "#!bin/bash\nfalse" + content => "#!bin/bash\nfalse", + require => Exec["git svn $name"] } } |