2020-08-08 16:31:53 +02:00
|
|
|
---
|
|
|
|
|
2020-08-09 11:37:21 +02:00
|
|
|
# Role ansible-role-certbot : defina auto renew, schedule, ...
|
|
|
|
# WARNING: you need to open the port 80 (iptables)
|
|
|
|
certbot_auto_renew: true
|
|
|
|
certbot_auto_renew_user: "root"
|
|
|
|
certbot_auto_renew_hour: "5"
|
|
|
|
certbot_auto_renew_minute: "0"
|
2020-10-18 09:43:26 +02:00
|
|
|
certbot_auto_renew_options: "--quiet --no-self-upgrade --pre-hook 'iptables -A INPUT -p tcp --dport 80 -j ACCEPT' --deploy-hook 'cp -pf /etc/letsencrypt/live/{{ inventory_hostname }}/*.pem /etc/ldap/sasl2/ && chown openldap: /etc/ldap/sasl2/*.pem && systemctl restart slapd' --post-hook 'iptables -D INPUT -p tcp --dport 80 -j ACCEPT'"
|
2020-08-09 11:37:21 +02:00
|
|
|
certbot_create_if_missing: true
|
|
|
|
certbot_create_method: standalone
|
|
|
|
certbot_create_standalone_stop_services: []
|
|
|
|
certbot_certs:
|
|
|
|
- domains:
|
|
|
|
- "{{ inventory_hostname }}"
|
|
|
|
|
2020-08-08 16:31:53 +02:00
|
|
|
openldap_schemas:
|
|
|
|
- core
|
|
|
|
- cosine
|
|
|
|
- nis
|
|
|
|
- inetorgperson
|
|
|
|
- rfc2739
|
|
|
|
openldap_bases:
|
|
|
|
rootdn: cn=admin
|
2020-10-18 09:43:26 +02:00
|
|
|
suffix: dc=wirebrass,dc=fr
|
2020-08-08 16:31:53 +02:00
|
|
|
includes: [ slapd.access ]
|
|
|
|
indexes:
|
|
|
|
- [ "uid,uidNumber,gidNumber,memberUID", "pres,eq" ]
|
|
|
|
# slave:
|
|
|
|
# rid:
|
|
|
|
# provider: ldaps://:636
|
|
|
|
# binddn: cn=bind,dc=dn
|
|
|
|
# credentials: bindpw
|
|
|
|
# bindmethod: simple
|
|
|
|
|
|
|
|
ldap_host: "localhost"
|
|
|
|
ldap_port: "389"
|
|
|
|
|
2020-10-18 09:43:26 +02:00
|
|
|
ldap_root_dn: "dc=wirebrass,dc=fr"
|
|
|
|
ldap_domain: "wirebrass.fr"
|
2020-08-08 16:31:53 +02:00
|
|
|
|
2020-10-18 09:43:26 +02:00
|
|
|
ldap_admin_user_dn: "cn=admin,dc=wirebrass,dc=fr"
|
2020-08-08 16:31:53 +02:00
|
|
|
ldap_admin_user_password: "{{ vault_ldap_admin_user_password }}"
|
|
|
|
|
|
|
|
ldap_config_admin_user_dn: "cn=admin,cn=config"
|
|
|
|
ldap_config_admin_user_password: "{{ vault_ldap_config_admin_user_password }}"
|
|
|
|
|
|
|
|
ldap_people:
|
|
|
|
- userA:
|
|
|
|
uid: userA
|
|
|
|
cn: userA
|
|
|
|
uidNumber: 60012
|
|
|
|
gidNumber: 60012
|
|
|
|
- userB:
|
|
|
|
uid: userB
|
|
|
|
cn: userB
|
|
|
|
uidNumber: 60013
|
|
|
|
gidNumber: 60013
|
|
|
|
|
|
|
|
ldap_groups:
|
|
|
|
- marketing:
|
|
|
|
cn: marketing
|
|
|
|
gidNumber: 60002
|
|
|
|
description: "Service MARKETING"
|
|
|
|
memberUid:
|
|
|
|
- userB
|
2020-10-18 09:43:26 +02:00
|
|
|
#- userA
|
2020-08-08 16:31:53 +02:00
|
|
|
- it:
|
|
|
|
cn: it
|
|
|
|
gidNumber: 60003
|
|
|
|
description: "Service Informatique"
|
|
|
|
|
|
|
|
|
|
|
|
ldap_accounts:
|
|
|
|
- svc-ssh:
|
|
|
|
cn: svc-ssh
|
|
|
|
description: "SSH read user"
|
|
|
|
userPassword: "test"
|
|
|
|
|
|
|
|
ldap_applications:
|
|
|
|
- sudoers
|