-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathmain.yml
More file actions
81 lines (66 loc) · 2.03 KB
/
main.yml
File metadata and controls
81 lines (66 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
# defaults file for ansible-openldap
openldap_admin_password: P@55w0rd
openldap_admin_user: admin
openldap_base: "{{ 'dc=' + openldap_org + ',dc=' + openldap_tld }}"
openldap_bind_id: "{{ 'cn=' + openldap_bind_user + ',' + openldap_base }}"
openldap_bind_user: "{{ openldap_admin_user }}"
# Defines whether or not OpenLDAP is configured
openldap_config: false
openldap_debian_packages:
- slapd
- ldap-utils
- php-xml
- phpldapadmin
openldap_domain_name: "{{ openldap_org + '.' + openldap_tld }}"
openldap_org: example
# Defines OU's to populate
openldap_organizationalunits:
- People
- Groups
openldap_phpldapadmin_hide_warnings: true
# Defines if openldap DB should be populated with openldap_organizationalunits,
# openldap_posixgroups and openldap_users
openldap_populate: false
# Defines groups to create within OU's
openldap_posixgroups:
- name: miners
ou: Groups
gidNum: 5000 #start group numbers at 5000 and up
# Defines host for phpLDAPadmin
openldap_server_host: 127.0.0.1
openldap_users:
- FirstName: John
LastName: Smith
# Defines OU name
ou: People
# Start user numbers at 10000 and up
uidNum: 10000
# Defines gidNum from openldap_posixgroups
gidNum: 5000
password: P@55w0rd
loginShell: /bin/bash
homeDirectory: /home/john
openldap_tld: org
# Define a set of schema specifications files.
# For a non basic schema, Its .schema file must be placed in files/openldap/schema/. This file will be copied and converted to ldif before being inserted to LDAP tree
openldap_schemas:
- core
- cosine
- inetorgperson
- nis
# Define DB Engine (mdb / hdb)
openldap_db_engine: MDB
# Temp files path
openldap_ldif_tmp_dir: /tmp/ldifs
# Define a the set of ldif files to configure some Overlays or ACLs
# All ldif files must be placed in files/openldap/overlays/
# Use example
#openldap_overlays_and_acls:
# - name: overlay1
# ldifs:
# - path: file1.ldif
# action: modify //ldapmodify
# - path: file2.ldif
# action: add //ldapadd
openldap_overlays_and_acls: []