trying a slightly different method of addressing dict data in a template
This commit is contained in:
parent
34ace2e737
commit
dd7f360d6c
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<domain type='kvm'>
|
||||
<name>{{ vmdata['hostname'] }}</name>
|
||||
<name>{{ vmdata.hostname }}</name>
|
||||
<memory unit='KiB'>{{ mem_size_kb }}</memory>
|
||||
<vcpu placement='static'>{{ num_cpus }}</vcpu>
|
||||
<os>
|
||||
|
@ -30,7 +30,7 @@
|
|||
<emulator>/usr/bin/qemu-kvm</emulator>
|
||||
<disk type='block' device='disk'>
|
||||
<driver name='qemu' type='raw' cache='none' io='native'/>
|
||||
<source dev='/dev/{{ volgroup }}/{{ vmdata['hostname'] }}'/>
|
||||
<source dev='/dev/{{ volgroup }}/{{ vmdata.hostname }}'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
<boot order='2'/>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
|
||||
|
@ -55,7 +55,7 @@
|
|||
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
|
||||
</controller>
|
||||
<interface type='bridge'>
|
||||
<mac address='{{ vmdata['macaddress'] }}'/>
|
||||
<mac address='{{ vmdata.macaddress }}'/>
|
||||
<source bridge='{{ bridge_name }}'/>
|
||||
<model type='virtio'/>
|
||||
<boot order='1'/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue