diff --git a/group_vars/mirror.yml b/group_vars/mirror.yml new file mode 100644 index 0000000..b8ccc65 --- /dev/null +++ b/group_vars/mirror.yml @@ -0,0 +1,4 @@ +--- +os_type: centos7 +dcentos7atadisk_size: + - 1000 diff --git a/host_vars/mirror01.home.foo.sh.yml b/host_vars/mirror01.home.foo.sh.yml new file mode 100644 index 0000000..fa00175 --- /dev/null +++ b/host_vars/mirror01.home.foo.sh.yml @@ -0,0 +1,3 @@ +--- +mac_address: 52:54:00:ac:dc:15 +vmhost: vmhost01.home.foo.sh diff --git a/hosts b/hosts new file mode 100644 index 0000000..9533afd --- /dev/null +++ b/hosts @@ -0,0 +1,2 @@ +[mirror] +mirror01.home.foo.sh diff --git a/playbooks/mirror.yml b/playbooks/mirror.yml new file mode 100644 index 0000000..bae792e --- /dev/null +++ b/playbooks/mirror.yml @@ -0,0 +1,7 @@ +--- +- import_playbook: "include/vm-create.yml myhosts=mirror01.home.foo.sh" + +- name: configure instance + hosts: mirror + user: root + gather_facts: true diff --git a/vars/centos7.yml b/vars/centos7.yml new file mode 100644 index 0000000..579a453 --- /dev/null +++ b/vars/centos7.yml @@ -0,0 +1,10 @@ +--- +# 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" + --location http://centos.mirror.gnu.fi/7/os/x86_64