add first ldap host

This commit is contained in:
Timo Makinen 2019-05-28 20:32:16 +03:00
parent faaddffce4
commit 7f284a8e24
4 changed files with 44 additions and 0 deletions

11
group_vars/ldap.yml Normal file
View file

@ -0,0 +1,11 @@
---
datadisk_size:
- 10
saslauthd_mech: ldap
firewall_in:
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
- {proto: tcp, port: 443, from: [172.20.20.0/22]}
- {proto: tcp, port: 636, from: [172.20.20.0/22]}

View file

@ -0,0 +1,5 @@
---
interfaces: [[20, "52:54:00:ac:dc:1f"]]
vmhost: vmhost01.home.foo.sh
ldap_master: true

4
hosts
View file

@ -7,12 +7,16 @@ git02.home.foo.sh
[gw]
gw01.home.foo.sh
[ldap]
ldap01.home.foo.sh
[proxy]
proxy01.home.foo.sh
proxy02.home.foo.sh
[centos7:children]
git
ldap
mirror
[openbsd:children]

24
playbooks/ldap.yml Normal file
View file

@ -0,0 +1,24 @@
---
- import_playbook: "include/vm-create.yml myhosts=ldap"
- name: configure instance
hosts: ldap
user: root
gather_facts: true
pre_tasks:
- name: mount /export
mount:
name: /export
src: LABEL=/export
fstype: xfs
opts: noatime,noexec,nosuid,nodev
passno: 1
dump: 0
state: mounted
vars_files:
- /srv/ansible-private/vars.yml
roles:
- base