From 9f4edb3c5b6c660d480a48c24f718d31b93f14f8 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 8 Sep 2019 01:13:59 +0200 Subject: [PATCH] base::public_addresses: handle v4 only hosts like fasolo --- modules/base/manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/base/manifests/init.pp b/modules/base/manifests/init.pp index bda0d7f30..5f3b31802 100644 --- a/modules/base/manifests/init.pp +++ b/modules/base/manifests/init.pp @@ -2,5 +2,5 @@ class base( Stdlib::IP::Address $public_address = filter_ipv4(getfromhash($site::nodeinfo, 'ldap', 'ipHostNumber'))[0], Optional[Stdlib::IP::Address] $public_address6 = filter_ipv6(getfromhash($site::nodeinfo, 'ldap', 'ipHostNumber'))[0], ) { - $public_addresses = [ $public_address, $public_address6 ] + $public_addresses = [ $public_address, $public_address6 ].filter |$addr| { $addr != undef } } -- 2.20.1