Commit c0e70d61 authored by Silvio Rhatto's avatar Silvio Rhatto

Checking for backupninja_server_realize definition / comments

parent 24f12a74
# this define realizes all needed resources for a hosted backup
define backupninja_server_realize($host) {
User <<| tag == "backupninja-$host" |>>
File <<| tag == "backupninja-$host" |>>
......@@ -110,9 +111,12 @@ class backupninja::server {
nagios2::passive_service { "backups-${name}": nagios2_host_name => $real_host, nagios2_description => $real_nagios2_description, servicegroups => "backups" }
}
@@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