summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorPeter Meier <peter.meier@immerda.ch>2011-06-23 11:05:43 +0200
committerPeter Meier <peter.meier@immerda.ch>2011-06-23 11:05:43 +0200
commit45dfa6984cb185afc85c183152fbc6c2837e1345 (patch)
tree8e6701ea363b5cc11b47c447b7e9095310c58e75 /manifests
parentcfda8dd6ac58435d017fda6311b3c2394297d09f (diff)
downloadpuppet-concat-45dfa6984cb185afc85c183152fbc6c2837e1345.tar.gz
puppet-concat-45dfa6984cb185afc85c183152fbc6c2837e1345.tar.bz2
don't use a hardcoded concatdir
Get the concat base directory from a fact -> makes it useable if Puppet's :vardir is not /var/lib/puppet/. This fixes problems with PE and makes the module also useable for puppet runs as unpriviledged user.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/setup.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/setup.pp b/manifests/setup.pp
index fa8c7eb..5b3ad26 100644
--- a/manifests/setup.pp
+++ b/manifests/setup.pp
@@ -14,7 +14,7 @@
# It also copies out the concatfragments.sh file to /usr/local/bin
class concat::setup {
$root_group = 0
- $concatdir = "/var/lib/puppet/concat"
+ $concatdir = $concat_basedir
$majorversion = regsubst($puppetversion, '^[0-9]+[.]([0-9]+)[.][0-9]+$', '\1')
file{"/usr/local/bin/concatfragments.sh":