Hello
If i have:
$files = [ '/etc/aaa',/etc/'bbb','/etc/ccc']
and then using file resource to create them like:
file { $files:
ensure => file,
}
is it possible to refere somehow to item in loop so that i can:
file { $files:
ensure => file,
content => template("module${file}"),
}
I know that i can define my own type with each loop - i am interested if maybe i don't have to.
↧