diff --git a/plays/home.yml b/plays/home.yml new file mode 100755 index 0000000000000000000000000000000000000000..aa47fa4c9b58861a07e10d009c570dfdf82e93ae --- /dev/null +++ b/plays/home.yml @@ -0,0 +1,11 @@ +#!/usr/bin/env ansible-playbook +--- +- hosts: cameron.adm.crans.org + vars: + home: + ldap_server: ldap://re2o-ldap.adm.crans.org + ldap_password: "{{ vault_ldap_home_password }}" + binddn: cn=home,ou=service-users,dc=crans,dc=org + rootdn: cn=Utilisateurs,dc=crans,dc=org + roles: + - home diff --git a/roles/home/templates/home/config.py.j2 b/roles/home/templates/home/config.py.j2 index 457b02930358a11c01494b0720ea39f002bf60e1..e7f29b91b6c6753939a38d4618b88295e79a98e9 100644 --- a/roles/home/templates/home/config.py.j2 +++ b/roles/home/templates/home/config.py.j2 @@ -1,9 +1,9 @@ {{ ansible_header | comment }} -ldap_server = 'ldap://re2o-ldap.adm.crans.org' -binddn = 'cn=home,ou=service-users,dc=crans,dc=org' +ldap_server = '{{ home.ldap_server }}' +binddn = '{{ home.binddn }}' password = '{{ home.ldap_password }}' -rootdn = 'cn=Utilisateurs,dc=crans,dc=org' +rootdn = '{{ home.rootdn }}' home_dir = '/pool/home' mail_dir = '/pool/mail' home_quota = 'zfs set userquota@{user}=30G pool/home'