Every host is trying to create an exported resource named "foo-admins".
 That's not what you want.  You want a *virtual* resource named foo-admins
and then realize it on each node.

On Tue, Apr 10, 2012 at 3:19 PM, Robert Smith <rsmit...@gmail.com> wrote:

> Hello,
>
> I've been trying to build multiple Nagios servers using Puppet (2.6.12),
> with no luck.  I've got a nagios::server class that includes:
>
>   include nagios::server::commands
>   include nagios::server::contacts
>   include nagios::server::contactgroups
>   include nagios::server::timeperiods
>   include nagios::server::servicegroups
>   include nagios::server::hostgroups
>
> and then it does it's collection by running all the Nagios_command <<|
> |>>, Nagios_contactgroups <<| |>>, etc.
>
> In the contactgroups.pp manifest, for example, I have something like:
>
>   @@nagios_contactgroup {
>     "foo-admins_${hostname}":
>       contactgroup_name => 'foo-admins',
>       alias             => 'foo-admins',
>       members           => 'sysadmin1, sysadmin2';
>   }
>
> My thinking was that by including the _${hostname} in the resource name,
> that it wouldn't cause conflicts between servers.  However, when I run
> nagios::server on more than one system, I get err: Failed to apply catalog:
> Parameter alias failed: foo-admins can not create alias foo-admins: object
> already exists.
>
> Everything seems to be working on the @@nagios_host and @@nagios_service
> resources, which include $hostname in their resource names.
>
> Any help greatly appreciated.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/wMSQVr2r1P8J.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to