Verified Commit 20909004 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Move archive.archlinux.org to gemini

In preparation of the move to gemini make it already run the
archive.archlinux.org frontend and the archive-uploader. So the
migration is done in steps.
parent addd0e01
......@@ -16,5 +16,8 @@ system_disks:
- /dev/sdd
raid_level: "raid6"
archive_domain: archive.archlinux.org
archive_nginx_only: true
zabbix_agent_templates:
- Template OS Linux
......@@ -10,3 +10,8 @@
- { role: sshd }
- { role: root_ssh }
- { role: borg-client, tags: ['borg'] }
- { role: sudo, tags: ['archusers'] }
- { role: zabbix-agent }
- { role: certbot }
- { role: nginx }
- { role: archive }
......@@ -4,4 +4,5 @@ archive_user_name: 'archive'
archive_user_home: '/home/archive'
archive_repo: '{{ archive_user_home }}/archive-uploader'
archive_uploader_version: 'v0.15.3'
archive_dir: '/srv/archive'
archive_nginx_only: false
......@@ -50,30 +50,25 @@
- name: install internet archive packages
pacman: name=python-internetarchive state=present
when: not archive_nginx_only
- name: create archive user
user: name={{ archive_user_name }} shell=/bin/false home="{{ archive_user_home }}" createhome=yes
when: not archive_nginx_only
- name: configure archive.org client
command: ia configure --username={{ vault_archive_username }} --password={{ vault_archive_password }} creates={{ archive_user_home }}/.config/ia.ini
become: yes
become_user: "{{ archive_user_name }}"
when: not archive_nginx_only
- name: clone archive uploader code
git: repo=https://github.com/archlinux/arch-historical-archive.git dest="{{ archive_repo }}" version="{{ archive_uploader_version }}"
become: yes
become_user: "{{ archive_user_name }}"
when: not archive_nginx_only
- name: install system service
template: src={{ item }} dest=/etc/systemd/system/{{ item }} owner=root group=root mode=0644
loop:
- archive-uploader.service
- archive-uploader.timer
when: not archive_nginx_only
- name: start uploader timer
systemd:
......
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