Commit a636f8a5 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Remove arch-boxes stuff (fixes #107)

This is now built enitrely in GitLab CI in the arch-boxes repo so this is no longer required.
parent 85814c03
Pipeline #1320 passed with stage
in 37 seconds
......@@ -192,7 +192,6 @@ The following steps should be used to update our managed servers:
#### Services
- build server
- sogrep
- arch-boxes (packer)
### state.archlinux.org
......
......@@ -14,5 +14,4 @@
- { role: syncrepo }
- { role: sogrep }
- { role: archbuild }
- { role: arch_boxes }
- { role: docker_image }
---
archboxes_user: 'archboxes'
archboxes_home: '/srv/arch-boxes'
archboxes_git_dir: '/srv/arch-boxes/arch-boxes'
archboxes_time: '*-*-* 04:00:00'
archboxes_version: "1.6.0"
# Loads all necessary virtualbox modules
vboxdrv
vboxnetadp
vboxnetflt
---
- name: install arch-boxes dependencies
pacman: name=git,packer,virtualbox,qemu-headless,virtualbox-host-modules-arch,python,python-urllib3 state=present
- name: create arch-boxes user
user: name={{ archboxes_user }} shell=/bin/bash home="{{ archboxes_home }}" createhome=yes
- name: clone arch-boxes repository
git: repo='https://github.com/archlinux/arch-boxes.git' dest="{{ archboxes_git_dir }}" force=yes version="{{ archboxes_version }}"
- name: load virtualbox kernel modules
modprobe: name="{{ item }}" state=present
with_items: ['vboxdrv', 'vboxnetadp', 'vboxnetflt']
- name: add modules-load config for virtualbox
copy: src=virtualbox.conf dest=/etc/modules-load.d/virtualbox.conf owner=root group=root mode=0644
- name: adjust permissions of git checkout
file: path="{{ archboxes_git_dir }}" state=directory recurse=yes owner="{{ archboxes_user }}" group="{{ archboxes_user }}" mode=preserve
- name: ensure controller.py of arch-boxes is executable
file: path="{{ archboxes_git_dir }}/controller.py" mode=0755 owner=root group=root
- name: replace placeholder to vagrantcloud API Key
no_log: true
replace: path="{{ archboxes_git_dir }}/vagrant.json" regexp='PLACEHOLDER' replace="{{ vault_archboxes_apikey }}" owner=root group=root mode=0600
- name: install sudoers file
template: src=sudoers.d.j2 dest=/etc/sudoers.d/archboxes owner=root group=root mode=0440
- name: install arch-boxes service
template: src='arch-boxes.service.j2' dest='/etc/systemd/system/arch-boxes.service' owner=root group=root mode=0644
notify:
- daemon reload
- name: install arch-boxes timer
template: src='arch-boxes.timer.j2' dest='/etc/systemd/system/arch-boxes.timer' owner=root group=root mode=0644
notify:
- daemon reload
- name: start and enable arch-boxes timer
service: name='arch-boxes.timer' enabled=yes state=started
[Unit]
Description=arch-boxes service for deploying images and vagrant boxes
[Service]
Type=oneshot
ExecStart={{ archboxes_git_dir }}/controller.py
User={{ archboxes_user }}
[Unit]
Description=Timer for arch-boxes.service
[Timer]
OnCalendar={{ archboxes_time }}
Persistent=true
Unit=arch-boxes.service
[Install]
WantedBy=timers.target
%archboxes-sudo ALL=({{archboxes_user}}) NOPASSWD:ALL
......@@ -7,7 +7,6 @@ import re
# regex are ancored to beginning and end of string already
unit_whitelist_regexes = [
r'archive-uploader.service',
r'arch-boxes.service',
r'borg-backup.service',
r'createlinks.service',
r'dovecot.service',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment