7e5b723a3a
🚨 roles: nfs_host: Rename
...
Roles names are expected to be lower case with underscores only,
see ansible-lint warning:
% ansible-lint -t role-name
WARNING Listing 1 violation(s) that are fatal
role-name: Role name nfs-host does not match ``^[a-z][a-z0-9_]*$`` pattern.
roles/nfs-host:1
Read documentation for instructions on how to ignore specific rule violations.
Rule Violation Summary
count tag profile rule associated tags
1 role-name basic deprecations, metadata
Failed after min profile: 1 failure(s), 0 warning(s) on 135 files.
Fixes: 2138870520
("nfs server wird nicht im k3s laufen, labeling entfernt")
2025-02-28 08:49:18 +01:00
db7a419ced
Merge pull request 'Update kiosk Grafana URL to re-enable kiosk mode' ( #491 ) from grafana-kiosk-url into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#491
2025-02-27 22:00:04 +01:00
dc8e51322e
Downgrade grafana-screenshot Docker image to v0.1.1
2025-02-27 21:59:36 +01:00
d065738f92
Update kiosk Grafana URL to enable kiosk mode
...
The kiosk setup mechanism seems to have changed in the past and now this parameter is needed in the Grafana URL.
2025-02-27 21:59:36 +01:00
17855e8849
Merge pull request ' 📝 mailmap: Merge some new identies' ( #487 ) from alex/netz39-infra-ansible:mailmap into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#487
2025-02-27 21:59:12 +01:00
53fe6b4427
📝 mailmap: Merge some new identies
...
Prefer private mail address over company mail address.
Prefer netz39 mail address over private mail address.
Output of `git shortlog -es` diffed:
```diff
--- before 2025-02-26 12:29:28.323774025 +0100
+++ after 2025-02-26 12:30:29.355141593 +0100
@@ -1,11 +1,8 @@
99 Alexander Dahl <alex@netz39.de>
284 David Kilias <dkdent@netz39.de>
- 2 Jens Winter-Hübenthal <jens.winter-huebenthal@bridgefield.de>
- 1 JensWH <jens.winter@gmail.com>
- 1 MG-95 <mg-95@gitea.n39.eu>
+ 3 Jens Winter-Hübenthal <jens.winter@gmail.com>
4 Maximilian Deubel <maximilian.deubel@gmail.com>
- 5 Maximilian Grau <mg-95@t-online.de>
+ 6 Maximilian Grau <mg-95@t-online.de>
259 Renovate Bot <accounts+renovatebot@netz39.de>
670 Stefan Haun <tux@netz39.de>
- 1 timo <n39@therr.de>
- 1 timo <timo@netz39.de>
+ 2 timo <timo@netz39.de>
```
2025-02-27 21:59:00 +01:00
7df49482c4
Merge pull request 'dyndns: Fix not executed cron jobs' ( #492 ) from alex/netz39-infra-ansible:cron into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#492
Reviewed-by: Stefan Haun <tux@netz39.de>
2025-02-27 18:56:45 +01:00
338dfc7410
🔊 Redirect curl output to debug log
...
curl only logs its own errors to stderr with the given options (--silent
--show-error). Requests answered by the remote webserver, regardless of
HTTP status code, go to stdout. So in case of an unsuccesful update
with some error condition we could not see that before. Redirect those
to debug log, because it's still quite noisy otherwise.
This adds 288 log messages per day and service to the debug log,
accounting to max. 30k per day and service, and thus should not hurt.
desec log output is only the word "good" in case of success.
dd24 full output would be this, and is thus reduced to the relevant
lines merged in one line:
[RESPONSE]
code = 200
description = Command completed successfully
runtime = 0.067
queuetime = 0
EOF
Sample journald entry:
Feb 27 12:48:15 pottwal dd24[519651]: code = 200,description = Command completed successfully
2025-02-27 14:06:19 +01:00
58e27dec10
🐛 Use bash as shell in cron jobs to make process substitution work
...
The cron jobs were executed, but dash (/bin/sh) complained, and so the
actual command was never run. This is why our dyndns update did not
work through cron, but when executed manually in bash by an admin.
Example for such a fail when done manually in sh:
# echo test3 > >(/usr/bin/logger -p user.debug -t dd24)
/bin/sh: 7: Syntax error: redirection unexpected
Process substitution with `>(command)` is a feature supported by bash
and other shells, but not by POSIX shell which was supposed to used here
(set by `SHELL=…`). Instead of building complicated redirect magic for
sh just switch to bash, which should be available on the hosts affected.
Link: https://www.shellcheck.net/wiki/SC3001
Fixes: 03dbd132eb
("🔊 Send DD24 cron errors to syslog")
Fixes: 38fbff30b5
("feat: add role to manage dyndns entry on desec.io")
2025-02-27 14:03:18 +01:00
7074d12bae
Merge pull request 'Update mrtux/grafana-screenshot Docker tag to v0.1.2' ( #490 ) from renovate/mrtux-grafana-screenshot-0.x into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#490
2025-02-27 12:27:46 +01:00
e4340c1aba
Update mrtux/grafana-screenshot Docker tag to v0.1.2
2025-02-27 12:27:29 +01:00
8ee48afa7c
Merge pull request 'Update dependency netz39.host_docker to v0.4.0' ( #489 ) from renovate/netz39.host_docker-0.x into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#489
2025-02-27 12:26:49 +01:00
7c3220ad2e
Update dependency netz39.host_docker to v0.4.0
2025-02-27 09:18:09 +00:00
7b5317cd12
Merge pull request 'Update bitnami/rabbitmq Docker tag to v4.0.7' ( #488 ) from renovate/bitnami-rabbitmq-4.x into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#488
2025-02-27 09:45:25 +01:00
3239237bbc
Update bitnami/rabbitmq Docker tag to v4.0.7
2025-02-27 06:18:06 +00:00
c116035395
Merge pull request 'Update renovate/renovate Docker tag to v39.180.2' ( #479 ) from renovate/renovate-renovate-39.x into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#479
2025-02-26 10:05:25 +01:00
5df5a155c8
Update renovate/renovate Docker tag to v39.180.2
2025-02-25 09:22:15 +00:00
5de9b8be40
Merge pull request ' 🚚 Migrate docker_host role to external project' ( #311 ) from alex/netz39-infra-ansible:host-docker into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#311
Reviewed-by: dkdent <dkdent@netz39.de>
Reviewed-by: Stefan Haun <tux@netz39.de>
2025-02-24 17:31:23 +01:00
cc41217ad8
🔧 Enable automatic docker image prune again
...
The feature was part of the old role but unconditionally. When porting
to external role we made it optional with variable
`docker_cron_image_prune` but default to false. Restore the previous
behaviour in this playbook.
2025-02-23 19:18:21 +01:00
e946fe37b4
🔧 renovate: Remove docker_compose match
...
The role matched by this was removed, and is handled through
requirements.yml now. That should already be covered by renovate
without additional configuration.
2025-02-23 19:18:21 +01:00
b22c86758e
🚚 Migrate docker_host role to external project
...
We used a similar local role here, in the Freifunk Magdeburg project,
and in personal playbooks. That was moved to an external project,
unified, and reworked, so the external role can act as replacement for
the distributed, redundant copies.
Link: https://github.com/netz39/ansible-role-host-docker
2025-02-23 19:18:21 +01:00
2fe2420a10
Merge pull request 'Update shlinkio/shlink Docker tag to v4.4.4' ( #484 ) from renovate/shlinkio-shlink-4.x into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#484
2025-02-21 17:41:12 +01:00
028e4ffadd
chore(deps): update shlinkio/shlink docker tag to v4.4.4
2025-02-21 17:41:01 +01:00
12c0b271a9
Merge pull request 'Update grafana/grafana Docker tag to v11.5.2' ( #485 ) from renovate/grafana-grafana-11.x into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#485
2025-02-21 17:40:38 +01:00
0cc1d052ad
chore(deps): update grafana/grafana docker tag to v11.5.2
2025-02-21 17:40:19 +01:00
41875c04b2
Merge pull request 'Update quay.io/hedgedoc/hedgedoc Docker tag to v1.10.2' ( #483 ) from renovate/quay.io-hedgedoc-hedgedoc-1.x into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#483
2025-02-21 17:40:02 +01:00
635b87a300
chore(deps): update quay.io/hedgedoc/hedgedoc docker tag to v1.10.2
2025-02-21 17:39:44 +01:00
38ecaf4e92
Merge pull request 'Update joseluisq/static-web-server Docker tag to v2.36' ( #481 ) from renovate/joseluisq-static-web-server-2.x into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#481
Reviewed-by: Alexander Dahl <alex@netz39.de>
2025-02-21 17:38:34 +01:00
7a08b136ab
Update joseluisq/static-web-server Docker tag to v2.36
2025-02-21 14:18:59 +00:00
540f489a04
Merge pull request 'Update bitnami/rabbitmq Docker tag to v4.0.6' ( #482 ) from renovate/bitnami-rabbitmq-4.x into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#482
2025-02-21 14:41:59 +01:00
c1acfd6671
chore(deps): update bitnami/rabbitmq docker tag to v4.0.6
2025-02-21 14:41:36 +01:00
517bf90b7b
Merge pull request ' 🚨 reduce ansible-lint warning count (trivial yaml and jinja warnings)' ( #486 ) from lint into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#486
Reviewed-by: Stefan Haun <tux@netz39.de>
2025-02-20 10:10:01 +01:00
71f68604d7
🔧 yamllint: Disable comment-indentation warnings
...
Looked at the first three or five warnings, and those all look sane.
The linter seems to be overly picky here.
ansible-lint is happy about yaml now:
% ansible-lint -t yaml
Passed with production profile: 0 failure(s), 0 warning(s) on 142 files.
Link: https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.comments_indentation
2025-02-20 08:23:17 +01:00
41ab4622b3
🚨 Fix trivial jinja spacing warnings
...
Fixes the following ansible-lint warnings:
jinja[spacing]: Jinja2 spacing could be improved: group:Admins:{{ users | map(attribute = 'logname') | join("@pam,") }}@pam:: -> group:Admins:{{ users | map(attribute='logname') | join("@pam,") }}@pam:: (warning)
host-beaker.yml:23 Jinja2 template rewrite recommendation: `group:Admins:{{ users | map(attribute='logname') | join("@pam,") }}@pam::`.
jinja[spacing]: Jinja2 spacing could be improved: {{ docker_ip_ranges }} -> {{ docker_ip_ranges }} (warning)
host-krypton.yml:95 Jinja2 template rewrite recommendation: `{{ docker_ip_ranges }}`.
jinja[spacing]: Jinja2 spacing could be improved: {{ item }} -> {{ item }} (warning)
host-krypton.yml:98 Jinja2 template rewrite recommendation: `{{ item }}`.
jinja[spacing]: Jinja2 spacing could be improved: {{ docker_ip_ranges }} -> {{ docker_ip_ranges }} (warning)
host-krypton.yml:105 Jinja2 template rewrite recommendation: `{{ docker_ip_ranges }}`.
jinja[spacing]: Jinja2 spacing could be improved: {{ item }} -> {{ item }} (warning)
host-krypton.yml:108 Jinja2 template rewrite recommendation: `{{ item }}`.
jinja[spacing]: Jinja2 spacing could be improved: {{ cleanuri_amqp_user }} -> {{ cleanuri_amqp_user }} (warning)
roles/cleanuri/tasks/main.yml:36 Jinja2 template rewrite recommendation: `{{ cleanuri_amqp_user }}`.
jinja[spacing]: Jinja2 spacing could be improved: {{ cleanuri_amqp_user }} -> {{ cleanuri_amqp_user }} (warning)
roles/cleanuri/tasks/main.yml:53 Jinja2 template rewrite recommendation: `{{ cleanuri_amqp_user }}`.
jinja[spacing]: Jinja2 spacing could be improved: {{ cleanuri_amqp_user }} -> {{ cleanuri_amqp_user }} (warning)
roles/cleanuri/tasks/main.yml:70 Jinja2 template rewrite recommendation: `{{ cleanuri_amqp_user }}`.
2025-02-20 06:43:59 +01:00
a0021c4979
🚨 Add more spaces before comment
...
Fixes the following ansible-lint warnings:
yaml[comments]: Too few spaces before comment
host-unicorn.yml:31
yaml[comments]: Too few spaces before comment
host-wittgenstein.yml:143
2025-02-19 22:01:13 +01:00
cbbcccdcae
🚨 Remove extra blank line
...
Fixes the following ansible-lint warning:
yaml[empty-lines]: Too many blank lines (1 > 0)
host_vars/radon.n39.eu/vars.yml:14
2025-02-19 21:58:48 +01:00
42710413d7
🚨 Add missing document start
...
Fixes the following ansible-lint warning:
yaml[document-start]: Missing document start "---"
host_vars/wittgenstein.n39.eu/vars.yml:1
2025-02-19 21:57:30 +01:00
a9e5a509a5
🚨 Fix wrong indentation
...
Fixes the following ansible-lint warnings:
yaml[indentation]: Wrong indentation: expected 6 but found 4
roles/nfs-host/tasks/main.yml:6
yaml[indentation]: Wrong indentation: expected 6 but found 4
roles/nginx_https_ingress/tasks/main.yml:11
yaml[indentation]: Wrong indentation: expected 6 but found 4
roles/nginx_https_ingress/tasks/main.yml:48
2025-02-19 21:55:53 +01:00
fa7e94403f
🚨 Remove extra spaces
...
Fixes the following ansible-lint warning:
yaml[colons]: Too many spaces after colon
host-wittgenstein.yml:149
2025-02-19 21:52:39 +01:00
3730c67be0
🚨 Add newline at eof
...
Fixes the following ansible-lint warning:
yaml[new-line-at-end-of-file]: No new line character at the end of file
group-k3s.yml:9
2025-02-19 21:49:57 +01:00
49dd796a05
🚨 Modernize ansible-lint silence markup
...
Fixes the following warning when running `ansible-lint`:
WARNING Replaced outdated tag '503' with 'no-handler', replace it to avoid future regressions
Link: https://ansible.readthedocs.io/projects/lint/rules/no-handler/
2025-02-19 21:40:23 +01:00
fd01c68746
Merge pull request 'chore(deps): update quay.io/hedgedoc/hedgedoc docker tag to v1.10.1' ( #476 ) from renovate/quay.io-hedgedoc-hedgedoc-1.x into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#476
2025-02-10 19:18:46 +01:00
ec6a8b60ae
chore(deps): update quay.io/hedgedoc/hedgedoc docker tag to v1.10.1
2025-02-10 19:17:18 +01:00
dc729d3826
Merge pull request 'chore(deps): update jacobalberty/unifi docker tag to v9.0.114' ( #478 ) from renovate/jacobalberty-unifi-9.x into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#478
2025-02-10 19:16:33 +01:00
e518a25dd4
chore(deps): update jacobalberty/unifi docker tag to v9.0.114
2025-02-10 19:16:15 +01:00
9da60fa37a
Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v10.0.1' ( #480 ) from renovate/codeberg.org-forgejo-forgejo-10.x into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#480
2025-02-10 19:15:35 +01:00
7094eae031
chore(deps): update codeberg.org/forgejo/forgejo docker tag to v10.0.1
2025-02-08 14:18:55 +00:00
d98a506c92
Merge pull request 'chore(deps): update grafana/grafana docker tag to v11.5.1' ( #477 ) from renovate/grafana-grafana-11.x into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#477
2025-02-05 18:06:18 +01:00
80c32ea4c8
chore(deps): update grafana/grafana docker tag to v11.5.1
2025-02-05 18:06:01 +01:00
57d44ada7d
Merge pull request 'chore(deps): update renovate/renovate docker tag to v39.161.0' ( #467 ) from renovate/renovate-renovate-39.x into master
...
Reviewed-on: Netz39_Admin/netz39-infra-ansible#467
2025-02-05 18:03:21 +01:00