vmhost: PB to set up VM hosts

jenkins-master
Dustin 2018-07-23 17:30:04 -05:00
parent f8ae016042
commit a8dd2e9ec3
3 changed files with 19 additions and 0 deletions

13
group_vars/vm-hosts.yml Normal file
View File

@ -0,0 +1,13 @@
libvirt_networks:
- name: prod
type: bridge
bridge_iface: br0
- name: test
type: bridge
bridge_iface: br1
storage_host: storage0.pyrocufflink.blue
mount_shared_volumes:
- mountpoint: /var/lib/libvirt/images
host: '[{{ lookup("dig", storage_host, "qtype=AAAA") }}]'
share: /volume1/VirtualMachines
opts: vers=4,intr

2
hosts
View File

@ -70,3 +70,5 @@ zbx0.pyrocufflink.blue
[zabbix:children] [zabbix:children]
dch-gw dch-gw
pyrocufflink pyrocufflink
[vm-hosts]

4
vmhost.yml Normal file
View File

@ -0,0 +1,4 @@
- hosts: vm-hosts
roles:
- vmhost
- dch-storage-net