On Monday, January 13, 2014 5:38:39 AM UTC-6, Jonathan Gazeley wrote: > > Hi all, > > I'm using hiera with puppet to create Nagios contacts. However, it seems > that Nagios contacts do not get put into multiple contact groups. No > errors are thrown, but I think this is wrong. > > After running the below code the contact "jg4461" is only placed in the > "resnet" contactgroup (see bottom). Is this expected behaviour? > >
I've always hated the documentation of Puppet's nagios_* resource types. It is good for showing the properties defined for each type, but nearly useless for conveying how to use them. As a result, I *don't* use them, but I nevertheless have two guesses about what may be going on: 1. Puppet is filtering the declared contactgroups to remove groups that are not defined in the target file. That would probably happen as-of the time it applies the nagios_contact resource, so if you are relying on Puppet also to manage the relevant contactgroups then the relative order matters. 2. Puppet expects a comma-delimited string of contact group names (as will appear in the target config file) rather than an array. Upon receiving an array, it somehow chooses just one of its elements. I'm leaning toward (1), since I'm having trouble guessing out how Puppet would end up selecting the second element of the array instead of the first or the stringification of the whole array. John -- 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/1c15e6ae-16a4-47a7-ada3-d00d98d16722%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.