From 98a071604ea9f7569aa0fa0688bc9d35081770c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 2 Oct 2018 22:53:29 +0200 Subject: Add Flony workstation --- modules/base_installation/templates/puppet/host_ldap_add_top.info.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/base_installation/templates/puppet/host_ldap_add_top.info.erb') diff --git a/modules/base_installation/templates/puppet/host_ldap_add_top.info.erb b/modules/base_installation/templates/puppet/host_ldap_add_top.info.erb index 3aafc19..544f445 100644 --- a/modules/base_installation/templates/puppet/host_ldap_add_top.info.erb +++ b/modules/base_installation/templates/puppet/host_ldap_add_top.info.erb @@ -6,7 +6,7 @@ objectclass: device objectclass: top objectclass: simpleSecurityObject objectclass: puppetClient -<%- unless @ips.empty? -%> +<%- unless @ips.nil? || @ips.empty? -%> objectclass: ipHost <% unless @ips["v4"].nil? -%>ipHostNumber: <%= @ips["v4"]["ipAddress"] %><%- end %> <% unless @ips["v6"].nil? -%>ipHostNumber: <%= @ips["v6"]["ipAddress"] %>/<%= @ips["v6"]["mask"] %><%- end %> -- cgit v1.2.3