ldap: Refactor ldap roles
* Move ldap/client to software submodule as ldap * Rename ldap/server to ldap-server
This commit is contained in:
parent
ddb0ed97cb
commit
85ac1dcd68
19 changed files with 4 additions and 35 deletions
|
@ -28,7 +28,7 @@
|
||||||
keytab: /etc/httpd/httpd.keytab
|
keytab: /etc/httpd/httpd.keytab
|
||||||
principals: HTTP/collab.foo.sh@FOO.SH
|
principals: HTTP/collab.foo.sh@FOO.SH
|
||||||
group: apache
|
group: apache
|
||||||
- ldap/client
|
- ldap
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: redirect root web directory to collab
|
- name: redirect root web directory to collab
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- ldap/server
|
- ldap-server
|
||||||
- kerberos/kdc
|
- kerberos/kdc
|
||||||
- role: ldap_netdb
|
- role: ldap_netdb
|
||||||
when: ldap_master is defined
|
when: ldap_master is defined
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
- {role: dhparams}
|
- {role: dhparams}
|
||||||
- {role: kerberos/client}
|
- {role: kerberos/client}
|
||||||
- {role: ldap/client}
|
- {role: ldap}
|
||||||
- {role: saslauthd}
|
- {role: saslauthd}
|
|
@ -1,22 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- name: install packages
|
|
||||||
package:
|
|
||||||
name: openldap-clients
|
|
||||||
state: installed
|
|
||||||
|
|
||||||
- name: configure ldap client
|
|
||||||
template:
|
|
||||||
dest: /etc/openldap/ldap.conf
|
|
||||||
src: ldap.conf.j2
|
|
||||||
mode: 0644
|
|
||||||
owner: root
|
|
||||||
group: "{{ ansible_wheel }}"
|
|
||||||
|
|
||||||
- name: authenticate to ldap with host certs when running as root
|
|
||||||
template:
|
|
||||||
dest: /root/.ldaprc
|
|
||||||
src: ldaprc.j2
|
|
||||||
mode: 0600
|
|
||||||
owner: root
|
|
||||||
group: "{{ ansible_wheel }}"
|
|
|
@ -1,6 +0,0 @@
|
||||||
|
|
||||||
BASE {{ ldap_basedn }}
|
|
||||||
URI {% for item in ldap_server %}ldaps://{{ item }} {% endfor %}
|
|
||||||
|
|
||||||
TLS_CACERT {{ tls_bundle }}
|
|
||||||
TLS_REQCERT demand
|
|
|
@ -1,3 +0,0 @@
|
||||||
TLS_KEY {{ tls_private }}/{{ inventory_hostname }}.key
|
|
||||||
TLS_CERT {{ tls_certs }}/{{ inventory_hostname }}.crt
|
|
||||||
SASL_MECH external
|
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- {role: kerberos/client}
|
- {role: kerberos/client}
|
||||||
- {role: ldap/client}
|
- {role: ldap}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue