added first client
This commit is contained in:
parent
a47d58799d
commit
57ffdc6b50
5 changed files with 26 additions and 0 deletions
4
group_vars/mirror.yml
Normal file
4
group_vars/mirror.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
os_type: centos7
|
||||
dcentos7atadisk_size:
|
||||
- 1000
|
3
host_vars/mirror01.home.foo.sh.yml
Normal file
3
host_vars/mirror01.home.foo.sh.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
mac_address: 52:54:00:ac:dc:15
|
||||
vmhost: vmhost01.home.foo.sh
|
2
hosts
Normal file
2
hosts
Normal file
|
@ -0,0 +1,2 @@
|
|||
[mirror]
|
||||
mirror01.home.foo.sh
|
7
playbooks/mirror.yml
Normal file
7
playbooks/mirror.yml
Normal file
|
@ -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
|
10
vars/centos7.yml
Normal file
10
vars/centos7.yml
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue