From: Micah Anderson Date: Tue, 5 Jan 2010 02:46:32 +0000 (-0500) Subject: change the nagios2::passive_service check so that it uses the $name variable instead... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=198b84bfbe5396e289764a03f9996845d3e47b86;p=puppet-backupninja.git change the nagios2::passive_service check so that it uses the $name variable instead of the $real_host variable because $real_host prevents us from creating more than one rdiff-backup define on a server because this will cause a duplicate defintion. The $name variable allows for multiple without creating duplicate passive_service checks --- diff --git a/manifests/server.pp b/manifests/server.pp index 7cd5dd1..291ffed 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -97,7 +97,7 @@ class backupninja::server { if $nagios_server { # configure a passive service check for backups - nagios2::passive_service { "backups-$real_host": nagios2_host_name => $real_host, nagios2_description => 'backups', servicegroups => "backups" } + nagios2::passive_service { "backups-$name": nagios2_host_name => $real_host, nagios2_description => 'backups', servicegroups => "backups" } } if !defined(File["$real_dir"]) {