1
1
Fork 0
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-05-26 10:46:06 +02:00
Commit Graph

4418 Commits

Author SHA1 Message Date
Evangelos Foutras 2762c7550b
grafana: comment out a few default/unused settings
- enable_gzip: grafana listens on localhost, nginx handles compression
- admin_user: initial admin creation is disabled in our config
- strict_transport_security: the same header is set by nginx
- strict_transport_security_max_age_seconds: unused without the above
2022-10-24 16:11:45 +03:00
Evangelos Foutras f36323cf3f
grafana: rebase grafana.ini to grafana 9.2.0-1 2022-10-24 15:53:45 +03:00
Evangelos Foutras eb700a55d8
Use ansible_virtualization_role in few more places
- common: for deciding when to install/configure smartmontools
- install_arch: installing ucode update only on physical hosts
2022-10-24 10:41:38 +03:00
Evangelos Foutras 71be352b44
Merge branch 'smarter-smart' into 'master'
prometheus_exporters: ignore smartctl exit code 64

See merge request archlinux/infrastructure!645
2022-10-23 21:25:01 +03:00
Evangelos Foutras fea117c3cf
prometheus_exporters: ignore smartctl exit code 64
On asia.mirror.pkgbuild.com, 'smartctl -a --json $disk' has been exiting
with code 64. From smartctl(1) code 64 corresponds to "Bit 6: The device
error log contains records of errors". Since we're not interested in old
errors, ignore it.
2022-10-23 21:08:55 +03:00
Evangelos Foutras 8dd0473925
Merge branch 'tidy-inventory' into 'master'
Tidy up the inventory a bit

See merge request archlinux/infrastructure!644
2022-10-23 20:50:08 +03:00
Evangelos Foutras de5552e0bc
hosts: get rid of dedicated_servers group
This has become outdated (missing new dedicated servers) and its usage
can be replicated by checking if ansible_virtualization_role == "host".

For Ansible ad hoc commands, '!hcloud' can be used to the same effect.
2022-10-23 20:49:28 +03:00
Evangelos Foutras ef266a95a2
hosts: remove superseded reproduciblebuilds group
Repro machines are now placed in the rebuilderd_workers group.
2022-10-23 20:49:28 +03:00
Evangelos Foutras 3198135748
hosts: remove purposeless nginx group
This group is unused and contains fewer than half of our web servers.
2022-10-23 20:49:28 +03:00
Evangelos Foutras efddbd8777
hosts: add lists.archlinux.org to [postgresql_servers] 2022-10-23 20:49:27 +03:00
Evangelos Foutras f626cbac5b
hosts: alphabetically sort servers in each group 2022-10-23 20:49:27 +03:00
Jan Alexander Steffens (heftig) 579b62c66f
matrix: Raise minutesBeforeTrusting to 36h
Bots are joining earlier and waiting a day before spamming.
2022-10-23 11:49:17 +02:00
Kristian Klausen 945faad6f9
Offboard kevr as project maintainer
Fix #472
2022-10-22 20:58:44 +02:00
Kristian Klausen 0c1c1f0307
Merge branch 'goaurrpc-dashboard' into 'master'
grafana: update grafana dashboard for goaurrpc

See merge request archlinux/infrastructure!642
2022-10-22 20:57:56 +02:00
moson-mo 29b025c42d grafana: update grafana dashboard for goaurrpc
* Show totals for the last 24 hours (instead of all time)
* Add total search requests pie chart

Signed-off-by: moson-mo <mo-son@mailbox.org>
2022-10-22 18:54:12 +00:00
Evangelos Foutras 0692c54451
install_arch: get image signature from archlinux.org
Wiki says "Do not download it from a mirror" and it sounds more secure.

Fixes: 503b08db4c ("install_arch: verify bootstrap image signature")
2022-10-22 19:01:41 +03:00
Kristian Klausen cd68bfc211
grafana: Fix disabled dashboards provisioning due to duplicates
Symlinking home.json to archive.json causes a duplicate, as both
dashboards have the same uid, and Grafana won't keep the dashboards
updated when there are duplicates[1]. Instead just change
default_home_dashboard_path to point to the archive.json dashboard.

