diff options
author | Thomas Backlund <tmb@mageia.org> | 2015-10-20 00:38:50 +0300 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2015-10-20 00:38:50 +0300 |
commit | bf817c6ea3036d8fd69995a767f5071e19232fb9 (patch) | |
tree | 987f586d487d87863920cf9fcc7525f3587d065c /modules/git/manifests/snapshot.pp | |
parent | 6a9988b82160f4f516ceb36b48acdd8f49458659 (diff) | |
download | puppet-bf817c6ea3036d8fd69995a767f5071e19232fb9.tar puppet-bf817c6ea3036d8fd69995a767f5071e19232fb9.tar.gz puppet-bf817c6ea3036d8fd69995a767f5071e19232fb9.tar.bz2 puppet-bf817c6ea3036d8fd69995a767f5071e19232fb9.tar.xz puppet-bf817c6ea3036d8fd69995a767f5071e19232fb9.zip |
lint fixes for git
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 } |