aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-01-04 21:46:32 -0500
committerMicah Anderson <micah@riseup.net>2010-01-04 21:46:32 -0500
commit198b84bfbe5396e289764a03f9996845d3e47b86 (patch)
treefb26937e35c471bcb9494e934a644322b00c3cd8
parent54bc1da418f7dd32fce1343685579a5ef17d75ef (diff)
downloadpuppet-backupninja-198b84bfbe5396e289764a03f9996845d3e47b86.tar.gz
puppet-backupninja-198b84bfbe5396e289764a03f9996845d3e47b86.tar.bz2
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
-rw-r--r--manifests/server.pp2
1 files changed, 1 insertions, 1 deletions
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"]) {