aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2015-10-20 10:02:03 +0300
committerThomas Backlund <tmb@mageia.org>2015-10-20 10:02:03 +0300
commitbe92cc0c09248d5d6ef9120815ee6d7f27261b80 (patch)
tree71be6c0b43fe0d9dbaff3131410dc5f5faba3af6
parent3b46f2e196802443ed00ac697e125307096b0979 (diff)
downloadpuppet-be92cc0c09248d5d6ef9120815ee6d7f27261b80.tar
puppet-be92cc0c09248d5d6ef9120815ee6d7f27261b80.tar.gz
puppet-be92cc0c09248d5d6ef9120815ee6d7f27261b80.tar.bz2
puppet-be92cc0c09248d5d6ef9120815ee6d7f27261b80.tar.xz
puppet-be92cc0c09248d5d6ef9120815ee6d7f27261b80.zip
lint fixes for mirror
-rw-r--r--modules/mirror/manifests/mirrordir.pp10
-rw-r--r--modules/mirror/templates/mirrordir1
2 files changed, 5 insertions, 6 deletions
diff --git a/modules/mirror/manifests/mirrordir.pp b/modules/mirror/manifests/mirrordir.pp
index 4e73ed62..c4c2c543 100644
--- a/modules/mirror/manifests/mirrordir.pp
+++ b/modules/mirror/manifests/mirrordir.pp
@@ -2,7 +2,7 @@ define mirror::mirrordir ($remoteurl,
$localdir,
$rsync_options='-avH --delete') {
include mirror::base
- $lockfile = "$mirror::base::locksdir/$name"
+ $lockfile = "$mirror::base::locksdir/${name}"
file { $localdir:
ensure => directory,
@@ -10,14 +10,14 @@ define mirror::mirrordir ($remoteurl,
group => 'mirror',
}
- mga_common::local_script { "mirror_$name":
+ mga_common::local_script { "mirror_${name}":
content => template('mirror/mirrordir'),
}
- cron { "mirror_$name":
+ cron { "mirror_${name}":
user => mirror,
minute => '*/10',
- command => "/usr/local/bin/mirror_$name",
- require => Mga_common::Local_script["mirror_$name"],
+ command => "/usr/local/bin/mirror_${name}",
+ require => Mga_common::Local_script["mirror_${name}"],
}
}
diff --git a/modules/mirror/templates/mirrordir b/modules/mirror/templates/mirrordir
index 53655aa0..b8bf9fb6 100644
--- a/modules/mirror/templates/mirrordir
+++ b/modules/mirror/templates/mirrordir
@@ -13,4 +13,3 @@ fi
echo "sync in progress since $(date)" > "$lockfile"
/usr/bin/rsync $rsync_options "$remoteurl" "$localdir"
rm -f "$lockfile"
-