create os based groups and move all os variables to group variables
This commit is contained in:
parent
612644e92a
commit
04e7eb07c9
7 changed files with 19 additions and 20 deletions
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
os_type: centos7
|
|
||||||
datadisk_size:
|
datadisk_size:
|
||||||
- 10
|
- 10
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
os_type: centos7
|
|
||||||
datadisk_size:
|
datadisk_size:
|
||||||
- 1000
|
- 1000
|
||||||
|
|
||||||
|
|
15
group_vars/openbsd.yml
Normal file
15
group_vars/openbsd.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
# fix python path errors
|
||||||
|
ansible_python_interpreter: "/usr/bin/env python"
|
||||||
|
|
||||||
|
# we have real wheel group
|
||||||
|
ansible_wheel: wheel
|
||||||
|
|
||||||
|
# fix tls directories
|
||||||
|
tls_certs: /etc/ssl
|
||||||
|
tls_private: /etc/ssl/private
|
||||||
|
|
||||||
|
# default resources for new vm
|
||||||
|
dsk_size: 10
|
||||||
|
mem_size: 256
|
||||||
|
num_cpus:
|
4
hosts
4
hosts
|
@ -3,3 +3,7 @@ mirror01.home.foo.sh
|
||||||
|
|
||||||
[git]
|
[git]
|
||||||
git02.home.foo.sh
|
git02.home.foo.sh
|
||||||
|
|
||||||
|
[centos7:children]
|
||||||
|
git
|
||||||
|
mirror
|
||||||
|
|
|
@ -3,9 +3,6 @@
|
||||||
hosts: "{{myhosts}}"
|
hosts: "{{myhosts}}"
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|
||||||
vars_files:
|
|
||||||
- "../../vars/{{ os_type }}.yml"
|
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
letters: "{{ 'bcdefghijklmnopqrstuvwxyz'|list }}"
|
letters: "{{ 'bcdefghijklmnopqrstuvwxyz'|list }}"
|
||||||
vmhost_uri: "qemu+ssh://root@{{ vmhost }}/system"
|
vmhost_uri: "qemu+ssh://root@{{ vmhost }}/system"
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
---
|
|
||||||
# default resources for new vm
|
|
||||||
dsk_size: 20
|
|
||||||
mem_size: 1536
|
|
||||||
num_cpus: 1
|
|
||||||
|
|
||||||
# extra args for virt-install
|
|
||||||
virt_install_os_args: >
|
|
||||||
--extra-args "ks=http://boot.foo.sh/ks/centos7.ks console=ttyS0 net.ifnames=0 ksdevice=eth0"
|
|
||||||
--location http://centos.mirror.gnu.fi/7/os/x86_64
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
# default resources for new vm
|
|
||||||
dsk_size: 10
|
|
||||||
mem_size: 256
|
|
||||||
num_cpus: 1
|
|
Loading…
Add table
Add a link
Reference in a new issue