Add oci-node hosts
This commit is contained in:
parent
c98d9e2207
commit
ee39a34fad
5 changed files with 37 additions and 0 deletions
7
group_vars/ocinode.yml
Normal file
7
group_vars/ocinode.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
# increase memory size
|
||||
mem_size: 4192
|
||||
|
||||
firewall_in:
|
||||
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
|
||||
- {proto: tcp, port: 443, from: [172.20.20.0/22]}
|
6
host_vars/oci-node01.home.foo.sh.yml
Normal file
6
host_vars/oci-node01.home.foo.sh.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
vmhost: vmhost01.home.foo.sh
|
||||
network_interfaces:
|
||||
- device: eth0
|
||||
vlan: 20
|
||||
mac: 52:54:00:ac:dc:5f
|
6
host_vars/oci-node02.home.foo.sh.yml
Normal file
6
host_vars/oci-node02.home.foo.sh.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
vmhost: vmhost02.home.foo.sh
|
||||
network_interfaces:
|
||||
- device: eth0
|
||||
vlan: 20
|
||||
mac: 52:54:00:ac:dc:60
|
5
hosts
5
hosts
|
@ -50,6 +50,10 @@ ns01.home.foo.sh
|
|||
ns02.home.foo.sh
|
||||
atl01.vultr.foo.sh
|
||||
|
||||
[ocinode]
|
||||
oci-node01.home.foo.sh
|
||||
oci-node02.home.foo.sh
|
||||
|
||||
[print]
|
||||
print01.home.foo.sh
|
||||
|
||||
|
@ -118,6 +122,7 @@ mirror
|
|||
munin
|
||||
nas
|
||||
nms
|
||||
ocinode
|
||||
print
|
||||
shell
|
||||
sqldb
|
||||
|
|
13
playbooks/oci-node.yml
Normal file
13
playbooks/oci-node.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
- import_playbook: "include/deploy-kvm-guest.yml myhosts=ocinode"
|
||||
|
||||
- name: configure instance
|
||||
hosts: ocinode
|
||||
user: root
|
||||
gather_facts: true
|
||||
|
||||
vars_files:
|
||||
- "{{ ansible_private }}/vars.yml"
|
||||
|
||||
roles:
|
||||
- base
|
Loading…
Add table
Reference in a new issue