summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR.I.Pienaar <rip@devco.net>2012-08-30 03:39:47 -0700
committerR.I.Pienaar <rip@devco.net>2012-08-30 03:39:47 -0700
commite8e1282b6d367a202d2b63f967e4d2d484c16470 (patch)
tree7cf362052b91670c0f2982eda57112dc5d984d1d
parent7490f60302f0187d306c594d68b30a6d75bc18c8 (diff)
parent370e60280d74ada1e2ed130034e34bb7955bc929 (diff)
downloadpuppet-concat-e8e1282b6d367a202d2b63f967e4d2d484c16470.tar.gz
puppet-concat-e8e1282b6d367a202d2b63f967e4d2d484c16470.tar.bz2
Merge pull request #32 from UnifiedPost/develop
Fixes various puppet-lint warnings.
-rw-r--r--manifests/fragment.pp3
-rw-r--r--manifests/init.pp2
-rw-r--r--manifests/setup.pp9
3 files changed, 9 insertions, 5 deletions
diff --git a/manifests/fragment.pp b/manifests/fragment.pp
index 908d565..68bfd9b 100644
--- a/manifests/fragment.pp
+++ b/manifests/fragment.pp
@@ -29,6 +29,9 @@ define concat::fragment($target, $content='', $source='', $order=10, $ensure = '
'', 'absent', 'present', 'file', 'directory': {
crit('No content, source or symlink specified')
}
+ default: {
+ #do nothing, make puppet-lint happy.
+ }
}
}
default: { File{ source => $source } }
diff --git a/manifests/init.pp b/manifests/init.pp
index 8398e92..960098d 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -218,8 +218,8 @@ define concat(
}
file { $name:
- path => $path,
ensure => present,
+ path => $path,
alias => "concat_${name}",
group => $group,
mode => $mode,
diff --git a/manifests/setup.pp b/manifests/setup.pp
index 38aeb96..fc6cb93 100644
--- a/manifests/setup.pp
+++ b/manifests/setup.pp
@@ -26,15 +26,16 @@ class concat::setup {
}
$majorversion = regsubst($::puppetversion, '^[0-9]+[.]([0-9]+)[.][0-9]+$', '\1')
+ $fragments_source = $majorversion ? {
+ 24 => 'puppet:///concat/concatfragments.sh',
+ default => 'puppet:///modules/concat/concatfragments.sh'
+ }
file{"${concatdir}/bin/concatfragments.sh":
owner => $id,
group => $root_group,
mode => '0755',
- source => $majorversion ? {
- 24 => 'puppet:///concat/concatfragments.sh',
- default => 'puppet:///modules/concat/concatfragments.sh'
- };
+ source => $fragments_source;
[ $concatdir, "${concatdir}/bin" ]:
ensure => directory,