Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Self refencence

$
0
0
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.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>