Use local LDAP for services

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
ntpsec
Yohann D'ANELLO 2022-06-30 19:07:48 +02:00
parent 6fbdeed7e2
commit d51c211e1a
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ glob_service_proxmox_user:
config:
ldap:
admin:
uri: "ldaps://{{ query('ldap', 'ip', 'tealc', 'adm') | ansible.utils.ipv4 | first }}/"
uri: "ldaps://{{ query('ldap', 'ip', ansible_hostname, 'adm') | ansible.utils.ipv4 | first }}/"
userBase: "ou=passwd,dc=crans,dc=org"
realm: "pam"
dependencies:

View File

@ -29,7 +29,7 @@ loc_wireguard:
loc_service_proxy:
config:
ldap:
server: "ldaps://{{ query('ldap', 'ip', 'tealc', 'adm') | ansible.utils.ipv4 | first }}/"
server: "ldaps://{{ query('ldap', 'ip', 'ft', 'adm') | ansible.utils.ipv4 | first }}/"
protocol: "proxy"
filter: "adm.crans.org"
proxy:

View File

@ -30,7 +30,7 @@ loc_wireguard:
loc_service_proxy:
config:
ldap:
server: "ldaps://{{ query('ldap', 'ip', 'tealc', 'adm') | ansible.utils.ipv4 | first }}/"
server: "ldaps://{{ query('ldap', 'ip', 'thot', 'adm') | ansible.utils.ipv4 | first }}/"
protocol: "proxy"
filter: "adm.crans.org"
proxy: