Commit e736c22f authored by Silvio Rhatto's avatar Silvio Rhatto

Adding back duplicate definition check for backupninja_server_realize

parent d6f5ad38
......@@ -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"]) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment