1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-11-10 02:01:41 +01:00
Commit Graph

29 Commits

Author SHA1 Message Date
Evangelos Foutras
43eb814bcf
Combine sync{archive,debug,riscv} into mirrorsync
These roles are very similar and can be merged into a single new role.

Note: The archive mirror is changed from a 4-hour sync to minutely for
conformity with the other two mirrors. In practice this doesn't matter
as it was already taking over 4 hours to finish and was starting again
right after its previous run.
2022-09-28 21:52:52 +03:00
Evangelos Foutras
29aaed2bd0
syncriscv: add role for mirroring the RISC-V port
Going to be served by all our Geo boxes under riscv.mirror.pkgbuild.com.
2022-09-16 22:22:43 +03:00
Evangelos Foutras
26f289b72b
Capitalize the first letter of all task names
ansible-lint 6.5.0 complains about:

  name: All names should start with an
        uppercase letter. (name[casing])
2022-08-23 06:57:13 +03:00
Evangelos Foutras
862a8a088e
playbooks/mirrors: make archweb inclusion conditional
We do not really want to make all mirrors run mirrorcheck, so make it
conditional based on whether archweb_mirrorcheck_locations is defined.
2022-07-10 12:42:15 +03:00
Evangelos Foutras
a1d205c911
playbooks/mirrors: add firewall role and move wireguard up
The sshd role needs to open a firewall hole and will fail if firewalld
isn't present. Also place the wireguard role right after firewall role
because it is needed by promtail further down.
2022-07-10 12:42:15 +03:00
Evangelos Foutras
a9e0790f53
Remove the three dashes from all YAML documents
These are used to signal the start of the document in a stream of many
documents. As Ansible only supports one YAML document per file this is
unnecessary. About a third of our YAML documents already lacked these.
2022-06-08 14:35:45 +03:00
Evangelos Foutras
5948d258f0
geomirror: rename role to geo_dns
The intention is to use this config for other domains besides a mirror.
2022-05-14 14:22:40 +03:00
Evangelos Foutras
afb582b108
geomirror: extract acme dns challenge into new role
- add the new role to redirect.archlinux.org
- release mirror.pkgbuild.com of all DNS duties
2022-05-14 14:22:32 +03:00
Kristian Klausen
aa359082aa
Avoid single point-of-failure for our GeoIP domain
We don't want mirror.pkgbuild.com's DNS server to be a
single-point-of-failure, so this commit adds multiple authoritative DNS
servers for the zone. The extra DNS servers are run on the geomirror
servers.

The _acme-challenge zone, used for obtaining certificates, is run solely
on mirror.pkgbuild.com's DNS server, to avoid syncing DNS records
between the servers (KISS).
2022-04-15 19:43:33 +02:00
Evangelos Foutras
64ec52ca86
Enable certbot_dns_support for geo mirrors only
mirror.pkgbuild.com doesn't need it.
2022-04-13 04:20:01 +03:00
Kristian Klausen
9f65f99c6b
Add GeoIP domain for our sponsored mirros
We had a GeoIP mirror in the past based on nginx and its GeoIP module,
but it didn't perform very well, due to the high latency (asking a
central server for the package and then redirected to the closest
mirror).

One of the reasons for offering this service, is so we can relieve
mirror.pkgbuild.com which is burning a ton of traffic (50TB/month),
likely due to it being the default mirror in our Docker image. Another
reason is so we can offer a link to our arch-boxes images in libosinfo
(used by gnome-boxes, virt-install and virt-manager), with good enough
performance for most users.

This time we take a different approach and use a DNS based solution,
which means the latency penalty is only paid once (the first DNS
request). The downside is that the mirrors must have a valid certificate
for the same domain name, which makes using third-party mirrors a
challenge. So for now, we are just using the sponsored mirorrs
controlled by the DevOps team.

Fix #101
2022-04-13 03:10:09 +02:00
Kristian Klausen
4773f92c77 Sync debug packages to our sponsored mirrors[1]
The sponsored mirrors have a ton of storage, but mirror.pkgbuild.com
doesn't, so debug packages aren't synced to it.

[1] {america,asia,europe}.mirror.pkgbuild.com
2022-02-04 21:13:19 +00:00
Kristian Klausen
7da1e273fc Cleanup tools
Fix #392
2021-10-02 14:45:02 +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
Jelle van der Waa
89a98702bd
Remove arch32 mirror role
We no longer mirror arch32 on our servers and this role is currently
broken.
2021-04-12 18:47:10 +02:00
Kristian Klausen
7235e726d6
Implement centralized logging
Fix #263
2021-04-08 20:33:43 +02:00
Kristian Klausen
b941a133fb Remove unbound from most systems
unbound is only used if dns_servers is explicit set to 127.0.0.1, which
isn't the case for any of these systems.

Fix #234
2021-04-07 20:01:39 +00:00
Jelle van der Waa
992f81d766
By default enable the sshd jail for fail2ban
For all hosts we want to have a working fail2ban for sshd brute force
attempts through a group_vars/all. For some hosts an override is
required to enable postfix or dovecot jails.
2020-11-02 17:58:18 +01:00
Jelle van der Waa
442a6de9bb
Add mirror/homedir to prometheus monitoring 2020-10-06 22:51:44 +02:00
Jelle van der Waa
2be002b112
Remove zabbix-agent role everywhere
We switched for monitoring to prometheus so zabbix-agent is unwanted and
we don't want to accidently deploy it again.
2020-09-12 17:22:09 +02:00
Frederik Schwan
04b2e3b1e0 fix E106 'Role name <role> does not match `^[a-z][a-z0-9_]+$` pattern' 2020-08-27 05:29:00 +00:00
Florian Pritz
dacb47a73d
Refactor certbot into dedicated role
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2019-03-24 17:32:47 +01:00
Florian Pritz
53dd4d6891 Configure network/dns on PIA machines
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-07-02 13:29:08 +02:00
Bartłomiej Piotrowski
69a91b0574 mirrors: drop reduntant tags 2017-12-07 17:21:51 +01:00
Bartłomiej Piotrowski
e5b461e31a Add role for mirroring archlinux32 2017-11-15 12:50:32 +01:00
Bartłomiej Piotrowski
efeeff759c nginx: set default letsencrypt_validation_dir value 2017-10-20 14:24:07 +02:00
Florian Pritz
c0c12767e9
Enable zabbix-agent for mirrors
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-09-11 15:12:45 +02:00
Florian Pritz
89eade3dda
mirrors: Deploy mirrorchecker
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-09-06 20:07:00 +02:00
Bartłomiej Piotrowski
61ac2a661b Configure Mexican mirror 2017-09-05 14:29:11 +02:00