X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fbase_installation%2Ftemplates%2Fpuppet%2Fhost_ldap_add_top.info.erb;fp=modules%2Fbase_installation%2Ftemplates%2Fpuppet%2Fhost_ldap.info.erb;h=3aafc19438b2f2535d4ea83f420435008e9ebce5;hb=6667f52e8017065c9b5f14c8025458b38029a800;hp=7afdf2dd3ac2d9a629c31e77c695b6df8012bf7a;hpb=19c467dccfd00193a66f1341f068987da7bca14b;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/modules/base_installation/templates/puppet/host_ldap.info.erb b/modules/base_installation/templates/puppet/host_ldap_add_top.info.erb similarity index 51% rename from modules/base_installation/templates/puppet/host_ldap.info.erb rename to modules/base_installation/templates/puppet/host_ldap_add_top.info.erb index 7afdf2d..3aafc19 100644 --- a/modules/base_installation/templates/puppet/host_ldap.info.erb +++ b/modules/base_installation/templates/puppet/host_ldap_add_top.info.erb @@ -14,28 +14,3 @@ objectclass: ipHost environment: <%= @environment %> puppetVar: real_hostname=<%= @real_hostname %> userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %> -EOF -#### Or modify an existing entry: -ldapmodify -D "cn=root,<%= @ldap_base %>" -W << 'EOF' -dn: <%= @ldap_dn %> -changetype: modify -replace: userPassword -userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %> -- -replace: environment -environment: <%= @environment %> -<%- unless @ips.empty? -%> -- -delete: ipHostNumber -<%- unless @ips["v4"].nil? -%> -- -add: ipHostNumber -ipHostNumber: <%= @ips["v4"]["ipAddress"] %> -<%- end -%> -<%- unless @ips["v6"].nil? -%> -- -add: ipHostNumber -ipHostNumber: <%= @ips["v6"]["ipAddress"] %>/<%= @ips["v6"]["mask"] %> -<%- end -%> -<%- end -%> -EOF