On Friday, November 22, 2013 6:50:27 PM UTC-6, erkules wrote:
>
> 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",...,$
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) } }
>
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',hier
Doing create_resources('file',hiera_hash('input'))
works great for some hiera like
input:
/tmp/a.txt:
owner: root
ensure: file
...
Im not able to put any template() stuff in there
input:
/tmp/a.txt:
owner: root
ensure: file
content: template("create_re/aha.erb")
Instead of