Index: modules/adblockplus/manifests/host.pp |
diff --git a/modules/adblockplus/manifests/host.pp b/modules/adblockplus/manifests/host.pp |
index a2441b3095615256653f29acd20e51d49066abc0..034d8fb9cf76d83d9e6048ed49da025f87513f57 100644 |
--- a/modules/adblockplus/manifests/host.pp |
+++ b/modules/adblockplus/manifests/host.pp |
@@ -54,11 +54,16 @@ |
# $primary_ip = getparam(Host['node1'], 'ip') |
# $key_type = getparam(Sshkey['node1'], 'type') |
# |
+# # Resources associated with 'absent' hosts are always realized |
+# adblockplus::host {'node0': |
+# ensure => 'absent', |
+# } |
+# |
define adblockplus::host ( |
$ensure = 'present', |
$fqdn = "$name.$adblockplus::authority", |
$groups = [], |
- $ips, |
+ $ips = [], |
$public_key = undef, |
$role = undef, |
) { |
@@ -84,7 +89,7 @@ define adblockplus::host ( |
@host {$title: |
ensure => $ensure, |
- ip => pick($ips), |
+ ip => pick($ips[0], '0.0.0.0'), |
name => $fqdn, |
tag => ['adblockplus::host'], |
} |