diff options
Diffstat (limited to 'modules/git/manifests/snapshot.pp')
-rw-r--r-- | modules/git/manifests/snapshot.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/git/manifests/snapshot.pp b/modules/git/manifests/snapshot.pp index 32e77d36..1156928e 100644 --- a/modules/git/manifests/snapshot.pp +++ b/modules/git/manifests/snapshot.pp @@ -9,14 +9,14 @@ define git::snapshot( $source, # Idealy, should be handled by vcsrepo # https://github.com/bruce/puppet-vcsrepo # once it is merged in puppet - exec { "/usr/bin/git clone -b $branch $source $name": + exec { "/usr/bin/git clone -b ${branch} ${source} ${name}": creates => $name, user => $user } if ($refresh != '0') { - cron { "update $name": - command => "cd $name && /usr/bin/git pull -q && /usr/bin/git submodule --quiet update --init --recursive", + cron { "update ${name}": + command => "cd ${name} && /usr/bin/git pull -q && /usr/bin/git submodule --quiet update --init --recursive", user => $user, minute => $refresh } |