Re: [Puppet Users] Testing exported resources

2012-10-04 Thread Peter Brown
I had this issue a few years ago. You can actually define a host_group in nagios without it having any hosts assigned to it. I set the hostgroup in the host definition instead of the hostgroup definition to get around it. On 4 October 2012 01:01, Pete wrote: > Hello, > > Is there any way to test

Re: [Puppet Users] Testing exported resources

2012-10-04 Thread David Schmitt
On 03.10.2012 17:01, Pete wrote: Hello, Is there any way to test if a resources has been exported (without realising it)? The reason being - I don't want to realise a nagios_service that's associated with a nagios_hostgroup until at least one nagios_host belonging to that hostgroup exists (othe

[Puppet Users] Testing exported resources

2012-10-03 Thread Pete
Hello, Is there any way to test if a resources has been exported (without realising it)? The reason being - I don't want to realise a nagios_service that's associated with a nagios_hostgroup until at least one nagios_host belonging to that hostgroup exists (otherwise nagios will refuse to star