add first ldap host
This commit is contained in:
parent
faaddffce4
commit
7f284a8e24
4 changed files with 44 additions and 0 deletions
11
group_vars/ldap.yml
Normal file
11
group_vars/ldap.yml
Normal 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]}
|
5
host_vars/ldap01.home.foo.sh.yml
Normal file
5
host_vars/ldap01.home.foo.sh.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
interfaces: [[20, "52:54:00:ac:dc:1f"]]
|
||||
vmhost: vmhost01.home.foo.sh
|
||||
|
||||
ldap_master: true
|
4
hosts
4
hosts
|
@ -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
24
playbooks/ldap.yml
Normal 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
|
Loading…
Add table
Reference in a new issue