Skip to content
Snippets Groups Projects
  • Kristian Klausen's avatar
    7ea1eb29
    gitlab_runner: Refactor libvirt-executor · 7ea1eb29
    Kristian Klausen authored
    Changes:
    - Switch to arch-boxes' base image
    - Verify the base image's signature
    - Use the new "latest" symlink, instead of parsing the HTML for
      finding the latest arch-boxes image[1]
    - Create the base image by using arch-chroot and friends, instead of
      creating a full-blown VM
    - Create the VMs from domain XML template instead of virt-clone
    - Switch mirror to geo.mirror.pkgbuild.com
    - Try to follow "filesystem hierarchy" standards for where to place
      configuration (id_ed25519) and "vendor data" (arch-boxes.asc and
      domain_template.xml)
    - Use a ed25519 key instead of RSA key
    - Only start the "update base image" server if network and DNS are up
    - Misc fixes and cleanups
    
    [1] !552
    Verified
    7ea1eb29
    History
    gitlab_runner: Refactor libvirt-executor
    Kristian Klausen authored
    Changes:
    - Switch to arch-boxes' base image
    - Verify the base image's signature
    - Use the new "latest" symlink, instead of parsing the HTML for
      finding the latest arch-boxes image[1]
    - Create the base image by using arch-chroot and friends, instead of
      creating a full-blown VM
    - Create the VMs from domain XML template instead of virt-clone
    - Switch mirror to geo.mirror.pkgbuild.com
    - Try to follow "filesystem hierarchy" standards for where to place
      configuration (id_ed25519) and "vendor data" (arch-boxes.asc and
      domain_template.xml)
    - Use a ed25519 key instead of RSA key
    - Only start the "update base image" server if network and DNS are up
    - Misc fixes and cleanups
    
    [1] !552
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
main.yml 641 B
---
- name: remove iptables to solve iptables<->iptables-nft conflict
  pacman: name=iptables force=yes state=absent

- name: install libvirt and needed optional dependencies
  pacman: name=libvirt,qemu-headless,dnsmasq,iptables-nft state=present
  register: result

- name: reload firewalld
  service: name=firewalld state=reloaded
  when: result.changed

- name: autostart default network on boot
  file: src=/etc/libvirt/qemu/networks/default.xml dest=/etc/libvirt/qemu/networks/autostart/default.xml state=link owner=root group=root

- name: start and enable libvirtd
  systemd: name=libvirtd enabled=yes state=started daemon_reload=yes