Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • antiz/infrastructure
  • okabe/infrastructure
  • eworm/infrastructure
  • polyzen/infrastructure
  • pitastrudl/infrastructure
  • sjon/infrastructure
  • torxed/infrastructure
  • jinmiaoluo/infrastructure
  • moson/infrastructure
  • serebit/infrastructure
  • ivabus/infrastructure
  • lb-wilson/infrastructure
  • gromit/infrastructure
  • matt-1-2-3/infrastructure
  • jocke-l/infrastructure
  • alucryd/infrastructure
  • maximbaz/infrastructure
  • ainola/infrastructure
  • segaja/infrastructure
  • nl6720/infrastructure
  • peanutduck/infrastructure
  • aminvakil/infrastructure
  • xenrox/infrastructure
  • felixonmars/infrastructure
  • denisse/infrastructure
  • artafinde/infrastructure
  • jleclanche/infrastructure
  • kpcyrd/infrastructure
  • metalmatze/infrastructure
  • kevr/infrastructure
  • dvzrv/infrastructure
  • dhoppe/infrastructure
  • ekkelett/infrastructure
  • seblu/infrastructure
  • lahwaacz/infrastructure
  • klausenbusk/infrastructure
  • alerque/infrastructure
  • hashworks/infrastructure
  • foxboron/infrastructure
  • shibumi/infrastructure
  • lambdaclan/infrastructure
  • ffy00/infrastructure
  • freswa/infrastructure
  • archlinux/infrastructure
