ldap_servers:
hosts:
dev-ds11.pixelpark.com:
- dev-ds12.pixelpark.com:
- dev-ds13.pixelpark.com:
+# dev-ds12.pixelpark.com:
+# dev-ds13.pixelpark.com:
providers:
hosts:
dev-ds11.pixelpark.com:
- dev-ds12.pixelpark.com:
- dev-ds13.pixelpark.com:
+# dev-ds12.pixelpark.com:
+# dev-ds13.pixelpark.com:
consumers:
hosts:
dev-ds11.pixelpark.com:
- dev-ds12.pixelpark.com:
- dev-ds13.pixelpark.com:
+# dev-ds12.pixelpark.com:
+# dev-ds13.pixelpark.com:
vars:
ansible_user: root
become: false
lapd_suffix: 'o=isp'
+ lapd_suffix_re: 'o=isp'
--- /dev/null
+---
+
+# tasks base installation of the OpenLDAP server
+
+- name: "Install OpenLDAP base package"
+ yum:
+ name:
+ - "{{ openldap_package }}"
+ state: present
+
+- name: "Detect RDN of main database"
+ shell: "grep -P -l 'olcSuffix:\\s+{{ lapd_suffix_re }}' {{ slapd_cfg_dir }}/cn=config/olcDatabase*.ldif | xargs -i basename {} .ldif"
+ changed_when: False
+ register: main_database_rdn
+
--- /dev/null
+---
+
+openldap_config_dir: '/etc/openldap'
+openldap_schema_dir: '/etc/openldap/schema'
+openldap_package: 'symas-openldap-servers'
+openldap_service: 'openldap'
+slapd_cfg_dir: '/etc/openldap/slapd.d'
+