Ahoi,

On Thu, Nov 21, 2013 at 12:01:14PM +0100, Felix Frank wrote:
> Hi,
> 
> tough call. You may have to replicate the file type in a defined type
> like so:
> 
> define my_file($owner="root",$mode="644",...,$template="") {
> 
>   if $template { File[$name] { content => template($template) } }
> 
>   file { $name: owner => $owner, ... }
> }
> 
> Then you can create_resource('my_file',hiera('input')) and pass an
> actual "template" parameter to your define.
> 

Damn thats look quite a *little* bit more complicated.
It evens look some kind of hack. Thats ok with me :)
Is there a place to do RTFM about when things are evaluated?
At least so I can understand why I need File[$name]?

thx
Erkan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1Vk1QZ-0005ta-4u%40linsenraum.de.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to