Commit graph

206 commits

Author SHA1 Message Date
Evangelos Foutras 69994e900a
Complete rsync.net account migration
New username; separate and longer account manager + storage passwords.

Also, have to use --remote-path=borg1 when interacting with rsync.net.
2021-11-06 19:50:31 +02:00
Evangelos Foutras b97a47e282
Remove zsh shell entry from phrik.archlinux.org
It's not available as a shell anymore after tools were removed from it.
2021-10-04 22:21:42 +03:00
Evangelos Foutras 49b49925bb
mirrors: Update archweb_mirrorcheck_locations 2021-08-24 23:54:48 +03:00
Jan Alexander Steffens (heftig) 6c4f215b3c matrix.archlinux.org: Configure static DNS via networking role
Hetzner DNS has been delaying many responses for 5 seconds, causing
outgoing federation work to pile up, almost running into OOM before we
noticed.

I don't know if were being throttled because federation makes a *lot* of
requests. Anyway, using Cloudflare DNS seems to solve it.

Enable DNSOverTLS for this because we can.
2021-08-16 00:47:25 +00:00
Kristian Klausen a8369f311d Be consistent and use en* everywhere for matching ethernet interfaces
en is the prefix for ethernet according to systemd.net-naming-scheme(7)
2021-07-30 20:18:18 +02:00
Leonidas Spyropoulos ecd08fb7e8 networking: Remove support for specifying DNS servers
Redundant since this commit:
bdd538ec ("Use unbound for rspamd DNS resolving")

Signed-off-by: Leonidas Spyropoulos <artafinde@gmail.com>
2021-07-30 20:18:18 +02:00
Kristian Klausen 3ba230b17c Replace runner1 with a new bigger box
CPU: Intel Xeon E5-2620 -> E-2288G
Disk: 2x~1TB -> 2x~500GB
2021-07-21 00:40:59 +02:00
Evangelos Foutras 995ed1e276
Increase zram-fraction to 1.0 for lists.archlinux.org
It's been running out of swap during borg-backup and seems to get good
compression ratios; try upping the zram size to 100% of RAM (from 50%).
2021-07-13 08:11:19 +03:00
Jelle van der Waa 0a460f6ae4
Add missing fail2ban nginx-req-limit option 2021-07-12 13:26:11 +02:00
Evangelos Foutras 21a62c656a
Use zswap instead of zram on repro1.pkgbuild.com
zswap seems like the better choice when a backing swap partition exists.
2021-07-12 14:15:06 +03:00
Jelle van der Waa 314aa3556e
Rate limit archlinux.org and fail2ban abusers
Add a default rate limit for 20 req/s for the uwsgi endpoint and
automatically ban users who reach this limit. The nginx-limit-req rule
does not ban users who reach the rss limit as these are not likely DoS
attempts.
2021-07-11 21:10:38 +02:00
Kristian Klausen a9ee7e5d8f
Send prometheus metrics and scrap its metrics over WireGuard 2021-07-07 00:58:43 +02:00
Kristian Klausen 664deb67ab WireGuard all hosts
This is meant as a internal authenticated and encrypted network which we
can use for internal services, we don't want to expose to the internet
or when encryption is desired but not easily implementable.
2021-07-06 20:58:15 +00:00
Kristian Klausen 41c5a5e26c Add initial playbook for lists.archlinux.org
nginx, certbot, postfix and mailman are still missing and the DNS is
still pointing to luna.
2021-06-30 09:30:31 +00:00
Kristian Klausen 7e78f8873c aurweb: Use a different db password for aur and aur-dev
Fix #325
2021-06-16 00:31:38 +00:00
Kristian Klausen 5f0fe48dc8
Remove host_vars for non-existent secure-runner2.archlinux.org 2021-06-11 20:36:10 +02:00
Leonidas Spyropoulos 43f0b53206 fail2ban: Add nginx_limit_req to all dicts
Ansible complains if the fail2ban_jails dictionary is missing the
nginx_limit_req key. Adding this as default failse.

Bugfix from: e5773374

Signed-off-by: Leonidas Spyropoulos <artafinde@gmail.com>
2021-06-10 19:14:35 +01:00
Kristian Klausen 880f162319 gitlab_runner: Check runner configuration into git
Fix #193
2021-06-07 17:20:47 +02:00
Jelle van der Waa f3be425a1b
Move bugbot to libera.chat 2021-05-25 19:32:21 +02:00
Jelle van der Waa 15a37bda55
Add fail2ban for nginx to man.archlinux.org
To negate high cpu spikes from abusers/bots who scan our services, we
now fail2ban them.
2021-05-23 21:57:18 +02:00
Jelle van der Waa 867d42baae
Add vault_prometheus for the prometheus mirror 2021-05-14 00:18:35 +02:00
Sven-Hendrik Haase d2b110d250 Add dashboards.archlinux.org for public Grafana dashboards
Co-authored-by: Kristian Klausen <kristian@klausen.dk>
2021-05-13 23:28:01 +02:00
Jelle van der Waa 26390132e5
Send alertmanager notifications to Gitlab
Gitlab can show our alertmanager alerts only for > reporter and create
issues from alerts on gitlab.
2021-04-19 00:22:02 +02:00
Kristian Klausen 65b6d7ba3c Ensure unbound is used for mail.archlinux.org
For spam checking it is recommend to use our own recursive resolver[1]
to avoid rate limiting by using a public resolver.