44 results
Show changes
Showing
with 102 additions and 27 deletions
---
- name: setup gluebuddy.archlinux.org
hosts: gluebuddy.archlinux.org
remote_user: root
roles:
- { role: common }
- { role: firewalld }
- { role: wireguard }
- { role: sshd }
- { role: root_ssh }
- { role: gluebuddy }
- { role: borg_client, tags: ["borg"] }
- { role: prometheus_exporters }
- { role: promtail }
- { role: fail2ban }
---
- name: setup Hetzner storagebox account
hosts: u236610.your-storagebox.de
hosts: localhost
gather_facts: false
roles:
- { role: hetzner_storagebox, backup_dir: "backup", backup_clients: "{{ groups['borg_clients'] }}", tags: ["borg"] }
- role: hetzner_storagebox
backup_clients: "{{ groups['borg_clients'] }}"
backup_dir: backup
storagebox_id: "{{ hetzner_storagebox_id }}"
storagebox_hostname: "{{ hetzner_storagebox_username }}.your-storagebox.de"
storagebox_username: "{{ hetzner_storagebox_username }}"
storagebox_password: "{{ hetzner_storagebox_password }}"
tags: ["borg"]
......@@ -5,7 +5,6 @@
- { role: common }
- { role: firewalld }
- { role: wireguard }
- { role: tools }
- { role: sshd }
- { role: root_ssh }
- { role: hardening }
......
......@@ -3,19 +3,18 @@
remote_user: root
roles:
- { role: common }
- { role: tools }
- { role: sshd }
- { role: root_ssh }
- { role: borg_client, tags: ['borg'] }
- { role: certbot }
- { role: nginx }
- { role: mta_sts }
- { role: postfix, postfix_server: true, postfix_smtpd_public: true, tags: ['mail'] }
- { role: postfix, tags: ['mail'] }
- { role: dovecot }
- { role: rspamd, rspamd_dkim_domain: archlinux.org, tags: ["mail"] }
- { role: unbound, unbound_port: 5353, tags: ["mail"] }
- { role: postfwd, tags: ['mail'] }
- { role: archusers }
- { role: archusers, shell_override: '/bin/bash', archusers_ssh_options: 'command="/usr/bin/passwd",restrict,pty' }
- { role: fail2ban }
- { role: prometheus_exporters }
- { role: promtail }
......
......@@ -7,7 +7,6 @@
- { role: firewalld }
- { role: wireguard }
- { role: common }
- { role: tools }
- { role: sshd }
- { role: root_ssh }
- { role: hardening }
......@@ -18,4 +17,4 @@
- { role: promtail }
- { role: postgres }
- { role: uwsgi }
- { role: archmanweb, archmanweb_version: 'v1.2' }
- { role: archmanweb, archmanweb_version: 'v1.3' }
......@@ -5,7 +5,6 @@
remote_user: root
roles:
- { role: common }
- { role: tools }
- { role: firewalld }
- { role: wireguard }
- { role: sshd }
......@@ -18,9 +17,7 @@
postgres_work_mem: 64MB
postgres_maintenance_work_mem: 256MB
postgres_effective_cache_size: 4GB
postgres_jit: 'off'
- role: postfix
postfix_relayhost: "mail.archlinux.org"
- { role: postfix_null }
- { role: matrix }
- { role: fail2ban }
- { role: prometheus_exporters }
......
......@@ -5,7 +5,6 @@
remote_user: root
roles:
- { role: common }
- { role: tools }
- { role: firewalld }
- { role: wireguard }
- { role: sshd }
......
......@@ -4,14 +4,15 @@
remote_user: root
roles:
- { role: common }
- { role: tools }
- { role: sshd }
- { role: root_ssh }
- { role: certbot }
- { role: nginx }
- { role: syncrepo, tags: ['nginx'] }
- { role: syncdebug, when: mirror_debug_packages is not defined or mirror_debug_packages }
- { role: archweb, archweb_site: false, archweb_services: false, archweb_mirrorcheck: true }
- { role: prometheus_exporters }
- { role: promtail }
- { role: fail2ban }
- { role: wireguard }
- { role: geomirror, when: "inventory_hostname == 'mirror.pkgbuild.com' or 'geo_mirrors' in group_names" }
......@@ -5,7 +5,6 @@
- { role: firewalld }
- { role: wireguard }
- { role: common }
- { role: tools }
- { role: sshd }
- { role: root_ssh }
- { role: hardening }
......
......@@ -5,7 +5,6 @@
remote_user: root
roles:
- { role: common }
- { role: tools }
- { role: sshd }
- { role: root_ssh }
- { role: borg_client, tags: ["borg"] }
......
......@@ -5,7 +5,6 @@
remote_user: root
roles:
- { role: common }
- { role: tools }
- { role: archusers }
- { role: bugbot }
- { role: phrik }
......
......@@ -5,7 +5,6 @@
remote_user: root
roles:
- { role: common }
- { role: tools }
- { role: firewalld }
- { role: wireguard }
- { role: sshd }
......
......@@ -5,7 +5,6 @@
remote_user: root
roles:
- { role: common }
- { role: tools }
- { role: firewalld }
- { role: wireguard }
- { role: sshd }
......
......@@ -3,7 +3,6 @@
remote_user: root
roles:
- { role: common }
- { role: tools }
- { role: firewalld }
- { role: wireguard }
- { role: sshd }
......
......@@ -5,7 +5,6 @@
remote_user: root
roles:
- { role: common }
- { role: tools }
- { role: firewalld }
- { role: wireguard }
- { role: sshd }
......
---
- name: setup rsync.net account
hosts: prio.ch-s012.rsync.net
hosts: localhost
gather_facts: false
roles:
- { role: rsync_net, backup_dir: "backup", backup_clients: "{{ groups['borg_clients'] }}", tags: ["borg"] }
- role: rsync_net
backup_clients: "{{ groups['borg_clients'] }}"
backup_dir: backup
tags: ["borg"]
......@@ -5,13 +5,12 @@
remote_user: root
roles:
- { role: common }
- { role: tools }
- { role: sshd }
- { role: root_ssh }
- { role: borg_client, tags: ["borg"] }
- { role: certbot }
- { role: nginx }
- { role: postfix, postfix_relayhost: "mail.archlinux.org" }
- { role: postfix_null }
- { role: sudo }
- { role: uwsgi }
- role: security_tracker
......
......@@ -5,7 +5,6 @@
remote_user: root
roles:
- { role: common }
- { role: tools }
- { role: firewalld }
- { role: wireguard }
- { role: sshd }
......
---
- name: ensure latest keyring
pacman:
name: archlinux-keyring
state: latest
update_cache: yes
- name: upgrade all packages
pacman:
upgrade: yes
register: pacman_upgrade
- name: stop if no packages were upgraded
meta: end_host
when: pacman_upgrade is not changed
- name: check for running builds
block:
- name: list build-related processes
command: pgrep -x 'mkarchroot|makechrootpkg|systemd-nspawn'
register: pgrep
ignore_errors: true
- name: abort reboot with running builds
meta: end_host
when: pgrep is succeeded
when: "'buildservers' in group_names"
- name: check for active borg backup jobs
block:
- name: check if /backup exists
stat: path=/backup
register: backup_mountdir
- name: abort reboot when borg backup is running
meta: end_host
when: backup_mountdir.stat.exists
when: "'borg_clients' in group_names"
- name: gemini pre-reboot checks
block:
- name: list logged on users
command: who
register: who
- name: abort reboot with logged on users
meta: end_host
when:
- who is changed
- who.stdout_lines|length > 1
- name: stop arch-svntogit.timer
service: name=arch-svntogit.timer state=stopped
- name: wait for svntogit to finish
wait_for:
path: /srv/svntogit/update-repos.sh.lock
state: absent
when: inventory_hostname == "gemini.archlinux.org"
- name: reboot
reboot:
......@@ -9,5 +9,5 @@
roles:
- install_arch
vars:
- bootstrap_version: "2021.04.01"
- bootstrap_version: "latest"
- sshd_enable_includes: false