aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/manifests/snapshot.pp
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2015-10-20 00:38:50 +0300
committerThomas Backlund <tmb@mageia.org>2015-10-20 00:38:50 +0300
commitbf817c6ea3036d8fd69995a767f5071e19232fb9 (patch)
tree987f586d487d87863920cf9fcc7525f3587d065c /modules/git/manifests/snapshot.pp
parent6a9988b82160f4f516ceb36b48acdd8f49458659 (diff)
downloadpuppet-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.pp6
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
}