unbound is already installed but the system wasn't configured to use it.

[1] https://rspamd.com/doc/faq.html#resolver-setup
2021-04-07 20:01:39 +00:00
Jelle van der Waa 13aee0c18e
Set the correct network interface for europe 2021-03-12 20:58:25 +01:00
Jelle van der Waa b71541f2fb
Configure network correctly for Kape servers
Previously we configured our network conf to all interfaces, which
shouldn't be done as not all our routed to the internet and this causes
systemd-network-online target to fail.
2021-03-01 23:21:15 +01:00
Sven-Hendrik Haase 004a08dbc4
Add host_vars entry for redirect.archlinux.org 2021-02-26 00:09:00 +01:00
Jelle van der Waa 3124cfd933
Add hedgedoc as new service
This adds a collaborative markdown editor as newly offered service which
is available via login for all Arch Linux Staff with an option to allow
anonymous edits by users (not default). Users are managed via keycloak
and require the Staff role to be allowed in, non staff keycloak users
currently will receive an internal server error due to an upstream
issue.
2021-02-01 21:59:30 +01:00
Sven-Hendrik Haase 44f497e52b
Remove dragon (fixes #267) 2021-01-31 13:54:14 +01:00
Sven-Hendrik Haase 83cbb36866
Add build.archlinux.org 2021-01-26 18:06:09 +01:00
Jelle van der Waa c62adf42dc
Make Kape archive servers, arch mirrors as well.
Closes: #231
2021-01-26 16:56:41 +01:00
Jelle van der Waa a06a193adf
Do not create archusers group on phrik.archlinux.org
This host is special and only allows demize to login as user to
administer phrik and no other users/groups should be created on the
machine.
2021-01-23 14:50:54 +01:00
Sven-Hendrik Haase 8327ffd974
Deploy man.archlinux.org 2021-01-11 14:55:29 +01:00
Frederik Schwan 8decc2e977
use fetchmail for donor import
The former approach to export a maildir and iterate over it with a
script broke when the mail server and the web server got on their
own hosts. This will use IMAP IDLE to check for new mails and pass
them instantly to the djange manage.py script without storing the mail
locally.
2020-12-30 21:33:28 +01:00
Giancarlo Razzolini 56740542f8
host_vars: Remove apollo
Removed the host_vars file for apollo.
2020-12-29 07:25:57 -03:00
Giancarlo Razzolini 4dd7611e4e
hosts: Add security.archlinux.org and create a host_vars for it
Added security.archlinux.org to the relevant groups on hosts and created a host_vars
so we can run the all-hosts-basic.
2020-12-25 14:40:42 -03:00
Frederik Schwan 975277faa7
make fetchmail use the postfix relay password 2020-12-24 11:36:37 -03:00
Frederik Schwan afc16848be
add fetchmail imap password 2020-12-24 11:36:37 -03:00
Frederik Schwan 4ad9050c24
use fetchmail to deliver mail to patchwork 2020-12-24 11:36:37 -03:00
Giancarlo Razzolini 4304ee9053
hosts: Add patchwork to hosts files and create a host_vars file for it
Added patchwork to the relevant groups on hosts and created a new host_vars file
for it.
2020-12-24 11:36:36 -03:00
Sven-Hendrik Haase 00f30da2d8
Add a way to let us provide additional addresses to machines configured via DHCP 2020-12-22 18:27:06 +01:00
Giancarlo Razzolini 18a9fa931e
host_vars/wiki: Added a host_vars file for wiki.archlinux.org
Added a host_vars file for the new wiki.archlinux.org machine, with the required
variables, specially the memcached_socket, for the prometheus exporter.
2020-12-21 16:36:39 -03:00
Frederik Schwan 610852c9f7
fix ipv6 on repro1.pkgbuild.com 2020-12-20 18:00:35 +01:00
Jelle van der Waa e0af1b09cc Allow archlinux.org to rsync the archlinux iso 2020-12-20 11:21:31 +00:00
Giancarlo Razzolini 892a499891
mirror.pkgbuild.com: Add ipv4/6 addresses for mirror.pkgbuild.com
Add the ip addresses for mirror.pkgbuild.com, otherwise the apollo and archlinux.org playbooks won't run
2020-12-15 14:22:45 -03:00
Giancarlo Razzolini 797586939a
archlinux.org: Add a host_vars file and playbook for archlinux.org
Added a host_var file for archlinux.org as well as the playbook for archlinux.org
machine. It it's a stripped down version of apollo's playbook, only containing the roles
pertaining archweb.
2020-12-15 14:14:39 -03:00
Frederik Schwan 018df250c1
fix network of runner1.archlinux.org
Do not use asterisk on network devices to prevent IP address collisions
on networks. Also use the right network mask for the assigned network.
For runner1 we need to ignore RAs since those routes don't work.
2020-12-12 21:45:34 +01:00
Jelle van der Waa 5dc453cc21 Split archive role into archive_web for archive-mirrors
To simplify the archive role, split it up in the web serving part for
the archive-mirrors, gemini and keep the archive role for only the
archive operation. This simplifies the new role as only two lines are
required to setup the the archive mirror website.
2020-12-12 18:32:23 +00:00
Sven-Hendrik Haase 90cbae364f Remove old repro2 hostvars 2020-12-12 13:06:51 +00:00
Sven-Hendrik Haase 678845afac Add Kape server IPv6 addresses (fixes #230) 2020-12-11 22:08:26 +00:00