Hi all, Is there any way to check if a certain exported resource already exist, without collecting and realizing them first? I''d like to automatically create a @@nagios_servicegroup when it''s mentioned in a define that creates my service checks. Simply doing "if defined(Nagios_servicegroup[''newname''])" doesn''t work, since it''s not instantiated on the node. Any idea how to do this? Or isn''t this a problem anyway, can I exported resources with the same name from different hosts? (Haven''t tried that yet, just thought about it while typing.) -- Kind regards, Tim -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Tim Stoop
2010-Feb-16 13:20 UTC
[Puppet Users] Re: Checking availability of exported resource
Hi all, Ignore this, it''s not needed. Should''ve tested it before I posted! On 16 feb, 12:30, Tim Stoop <tim.st...@gmail.com> wrote:> Hi all, > > Is there any way to check if a certain exported resource already > exist, without collecting and realizing them first? I''d like to > automatically create a @@nagios_servicegroup when it''s mentioned in a > define that creates my service checks. Simply doing "if > defined(Nagios_servicegroup[''newname''])" doesn''t work, since it''s not > instantiated on the node. Any idea how to do this? Or isn''t this a > problem anyway, can I exported resources with the same name from > different hosts? (Haven''t tried that yet, just thought about it while > typing.) > > -- > Kind regards, > Tim-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.