[1] "dashboards provisioning provider has no database write permissions
     because of duplicates"
2022-10-22 17:44:20 +02:00
Evangelos Foutras b961bef7af
Merge branch 'fix_for_issue_458' into 'master'
install_arch: verify bootstrap image signature

Closes #458

See merge request archlinux/infrastructure!641
2022-10-22 18:10:59 +03:00
Matt-1-2-3 503b08db4c
install_arch: verify bootstrap image signature
Fixes #458.
2022-10-22 17:06:48 +03:00
Kristian Klausen 065c54cfd4
Merge branch 'fix-off-onboarding-templates' into 'master'
Cleanup onboarding and offboarding template

Closes #372

See merge request archlinux/infrastructure!627
2022-10-22 03:02:58 +02:00
Kristian Klausen 112ee2b47f
Consolidate TU/developer onboarding steps into the same checklist 2022-10-22 03:01:58 +02:00
Kristian Klausen 77a663d927
Fix unnecessary linebreak between tasks in onboarding template
Fixes: 2c69e12d ("Extend onboarding information for signing keys")
2022-10-22 03:01:53 +02:00
Kristian Klausen adb7be5241
Document onboarding of support staff
We have offered a arch mail address, for support staff, for over a
year[1][2] and the only difference, is that support staff must only be
granted SSH access to mail.archlinux.org. SSH access to
homedir.archlinux.org is also allowed, but it is opt-in[3].

[1] 7287d6d3 ("archroles: Add support-staff group")
[2] 50c3e0f9 ("archusers: Support restricting users to specific hosts")
[3] e0e52552 ("Allow Alad access to homedir.archlinux.org")

Fix #372
2022-10-22 03:01:50 +02:00
Kristian Klausen c940cf5e7c
Remove onboarding steps handled by gluebuddy
Since [1][2].

[1] 8a1052889b
[2] https://gitlab.archlinux.org/archlinux/infrastructure/-/merge_requests/524
2022-10-22 03:01:47 +02:00
Kristian Klausen 8fabbb3986
Subscribe/unmoderate all staff to a-d-p and not only packagers[1]
[1] https://lists.archlinux.org/archives/list/staff@lists.archlinux.org/thread/3LFY3OVV4MHXR2WTYDFS6EWNATGFCE3E/
2022-10-22 03:01:43 +02:00
Kristian Klausen 63ae28239f
Only setup forwarding, when offboarding, if requested by the user
Reaching out to the user is cumbersome, especially if the user is being
offboarded due to inactivity.
2022-10-22 03:01:39 +02:00
Kristian Klausen 73e8fb94b5
Update mailing list links in off/onboarding templates
Fixes: bb000824 ("mailman: Second batch of mailman3 migrated lists")
2022-10-22 03:01:35 +02:00
Leonidas Spyropoulos 36e20ebbce Merge branch 'goaurrpc_metrics' into 'master'
aurweb: enable goaurrpc metrics

See merge request archlinux/infrastructure!640
2022-10-21 16:44:12 +00:00
Leonidas Spyropoulos 87b2eddfae
aurweb: enable goaurrpc metrics and dashboard
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
Co-authored-by: Kristian Klausen <kristian@klausen.dk>
Co-authored-by: moson-mo <mo-son@mailbox.org>
2022-10-21 15:57:44 +01:00
Jan Alexander Steffens (heftig) 7d5a2a77fa
matrix: Update synapse to 1.69.0 2022-10-17 21:19:07 +02:00
Jan Alexander Steffens (heftig) baa57cafa7
matrix: Update pantalaimon to 0.10.5 2022-10-17 21:19:07 +02:00
Evangelos Foutras baf22d180e
dbscripts: use service name to open firewall port
3690/tcp -> svn
2022-10-16 20:52:50 +03:00
Evangelos Foutras e803a785e5
keycloak: remove redundant firewall port opening
The nginx role already enables the http and https services.
2022-10-16 20:52:50 +03:00
Evangelos Foutras ae3f2fc822
quassel: use service names to open firewall ports
4242/tcp -> quassel
 113/tcp -> ident
