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'>
|
<domain type='kvm'>
|
||||||
<name>{{ vmdata['hostname'] }}</name>
|
<name>{{ vmdata.hostname }}</name>
|
||||||
<memory unit='KiB'>{{ mem_size_kb }}</memory>
|
<memory unit='KiB'>{{ mem_size_kb }}</memory>
|
||||||
<vcpu placement='static'>{{ num_cpus }}</vcpu>
|
<vcpu placement='static'>{{ num_cpus }}</vcpu>
|
||||||
<os>
|
<os>
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
<emulator>/usr/bin/qemu-kvm</emulator>
|
<emulator>/usr/bin/qemu-kvm</emulator>
|
||||||
<disk type='block' device='disk'>
|
<disk type='block' device='disk'>
|
||||||
<driver name='qemu' type='raw' cache='none' io='native'/>
|
<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'/>
|
<target dev='vda' bus='virtio'/>
|
||||||
<boot order='2'/>
|
<boot order='2'/>
|
||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
|
<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'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
|
||||||
</controller>
|
</controller>
|
||||||
<interface type='bridge'>
|
<interface type='bridge'>
|
||||||
<mac address='{{ vmdata['macaddress'] }}'/>
|
<mac address='{{ vmdata.macaddress }}'/>
|
||||||
<source bridge='{{ bridge_name }}'/>
|
<source bridge='{{ bridge_name }}'/>
|
||||||
<model type='virtio'/>
|
<model type='virtio'/>
|
||||||
<boot order='1'/>
|
<boot order='1'/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue