From 3ac955e05dce5fbff4aedaf3e023f25db5cd9afb Mon Sep 17 00:00:00 2001 From: Jan Vansteenkiste Date: Thu, 30 Aug 2012 10:09:28 +0200 Subject: Allow overriding the target path of a (concat) file and use a custom name. --- manifests/init.pp | 2 ++ 1 file changed, 2 insertions(+) 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, -- cgit v1.2.3