Hi,
My actual requirement is like this. Think I have an array like this.
$filenames=['carbon.xml','loadbalancer.conf','master-datasources.xml']
I want to call template for each file name in the array. There are tree
file names in my array and I want to call below code for each file name
file { '${filename}':
path => "/home/malintha/adikari5/${filenames}",
ensure => present,
owner => 'root',
group => 'root',
mode => '0777',
content => template("config/${filenames}.xml.erb"),
}
How this can be done ?
On Tuesday, June 24, 2014 3:40:54 PM UTC+5:30, Malintha Adikari wrote:
>
> Is there anyway to use loop inside puppet manifest.
>
> Regards,
> Malintha Adikari
>
--
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/f56f0607-528f-4a96-8a69-7a908177e998%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.