Add minecraft host group
This commit is contained in:
parent
7b9f2a2dfc
commit
48398702dd
4 changed files with 46 additions and 0 deletions
9
group_vars/minecraft.yml
Normal file
9
group_vars/minecraft.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
mem_size: 4096
|
||||||
|
datadisks:
|
||||||
|
- 100
|
||||||
|
firewall_in:
|
||||||
|
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
|
||||||
|
- {proto: tcp, port: 4949, from: [172.20.30.0/24]}
|
||||||
|
- {proto: tcp, port: 25565, from: [172.20.30.0/24]}
|
||||||
|
- {proto: udp, port: 25565, from: [172.20.30.0/24]}
|
11
host_vars/minecraft01.home.foo.sh.yml
Normal file
11
host_vars/minecraft01.home.foo.sh.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
vmhost: vmhost01.home.foo.sh
|
||||||
|
network_interfaces:
|
||||||
|
- device: eth0
|
||||||
|
vlan: 20
|
||||||
|
mac: 52:54:00:ac:dc:67
|
||||||
|
- device: eth1
|
||||||
|
vlan: 30
|
||||||
|
ipaddr: 172.20.30.25
|
||||||
|
netmask: 255.255.255.0
|
||||||
|
proto: static
|
4
hosts
4
hosts
|
@ -32,6 +32,9 @@ log01.home.foo.sh
|
||||||
[mail]
|
[mail]
|
||||||
mail02.home.foo.sh
|
mail02.home.foo.sh
|
||||||
|
|
||||||
|
[minecraft]
|
||||||
|
minecraft01.home.foo.sh
|
||||||
|
|
||||||
[mirror]
|
[mirror]
|
||||||
mirror01.home.foo.sh
|
mirror01.home.foo.sh
|
||||||
|
|
||||||
|
@ -141,6 +144,7 @@ git
|
||||||
jenkins
|
jenkins
|
||||||
ldap
|
ldap
|
||||||
mail
|
mail
|
||||||
|
minecraft
|
||||||
mirror
|
mirror
|
||||||
mongodb
|
mongodb
|
||||||
munin
|
munin
|
||||||
|
|
22
playbooks/minecraft.yml
Normal file
22
playbooks/minecraft.yml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
- import_playbook: "include/deploy-kvm-guest.yml myhosts=minecraft"
|
||||||
|
|
||||||
|
- name: configure instance
|
||||||
|
hosts: minecraft
|
||||||
|
user: root
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
pre_tasks:
|
||||||
|
- name: mount /export
|
||||||
|
mount:
|
||||||
|
name: /export
|
||||||
|
src: LABEL=/export
|
||||||
|
fstype: xfs
|
||||||
|
opts: noatime
|
||||||
|
passno: "0"
|
||||||
|
dump: "0"
|
||||||
|
state: mounted
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- base
|
||||||
|
- minecraft
|
Loading…
Add table
Reference in a new issue