12345678910111213141516171819202122232425262728293031323334353637 |
- #
- # KVM host
- #
- virt-pkgs:
- pkg.installed:
- - pkgs:
- {% if grains.oscodename == 'buster' %}
- - qemu-kvm
- - libvirt-bin
- {% elif grains.oscodename == 'bullseye' %}
- - qemu-system-x86
- - libvirt-daemon-system
- {% endif %}
- - xmlstarlet
- - netcat-openbsd
- libvirtd:
- service.running:
- - enable: True
- - reload: True
- /etc/libvirt/hooks/qemu:
- file.managed:
- - source: salt://kvm/qemu-hook
- - mode: 755
- - require:
- - pkg: virt-pkgs
- - watch_in:
- - service: libvirtd
- /etc/libvirt/hooks/get-bridge-vids:
- file.managed:
- - source: salt://kvm/get-bridge-vids
- - mode: 755
- - require:
- - pkg: virt-pkgs
|