mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-30 21:41:53 +08:00
52 lines
1.7 KiB
Django/Jinja
52 lines
1.7 KiB
Django/Jinja
<domain type='kvm'>
|
|
<name>{{ item.hostname }}</name>
|
|
<memory unit='MiB'>{{ item.memsize }}</memory>
|
|
<vcpu placement='static'>{{ item.num_cpus }}</vcpu>
|
|
<os>
|
|
<type arch='x86_64'>hvm</type>
|
|
<bootmenu enable='no'/>
|
|
</os>
|
|
<clock offset='utc'>
|
|
<timer name='rtc' tickpolicy='catchup'/>
|
|
<timer name='pit' tickpolicy='delay'/>
|
|
<timer name='hpet' present='no'/>
|
|
</clock>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>restart</on_crash>
|
|
<devices>
|
|
<disk type='block' device='disk'>
|
|
<driver name='qemu' type='raw' cache='none' io='native'/>
|
|
<source dev='/dev/{{ volgroup }}/{{ item.hostname }}'/>
|
|
<target dev='vda' bus='virtio'/>
|
|
<boot order='2'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
|
|
</disk>
|
|
<controller type='virtio-serial' index='0'>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
|
|
</controller>
|
|
<interface type='bridge'>
|
|
<mac address='{{ item.macaddress }}'/>
|
|
<source bridge='{{ bridge_name }}'/>
|
|
<model type='virtio'/>
|
|
<boot order='1'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
|
</interface>
|
|
<serial type='pty'>
|
|
<target port='0'/>
|
|
</serial>
|
|
<console type='pty'>
|
|
<target type='serial' port='0'/>
|
|
</console>
|
|
<graphics type='vnc' port='-1' autoport='yes'/>
|
|
<video>
|
|
<model type='vga' vram='9216' heads='1'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
|
|
</video>
|
|
<memballoon model='virtio'>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
|
|
</memballoon>
|
|
</devices>
|
|
</domain>
|
|
|