capitanh.openldap-ansible-role

OpenLDAP Ansible Role

This role sets up OpenLDAP and adds some sample data. It's meant for development and testing, not for use in a production environment.

Requirements

None

Role Variables

You need to define the following variables in the playbook that uses this role:

ldap_basedn:       dc=mydomain,dc=net         # Base DN
ldap_server_uri:   ldap://localhost:389       # LDAP server address
ldap_bind_pw:      secret                     # Password for binding

To add users and groups, you should provide this structure:

ldap_users:
  user_id1:
    cn: Name1 Surname1
    givenname: Name1
    sn: Surname1
    mail: [email protected]
    userpassword: password
  user_id2:
    cn: Name2 Surname2
    givenname: Name2
    sn: Surname2
    mail: [email protected]
    userpassword: password
ldap_groups:
  - name: group1
    members:
      - user_id1
  - name: group2
    members:
      - user_id1
      - user_id2

Dependencies

None

Example Playbook

Add the role to the requirements.yml file:

- src: capitanh.openldap-ansible-role
  name: openldap

Use it in your playbooks like this:

- hosts: servers
  roles:
  - openldap

License

BSD

Informazioni sul progetto

This role installs openldap and loads some example data

Installa
ansible-galaxy install capitanh.openldap-ansible-role
Licenza
Unknown
Download
1.4k
Proprietario