diff options
Diffstat (limited to 'modules/git/manifests/mirror.pp')
-rw-r--r-- | modules/git/manifests/mirror.pp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/git/manifests/mirror.pp b/modules/git/manifests/mirror.pp index b3a9be9a..f7364846 100644 --- a/modules/git/manifests/mirror.pp +++ b/modules/git/manifests/mirror.pp @@ -3,18 +3,18 @@ define git::mirror( $source, $refresh = '*/5') { include git::common - exec { "/usr/bin/git clone --mirror $source $name": - alias => "git mirror $name", + exec { "/usr/bin/git clone --mirror ${source} ${name}": + alias => "git mirror ${name}", creates => $name, - before => File["$name/description"], + before => File["${name}/description"], } - file { "$name/description": + file { "${name}/description": content => $description, } - cron { "update $name": - command => "cd $name ; /usr/bin/git fetch -q", + cron { "update ${name}": + command => "cd ${name} ; /usr/bin/git fetch -q", minute => $refresh } } |