From: Silvio Rhatto Date: Sat, 5 Jun 2010 20:33:26 +0000 (-0300) Subject: Testing without checking duplicate definition of backupninja_server_realize X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d6f5ad38919445bc5e611389f83ac7e2335ec9dc;p=puppet-backupninja.git Testing without checking duplicate definition of backupninja_server_realize --- diff --git a/manifests/server.pp b/manifests/server.pp index 962c416..3ef97ce 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -111,12 +111,10 @@ class backupninja::server { nagios2::passive_service { "backups-${name}": nagios2_host_name => $real_host, nagios2_description => $real_nagios2_description, servicegroups => "backups" } } - if !defined(Backupninja_server_realize["${fqdn}-${real_host}"]) { - # this defines just maps that $real_host host backups for $fdqn - @@backupninja_server_realize { "${fqdn}-${real_host}": - host => $fqdn, - tag => $real_host, - } + # this defines just maps that $real_host host backups for $fdqn + @@backupninja_server_realize { "${fqdn}@${real_host}": + host => $fqdn, + tag => $real_host, } if !defined(File["$real_dir"]) {