diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-06-05 17:40:37 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-06-05 17:40:37 -0300 |
commit | e736c22f347c572eae79568a6d0cdde996207496 (patch) | |
tree | 79ae5bf580799eef54c734660623443c0a7ac6b3 | |
parent | d6f5ad38919445bc5e611389f83ac7e2335ec9dc (diff) | |
download | puppet-backupninja-e736c22f347c572eae79568a6d0cdde996207496.tar.gz puppet-backupninja-e736c22f347c572eae79568a6d0cdde996207496.tar.bz2 |
Adding back duplicate definition check for backupninja_server_realize
-rw-r--r-- | manifests/server.pp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/manifests/server.pp b/manifests/server.pp index 3ef97ce..8337bcc 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -111,10 +111,12 @@ class backupninja::server { nagios2::passive_service { "backups-${name}": nagios2_host_name => $real_host, nagios2_description => $real_nagios2_description, servicegroups => "backups" } } - # this defines just maps that $real_host host backups for $fdqn - @@backupninja_server_realize { "${fqdn}@${real_host}": - host => $fqdn, - tag => $real_host, + 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, + } } if !defined(File["$real_dir"]) { |