2022-10-16 20:52:50 +03:00
Evangelos Foutras 6706410fcd
wireguard: use service name to open firewall port
51820/udp -> wireguard
2022-10-16 20:52:45 +03:00
Kristian Klausen f5f5b4c733
WireGuard the remaining Prometheus exporters
WireGuard was setup to provide a internal network with confidentiality,
authenticity and integrity[1]. This migrate the remaining Prometheus
exporters to use the internal WireGuard network.

[1] 664deb67 ("WireGuard all hosts")

Fix #384
2022-10-16 16:56:41 +02:00
Leonidas Spyropoulos 168a0cfbfd Merge branch 'goaurrpc' into 'master'
aurweb: setup goaurrpc

See merge request archlinux/infrastructure!639
2022-10-15 15:40:49 +00:00
Leonidas Spyropoulos e494684698
aurweb: setup goaurrpc
Expose aurweb RPC using goaurrpc to reduce the load on the server.
Additionally we can now geo-serve this ro reduce load and bandwidth.

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
2022-10-15 18:32:43 +03:00
Leonidas Spyropoulos c672b664b3 Merge branch 'aurweb-git-gc' into 'master'
aurweb: setup git gc for all aurweb git repos

See merge request archlinux/infrastructure!638
2022-10-15 10:58:04 +00:00
Leonidas Spyropoulos f95ca711f6
aurweb: setup git gc for all aurweb git repos
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
2022-10-15 13:49:51 +03:00
Levente Polyak bc01ece8f3
security-tracker: bump version to 0.14 2022-10-14 20:47:28 +02:00
Evangelos Foutras 9f3149d00e
Enable the sshd role in playbooks/all-hosts-basic
Move the 'sshd_enable_includes' override to aur's host vars instead of
specifying it as part of playbooks/aur.archlinux.org. Otherwise, would
break the AUR's SSH auth if ssh.d/aurweb_config does not get included.
2022-10-14 20:14:16 +03:00
Evangelos Foutras 6485d482d5
sshd: rebase sshd_config to openssh 9.1p1-1 2022-10-14 17:16:07 +03:00
Leonidas Spyropoulos a7c2315846 Merge branch 'aur_6.1.6' into 'master'
aurweb: release 6.1.7 - git archives

See merge request archlinux/infrastructure!636
2022-10-12 13:09:56 +00:00
Kevin Morris 50e8432806
aurweb: release 6.1.7 - git archives
This commit brings in four new routes to nginx:
- /archives/metadata.git
- /archives/users.git
- /archives/pkgbases.git
- /archives/pkgnames.git

See https://gitlab.archlinux.org/archlinux/aurweb/-/blob/master/doc/git-archive.md

For now, we will be updating the repositories once every 10 minutes.

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
Co-signed by:  Kevin Morris <kevr@0cost.org>
2022-10-12 15:57:15 +03:00
Evangelos Foutras 987c4fc663
Merge branch 'ansible-6.8.0' into 'master'
lint: add fqcn and no-free-form to skip_list for ansible-lint 6.8.0

See merge request archlinux/infrastructure!635
2022-10-07 11:41:09 +03:00
Evangelos Foutras 610b08d940
lint: allow free-form module calling syntax
This format is too pervasive in our infra code, no way we're fixing all
824 instances. (At least not without a notably increased snack budget.)
2022-10-07 11:32:09 +03:00
Evangelos Foutras 99cba79182
lint: allow all unqualified collection names
We were already ignoring fqcn-builtins which is now an alias for
fqcn[action-core] in ansible-lint 6.8.0. The latter started complaining
about fqcn[action] as well, so just opt out of all fqcn checks.
2022-10-07 11:31:53 +03:00
Evangelos Foutras d7c2f6271c
lint: drop unneeded quotes from around rule names 2022-10-07 11:13:16 +03:00
Evangelos Foutras 17e8ab15fe
fail2ban: remove redundant fail2ban_jails overrides
group_vars/all was enabling just the sshd jail so move this into the
fail2ban role defaults. patchwork, security and wiki were redefining
fail2ban_jails without deviating from the group_vars/all default and
can therefore be dropped.
2022-10-04 06:18:57 +03:00