adding all required template values to host vars and accessing them correctly
This commit is contained in:
parent
d5eda7acbd
commit
1a9231cf3e
2 changed files with 6 additions and 2 deletions
|
@ -8,6 +8,10 @@ volgroup: vmstore
|
|||
clients:
|
||||
- hostname: virt01.qa.fedoraproject.org
|
||||
macaddress: "52:54:00:a2:de:30"
|
||||
memsize: 4096
|
||||
num_cpus: 2
|
||||
- hostname: virt02.qa.fedoraproject.org
|
||||
macaddress: "52:54:00:fe:22:ff"
|
||||
memsize: 4096
|
||||
num_cpus: 2
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<domain type='kvm'>
|
||||
<name>{{ item.hostname }}</name>
|
||||
<memory unit='KiB'>{{ mem_size_kb }}</memory>
|
||||
<vcpu placement='static'>{{ num_cpus }}</vcpu>
|
||||
<memory unit='MiB'>{{ item.memsize }}</memory>
|
||||
<vcpu placement='static'>{{ item.num_cpus }}</vcpu>
|
||||
<os>
|
||||
<type arch='x86_64' machine='pc-i440fx-1.6'>hvm</type>
|
||||
<bootmenu enable='yes'/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue