Add registry hosts
This commit is contained in:
parent
d9366b6c96
commit
38890e468d
4 changed files with 44 additions and 0 deletions
8
group_vars/registry.yml
Normal file
8
group_vars/registry.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
datadisks:
|
||||
- 100
|
||||
|
||||
firewall_in:
|
||||
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
|
||||
- {proto: tcp, port: 443}
|
||||
- {proto: tcp, port: 4949, from: [172.20.20.0/22]}
|
6
host_vars/registry01.home.foo.sh.yml
Normal file
6
host_vars/registry01.home.foo.sh.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
vmhost: vmhost01.home.foo.sh
|
||||
network_interfaces:
|
||||
- device: vio0
|
||||
vlan: 20
|
||||
mac: 52:54:00:ac:dc:57
|
6
hosts
6
hosts
|
@ -57,6 +57,9 @@ print01.home.foo.sh
|
|||
proxy01.home.foo.sh
|
||||
proxy02.home.foo.sh
|
||||
|
||||
[registry]
|
||||
registry01.home.foo.sh
|
||||
|
||||
[relay]
|
||||
relay01.home.foo.sh
|
||||
relay02.home.foo.sh
|
||||
|
@ -102,6 +105,9 @@ zm
|
|||
ldap
|
||||
collab
|
||||
|
||||
[fedora:children]
|
||||
registry
|
||||
|
||||
[openbsd:children]
|
||||
backup
|
||||
dnagw
|
||||
|
|
24
playbooks/registry.yml
Normal file
24
playbooks/registry.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
- import_playbook: "include/deploy-kvm-guest.yml myhosts=registry"
|
||||
|
||||
- name: configure instance
|
||||
hosts: registry
|
||||
user: root
|
||||
gather_facts: true
|
||||
|
||||
pre_tasks:
|
||||
- name: mount /export
|
||||
mount:
|
||||
name: /export
|
||||
src: LABEL=/export
|
||||
fstype: xfs
|
||||
opts: noatime,noexec,nosuid,nodev
|
||||
passno: "0"
|
||||
dump: "0"
|
||||
state: mounted
|
||||
|
||||
vars_files:
|
||||
- "{{ ansible_private }}/vars.yml"
|
||||
|
||||
roles:
|
||||
- base
|
Loading…
Add table
Reference in a new issue