Browse Source

gitlab: setup libvirtd on the runner

Refs: main/infrastructure#268
keep-around/68a3c3746a6b9a97ade4ac05826340644ed27ed2
Loïc Dachary 9 months ago
parent
commit
b7cb593907
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  1. 6
      playbooks/gitlab/gitlab-ci-playbook.yml
  2. 1
      playbooks/gitlab/roles/debops.ansible_plugins
  3. 1
      playbooks/gitlab/roles/debops.libvirtd
  4. 1
      playbooks/gitlab/roles/debops.libvirtd_qemu
  5. 1
      playbooks/gitlab/roles/debops.secret
  6. 1
      playbooks/gitlab/roles/gitlab-ci/tasks/gitlab-ci.yml

6
playbooks/gitlab/gitlab-ci-playbook.yml

@ -3,6 +3,9 @@
hosts: runner-host
become: true
environment: '{{ inventory__environment | d({})
| combine(inventory__group_environment | d({}))
| combine(inventory__host_environment | d({})) }}'
roles:
- role: ansible-role-docker
docker_install_compose: false
@ -10,4 +13,7 @@
- role: certificate
certificate_create: false
- role: debops.libvirtd
- role: debops.libvirtd_qemu
- role: gitlab-ci

1
playbooks/gitlab/roles/debops.ansible_plugins

@ -0,0 +1 @@
../../debops/ansible/roles/debops.ansible_plugins

1
playbooks/gitlab/roles/debops.libvirtd

@ -0,0 +1 @@
../../debops/ansible/roles/debops.libvirtd

1
playbooks/gitlab/roles/debops.libvirtd_qemu

@ -0,0 +1 @@
../../debops/ansible/roles/debops.libvirtd_qemu

1
playbooks/gitlab/roles/debops.secret

@ -0,0 +1 @@
../../debops/ansible/roles/debops.secret

1
playbooks/gitlab/roles/gitlab-ci/tasks/gitlab-ci.yml

@ -57,6 +57,7 @@
--url https://gitlab.{{ domain }} \
--executor docker \
--docker-image debian:buster \
--docker-volumes /run/libvirt/libvirt-sock:/run/libvirt/libvirt-sock \
--docker-volumes /srv:/srv \
--docker-volumes /etc/ssl/certs:/etc/ssl/certs:ro \
--docker-volumes /usr/local/share/ca-certificates/infrastructure:/usr/local/share/ca-certificates/infrastructure:ro \

Loading…
Cancel
Save