Hi,
I'm would like to have a profile for example for apache.
profile::apache
who can pass some hash to apache. For example let's say I've
profile::apache::vhosts:
vhost1:
....
vhost2:
....
and I want to do
class profile::apache (
Hash $vhosts
)
{
create_resources('apache::vhost', $vhosts)
}
But now I want to add some parameter who's not in the apache::vhost, for
example :
profile::apache::vhosts:
vhost1:
- monitored : true
....
vhost2:
- monitored : false
....
so before I can do the
create_resources('apache::vhost', $something)
i need to exclude « monitored » from that hash table. And...I don't know
how to do that. I try map, reduce etc.. and was unable to exclude some
nested key/value from a hash.
Regards
--
Albert SHIH
DIO bâtiment 15
Observatoire de Paris
xmpp: [email protected]
Heure local/Local time:
Wed Sep 19 14:50:21 CEST 2018
--
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/20180919132426.GG5102%40io.chezmoi.fr.
For more options, visit https://groups.google.com/d/optout.