summaryrefslogtreecommitdiff
path: root/manifests/setup.pp
diff options
context:
space:
mode:
authorChristian G. Warden <cwarden@xerus.org>2011-12-05 14:37:18 -0800
committerChristian G. Warden <cwarden@xerus.org>2011-12-05 16:19:24 -0800
commit772241575315a4881ec0e01ac12ee6549970ef30 (patch)
treee41cba29bcb6d4f1d3059996c471a910d01ed800 /manifests/setup.pp
parent0cd6bacfc92e581a988c2c82cc23472dff63a8b0 (diff)
downloadpuppet-concat-772241575315a4881ec0e01ac12ee6549970ef30.tar.gz
puppet-concat-772241575315a4881ec0e01ac12ee6549970ef30.tar.bz2
Fix use of unqualified variable names
Fully qualify $::id, $::puppetversion, and $::concat_basedir.
Diffstat (limited to 'manifests/setup.pp')
-rw-r--r--manifests/setup.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/setup.pp b/manifests/setup.pp
index 53092ab..2c1d343 100644
--- a/manifests/setup.pp
+++ b/manifests/setup.pp
@@ -13,12 +13,13 @@
#
# It also copies out the concatfragments.sh file to /usr/local/bin
class concat::setup {
+ $id = $::id
$root_group = $id ? {
root => 0,
default => $id
}
- $concatdir = $concat_basedir
- $majorversion = regsubst($puppetversion, '^[0-9]+[.]([0-9]+)[.][0-9]+$', '\1')
+ $concatdir = $::concat_basedir
+ $majorversion = regsubst($::puppetversion, '^[0-9]+[.]([0-9]+)[.][0-9]+$', '\1')
file{"${concatdir}/bin/concatfragments.sh":
owner => $id,