Hi,
I have a custom facter which spits out like this
# facter -p
xfs_mounts => ["/docroot", "/ecr", "/intprd", "/mysql"]
Now I want to iterate over this. so thought lambda is the one.
$a=$xfs_mounts
each($a) | $value | { device { $value : } }
which is not working, giving error as follows
Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: Evaluation Error: Error while evaluating a Resource Statement,
Duplicate declaration: Monit::Device[o] is already declared in file
/home/edp/rpuppet/master/modules/monit/manifests/init.pp:147; cannot
redeclare at
/home/edp/rpuppet/master/modules/monit/manifests/init.pp:147 at
/home/edp/rpuppet/master/modules/monit/manifests/init.pp:147:25 on node
example.com
Its taking the whole xfs_mounts, which I don't want.
Any idea, to achieve this. Thanks,
Cheers,
Ashish
--
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/54B65894.4070806%40gmail.com.
For more options, visit https://groups.google.com/d/optout.