init.sls 414 B

1234567891011121314151617181920212223
  1. #
  2. # KVM host
  3. #
  4. virt-pkgs:
  5. pkg.installed:
  6. - pkgs:
  7. {% if grains.oscodename == 'buster' %}
  8. - qemu-kvm
  9. - libvirt-bin
  10. {% elif grains.oscodename == 'bullseye' %}
  11. - qemu-system-x86
  12. - libvirt-daemon-system
  13. {% endif %}
  14. - xmlstarlet
  15. - netcat-openbsd
  16. /etc/libvirt/hooks/qemu:
  17. file.managed:
  18. - source: salt://kvm/qemu-hook
  19. - mode: 755
  20. - require:
  21. - pkg: virt-pkgs