]> gitweb.fluxo.info Git - puppet-concat.git/commitdiff
Allow overriding the target path of a (concat) file and use a custom name.
authorJan Vansteenkiste <jan@vstone.eu>
Thu, 30 Aug 2012 08:09:28 +0000 (10:09 +0200)
committerJan Vansteenkiste <jan@vstone.eu>
Thu, 30 Aug 2012 08:09:28 +0000 (10:09 +0200)
manifests/init.pp

index 8741ec79e07648b31908b2e021f187c6f0923cb0..bd6358e3d3d368bf79152385452c2a2ad3c9bae6 100644 (file)
@@ -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,