Commit bce6d383 authored by nimrod's avatar nimrod
Browse files

Add openldap_ prefix to variable names, remove default random password, update...

Add openldap_ prefix to variable names, remove default random password, update documentation accordingly.
parent b3819961
Loading
Loading
Loading
Loading
−1
Changes for .gitignore: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -2,4 +2,3 @@
~*
*.swp
*.swo
files/ldap_password
+4 −6
Changes for README.rst: 4 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -13,12 +13,10 @@ Role Variables

::

    organization: '{{ ansible_domain }}' #Organization name, defaults to the domain name.
    domain: '{{ ansible_domain }}' #LDAP domain, converted to ldap formatted. Defaults to the domain name of the machine.
    basedn: #LDAP base distinguished name, defaults to machine's domain converted to LDAP format.
    password: #Password for admin account, if blank a random password will be generated and saved under files/ldap_password.
    tls_cert: #Certificate for LDAPS, if blank the self-signed snakeoil cert is used. Intermediate certs need to be included in this file.
    tls_key: #Key for LDAPS, if blank the self-signed snakeoil key is used.
    openldap_organization: '{{ ansible_domain }}' #Organization name, defaults to the domain name.
    openldap_domain: '{{ ansible_domain }}' #LDAP domain, converted to ldap formatted. Defaults to the domain name of the machine.
    openldap_basedn: #LDAP base distinguished name, defaults to machine's domain converted to LDAP format.
    openldap_password: #Password for admin account, must be set.

Dependencies
------------
+4 −4
Changes for defaults/main.yml: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
---
# defaults file for ansible-openldap

organization: '{{ ansible_domain }}'
domain: '{{ ansible_domain }}'
basedn: 'dc={{ domain.split(".") | join(",dc=") }}'
password: '{{ lookup("password", "ldap_password") }}'
openldap_organization: '{{ ansible_domain }}'
openldap_domain: '{{ ansible_domain }}'
openldap_basedn: 'dc={{ domain.split(".") | join(",dc=") }}'
openldap_password:
+5 −5
Changes for tasks/main.yml: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -10,16 +10,16 @@
  with_items:
    - question: shared/organization
      vtype: string
      value: '{{ organization }}'
      value: '{{ openldap_organization }}'
    - question: slapd/domain
      vtype: string
      value: '{{ domain }}'
      value: '{{ openldap_domain }}'
    - question: slapd/password1
      vtype: password
      value: '{{ password }}'
      value: '{{ openldap_password }}'
    - question: slapd/password2
      vtype: password
      value: '{{ password }}'
      value: '{{ openldap_password }}'

- name: apt install
  apt:
@@ -62,7 +62,7 @@
    regexp: '{{ item.regexp }}'
    state: present
  with_items:
    - line: 'BASE   {{ basedn }}'
    - line: 'BASE   {{ openldap_basedn }}'
      regexp: '^BASE'
    - line: 'URI    ldap://localhost'
      regexp: '^URI'
+1 −1
Changes for tasks/phpldapadmin.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
    name: phpldapadmin
    question: phpldapadmin/ldap-basedn
    vtype: string
    value: '{{ basedn }}'
    value: '{{ openldap_basedn }}'

- name: apt install phpldapadmin
  apt:
Loading