summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vansteenkiste <jan@vstone.eu>2012-08-30 10:09:28 +0200
committerJan Vansteenkiste <jan@vstone.eu>2012-08-30 10:09:28 +0200
commit3ac955e05dce5fbff4aedaf3e023f25db5cd9afb (patch)
treede64028312905737226f1347ddd6ce105ada02b0
parent00259779effdd210b7ad7b3e35551ddadd37116e (diff)
downloadpuppet-concat-3ac955e05dce5fbff4aedaf3e023f25db5cd9afb.tar.gz
puppet-concat-3ac955e05dce5fbff4aedaf3e023f25db5cd9afb.tar.bz2
Allow overriding the target path of a (concat) file and use a custom name.
-rw-r--r--manifests/init.pp2
1 files changed, 2 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 8741ec7..bd6358e 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -94,6 +94,7 @@
# - The final file can be referened as File["/path/to/file"] or
# File["concat_/path/to/file"]
define concat(
+ $path = $name,
$owner = $::id,
$group = $concat::setup::root_group,
$mode = '0644',
@@ -189,6 +190,7 @@ define concat(
}
file { $name:
+ path => $path,
ensure => present,
alias => "concat_${name}",
group => $group,