are there iterators and loops in puppet?
Older versions of the puppet language have no support for loops. But you can use an array instead of a simple string for the title and declare several resources at the same time with the same params: $b = ‘/opt/app’ file { [ “$b/app1”, “$b/app2” ]: ensure => directory, owner => ‘root’, group => ‘root’, … Read more