Hi,

You can use a default node definition, checking if the hostname is inside
any of your array declarations.

Regards,
El 23/04/2014 12:28, "Sans" <[email protected]> escribió:

>
> Hi all,
>
> For some historical reason, our hosts are not systematically named nor
> matches with the service(s) it runs and I don't see it's changing any time
> soon. So using a Regex in the nodename is not really an option for me. I
> have four environments - Dev, Int, Stage and Live - and I've just started
> using hiera to define the nodes like this:
>
> curr_coll_list:
>>     - mon510.back.local
>>     - mon507.mgrt.local
>>
>> curr_db_list:
>>     - mon512.mgrt.local
>>     - pdb511.back.local
>>     - pdb504.back.local
>>
>
> Is there any way I can use that to apply a set of configurations to, say
> curr_coll_list? Or, what are the other options I have?
> I know that node can have a comma separated list of host names but that
> doesn't make things any easier for me.
>
> Best,
> San
>
> --
> 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/c8369c3a-be6b-4623-add3-a4dfea4da1d9%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/c8369c3a-be6b-4623-add3-a4dfea4da1d9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAF_B3dcH%3DFnVw1zYhoXn5DAFftMeNPDMPHsFpsq5hjLRXpr2ig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to