]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
Testing without checking duplicate definition of backupninja_server_realize
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 5 Jun 2010 20:33:26 +0000 (17:33 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 5 Jun 2010 20:33:26 +0000 (17:33 -0300)
manifests/server.pp

index 962c416dac7e252fcaf5f28d72596711db3b022f..3ef97ce2ed4fbe48339f7557c6f5af39aaefad10 100644 (file)
@@ -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"]) {