diff --git a/CHANGELOG.md b/CHANGELOG.md index 6506e7a82..19cc2b4b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,7 +48,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * **role:repo_monitoring_plugins, playbook:icinga2_agent, playbook:monitoring_plugins, playbook:setup_basic, playbook:setup_icinga2_master**: The Monitoring Plugins packages come from the Linuxfabrik package repository (role `repo_linuxfabrik`) instead of repo.linuxfabrik.ch/monitoring-plugins/, whose repository file the playbooks remove. Rename `repo_monitoring_plugins__basic_auth_login` and `repo_monitoring_plugins__mirror_url` to `repo_linuxfabrik__basic_auth_login` and `repo_linuxfabrik__mirror_url`, and replace `repo_monitoring_plugins__testing` with `repo_linuxfabrik__testing_repo_enabled`, which adds the testing channel instead of replacing the release channel. The run aborts as long as one of the former variables is set. A mirror has to serve the Linuxfabrik repository below `/linuxfabrik/`. * **role:opensearch**: OpenSearch 1.x is no longer supported, and the run aborts on a host that runs it. Upgrade such hosts to OpenSearch 2.19 first, following the [OpenSearch upgrade documentation](https://docs.opensearch.org/latest/install-and-configure/upgrade-opensearch/index/). OpenSearch 2.x cannot be installed on RHEL 10 and Debian 13, whose crypto policy rejects the SHA-1 signature in the OpenSearch 2.x signing key; use OpenSearch 3.x there. * **role:mongodb**: MongoDB 4.2, 4.4, 5.0 and 6.0 are no longer supported, since they are end of life; the role aborts on a host that runs one of them. Upgrade such hosts to MongoDB 7.0 or 8.0 first, one major release at a time, as described in the MongoDB upgrade documentation, and set `repo_mongodb__version` accordingly. -* **role:chrony**: Without `chrony__ntp_pools` or `chrony__ntp_servers` in the inventory, chronyd synchronises with `ntp.linuxfabrik.ch` instead of `ntp.metas.ch`. Allow outgoing NTP to `ntp.linuxfabrik.ch` (195.15.242.254) where a firewall only lets the METAS servers through, or set `chrony__ntp_servers: ['ntp.metas.ch']`. * **role:exoscale_vm**: The role scales an existing instance and grows its disk when `exoscale_vm__service_offering` or `exoscale_vm__disk_size` differ from it, and aborts on a running instance instead of stopping it, unless `exoscale_vm__force: true` is set. Before running the role against existing instances, set both variables to their current values, or set `exoscale_vm__force: true` in a maintenance window. `exoscale_vm__state` only accepts `absent`, `present`, `restarted`, `started` and `stopped`. * **role:php**: PHP no longer tracks file uploads in the session (`session.upload_progress.enabled = Off`), a confirmed way into the remote code execution CVE-2026-109619 ([GHSA-6wmf-4rv5-p3rp](https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp)) that the advisory recommends closing even on patched PHP, and the PHP-FPM pools enforce this against `.user.ini` files. Upload progress bars that depend on it stop working. Set `php__ini_session_upload_progress_enabled__host_var: 'On'` to restore the feature. * **role:postgresql_server**: Databases are created with the `C.UTF-8` locale instead of `en_US.UTF-8`, which failed on hosts with only the minimal glibc language pack. `C.UTF-8` sorts text by code point instead of by language rules. Existing databases are unaffected. To create new databases as before, set `lc_collate: 'en_US.UTF-8'` and `lc_ctype: 'en_US.UTF-8'` on their entries in `postgresql_server__databases__*_var`. @@ -65,7 +64,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * **role:system_update**: On Debian and Ubuntu, the system update no longer updates the database of an AIDE installed by hand, since it also accepted changes that were pending before the update. On such hosts the daily AIDE mail now lists the files each update changed. Deploy the aide role to have its database updated after updates again. * **role:grav**: The `grav:cron` tag is gone. Run the role with `--tags grav` to deploy the timers and their services, or with `--tags grav:state` to enable or disable the timers. * **role:firewall**: With `firewall__firewall: 'fwbuilder'`, the default, the run aborts on a host that has neither `/etc/fwb.sh` nor `firewall__fwbuilder_repo_url`, before the role stops any firewall. Until now `fwb.service` failed there and the host ran without a firewall. Deploy `/etc/fwb.sh`, set `firewall__fwbuilder_repo_url`, or set `firewall__firewall` to the firewall the host uses. -* **role:chrony**: The role takes effect on Debian and Ubuntu, where chronyd reads `/etc/chrony/chrony.conf` and ignored the `/etc/chrony.conf` the role deployed, so these hosts synchronised with the distribution's default pools until now. As on the Red Hat family, chronyd uses only the sources from `chrony__ntp_pools` and `chrony__ntp_servers`, without the distribution's pools, DHCP sources or `/etc/chrony/sources.d`. Without either of them, chronyd synchronises with `ntp.linuxfabrik.ch`. +* **role:chrony**: The role takes effect on Debian and Ubuntu, where chronyd reads `/etc/chrony/chrony.conf` and ignored the `/etc/chrony.conf` the role deployed, so these hosts synchronised with the distribution's default pools until now. As on the Red Hat family, chronyd uses only the sources from `chrony__ntp_pools` and `chrony__ntp_servers`, without the distribution's pools, DHCP sources or `/etc/chrony/sources.d`. Without either of them, chronyd synchronises with the Linuxfabrik vendor zone of the NTP Pool (`linuxfabrik.pool.ntp.org`). * **role:monitoring_plugins**: The source install downloads the Python dependencies on the Ansible controller, which therefore needs pip for the Python that runs Ansible and access to PyPI; the targets no longer need Internet access. * **role:kernel_modules**: The `tun` kernel module is blocked by default (CVE-2026-81000, [RHSB-2026-011](https://access.redhat.com/security/vulnerabilities/RHSB-2026-011)). This stops OpenVPN, WireGuard in userspace, rootless Podman and Docker networking and libvirt VM networking after the next reboot, which the role requests on hosts where `tun` is loaded. Before running the role, add `kernel_modules__modules__host_var: [{name: 'tun', enabled: true}]` to the inventory of every such host. Rootful Docker and Podman with bridge networking are not affected. * **role:grafana**: `grafana__users_case_insensitive_login` is gone; remove it from your inventory. Grafana has ignored the setting since v11.0.0 and always matches logins case-insensitively. @@ -402,7 +401,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * **role:uptimerobot**: Alert contacts past the first 50 are found, so `alert_contacts` of a monitor can name them and `uptimerobot_alert_contact_info` lists all of them. * **role:uptimerobot**: Port monitors with `sub_type` `https`, `ftp`, `smtp`, `pop3` or `imap` are created instead of rejected by UptimeRobot, a changed `sub_type` takes effect on an existing monitor, and a port monitor with a `sub_type` no longer reports a change on every run. * **role:php**: `--tags php:ini` also deploys the PHP-FPM pools, so a changed `php__ini_memory_limit__*_var`, `php__ini_max_execution_time__*_var` and the like take effect in PHP-FPM, not only on the command line. -* **role:chrony**: Without `chrony__ntp_pools` or `chrony__ntp_servers` in the inventory, chronyd synchronises with `ntp.metas.ch`, the time server of the Swiss Federal Institute of Metrology, instead of running without a time source. If both are set to `[]`, the role aborts. +* **role:chrony**: Without `chrony__ntp_pools` or `chrony__ntp_servers` in the inventory, chronyd synchronises with the Linuxfabrik vendor zone of the NTP Pool (`linuxfabrik.pool.ntp.org`) instead of running without a time source. If both are set to `[]`, the role aborts. * **role:icingaweb2**: PHP gets a `memory_limit` of 256M instead of 128M, so the CSV and JSON exports, such as History > Event Overview, handle about twice as many rows before they break off with "Allowed memory size exhausted". Override it with `php__ini_memory_limit__group_var` / `php__ini_memory_limit__host_var`. * **role:nextcloud**: The README documents the app states correctly. `state: 'present'` installs an app but leaves it disabled; use `state: 'enabled'` to switch on an app, including the apps the role disables by default, such as `activity`, `notifications` and `systemtags`. * **role:icingaweb2_module_grafana**: With JWT authentication, the Grafana graphs in IcingaWeb2 no longer switch to the Grafana login after 30 seconds. The token stays valid for 3 days; adjust with `icingaweb2_module_grafana__auth_jwt__expires`. diff --git a/extensions/molecule/chrony/verify.yml b/extensions/molecule/chrony/verify.yml index 1a8167f39..fb93191e9 100644 --- a/extensions/molecule/chrony/verify.yml +++ b/extensions/molecule/chrony/verify.yml @@ -14,7 +14,8 @@ # Only that source: the role configures no distribution pools and no DHCP sources, and a # distribution default next to it (Ubuntu 26.04 ships its NTS pools with `prefer` in # /etc/chrony/sources.d) would take over and chronyd would never use it. The source from the - # inventory also replaces the role's default ntp.linuxfabrik.ch instead of being added to it. + # inventory also replaces the role's default pool linuxfabrik.pool.ntp.org instead of being + # added to it. - name: 'Assert that chronyd uses only the source configured in the inventory' ansible.builtin.assert: that: '__molecule__chronyc_sources_result["stdout_lines"] | map("split", ",") | map(attribute=2) | list == ["192.0.2.1"]' diff --git a/roles/chrony/README.md b/roles/chrony/README.md index 0dca00728..c95875678 100644 --- a/roles/chrony/README.md +++ b/roles/chrony/README.md @@ -12,7 +12,7 @@ This role installs and configures [chrony](https://chrony.tuxfamily.org/), a NTP ## How the Role Behaves * The configuration is fully templated: `/etc/chrony.conf` on the Red Hat family, `/etc/chrony/chrony.conf` on Debian and Ubuntu, each close to the file the distribution ships. Out-of-band edits are overwritten on the next run (a timestamped backup is kept). -* chronyd uses only the sources from `chrony__ntp_pools` and `chrony__ntp_servers`, by default the time server `ntp.linuxfabrik.ch` operated by Linuxfabrik. If both are set to `[]`, the role aborts, since the host would have no time source. The distribution's default pools, time sources from DHCP and, on Debian and Ubuntu, `/etc/chrony/sources.d` are not used. Ubuntu 26.04 ships its default pools in `/etc/chrony/sources.d`, where chronyd would prefer them over every source from the inventory. +* chronyd uses only the sources from `chrony__ntp_pools` and `chrony__ntp_servers`, by default the Linuxfabrik vendor zone `linuxfabrik.pool.ntp.org` of the NTP Pool. If both are set to `[]`, the role aborts, since the host would have no time source. The distribution's default pools, time sources from DHCP and, on Debian and Ubuntu, `/etc/chrony/sources.d` are not used. Ubuntu 26.04 ships its default pools in `/etc/chrony/sources.d`, where chronyd would prefer them over every source from the inventory. * On Debian and Ubuntu, drop-ins in `/etc/chrony/conf.d` are read at the beginning of the deployed `chrony.conf`, so the role's settings win over a drop-in that sets the same directive. Debian 13 and Ubuntu 26.04 read them at the end of their own `chrony.conf`, where a drop-in would win. Directives that add something instead of replacing it still take effect from a drop-in: a `pool`, `server` or `sourcedir` there adds time sources next to the ones from the inventory, and with the `prefer` option chronyd uses only those. Likewise, `allow` and `deny` add access rules. * The deployed `chrony.conf` loads no key file, so NTP sources are not authenticated with symmetric keys. RHEL 10's own `chrony.conf` does the same, while RHEL 8 and 9, Debian and Ubuntu load a key file that holds no keys (`/etc/chrony.keys`, `/etc/chrony/chrony.keys`). @@ -60,14 +60,14 @@ This role installs and configures [chrony](https://chrony.tuxfamily.org/), a NTP * A list of NTP server pools. Same as `chrony__ntp_servers`, except that it is used to specify a pool of NTP servers rather than a single NTP server. A pool name has to resolve to several addresses, of which chronyd uses up to four. Put a hostname with a single address into `chrony__ntp_servers`, since chronyd keeps resolving a pool name until it gets four sources from it. * Type: List. -* Default: `[]` +* Default: `['linuxfabrik.pool.ntp.org']` if `chrony__ntp_servers` is empty, else `[]` +* Deviates from the distributions, which ship their own vendor zones of the NTP Pool: `linuxfabrik.pool.ntp.org` is the vendor zone of Linuxfabrik. Like any pool, its addresses change, so a firewall that only lets NTP through to fixed addresses blocks it; set `chrony__ntp_servers` to fixed servers there. `chrony__ntp_servers` * A list of NTP servers which should be used as a time source. The `iburst` option is always used, meaning chronyd will start with a burst of 4-8 requests in order to make the first update of the clock sooner. * Type: List. -* Default: `['ntp.linuxfabrik.ch']` if `chrony__ntp_pools` is empty, else `[]` -* Deviates from the distributions, which ship public pools: `ntp.linuxfabrik.ch` is a stratum 2 server operated by Linuxfabrik and part of the NTP Pool, synchronised to stratum 1 servers in Switzerland, Germany and Austria. +* Default: `[]` `chrony__ratelimit` diff --git a/roles/chrony/defaults/main.yml b/roles/chrony/defaults/main.yml index af6421d14..f353eb550 100644 --- a/roles/chrony/defaults/main.yml +++ b/roles/chrony/defaults/main.yml @@ -1,6 +1,6 @@ chrony__allow: [] -chrony__ntp_pools: [] -chrony__ntp_servers: '{{ (chrony__ntp_pools | length > 0) | ternary([], ["ntp.linuxfabrik.ch"]) }}' +chrony__ntp_pools: '{{ (chrony__ntp_servers | length > 0) | ternary([], ["linuxfabrik.pool.ntp.org"]) }}' +chrony__ntp_servers: [] chrony__service_enabled: true chrony__service_state: '{{ chrony__service_enabled | bool | ternary("started", "stopped") }}'