From 86f93615ebc90bad999dee27cd09a1d5ba304e60 Mon Sep 17 00:00:00 2001 From: Jihan El Karz Date: Thu, 23 Apr 2026 15:44:16 +0200 Subject: [PATCH] fix(roles/influxdb): exclude recommended package influxdata-archive-keyring is a recommended package for influxdb. it has been installed on updates and will result in having a repo (influxdata) on the server that provides the influxdb package too what will eventually overwrite the influxdb repo so influxdb will not be provided by our mirror anymore --- .../repo_influxdb/templates/etc/yum.repos.d/influxdb.repo.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/repo_influxdb/templates/etc/yum.repos.d/influxdb.repo.j2 b/roles/repo_influxdb/templates/etc/yum.repos.d/influxdb.repo.j2 index 8a358883..3ab5a399 100644 --- a/roles/repo_influxdb/templates/etc/yum.repos.d/influxdb.repo.j2 +++ b/roles/repo_influxdb/templates/etc/yum.repos.d/influxdb.repo.j2 @@ -1,10 +1,13 @@ # {{ ansible_managed }} -# 2023122901 +# 2026042901 [influxdb] name = InfluxDB Repository - RHEL $releasever {% if repo_influxdb__mirror_url is defined and repo_influxdb__mirror_url | length %} baseurl={{ repo_influxdb__mirror_url }}/influxdb/rhel/$releasever/x86_64/stable +# influxdata-archive-keyring is a "recommended" / optional package for influxdb and will installed when influxdb ist installed. +# installing influxdata-archive-keyring will result in having an additional repo called "influxdata" on the server. that repo provides the influxdb package too which will collide with the influxdb repo and therefore overwrite the repo_influxdb__mirror_url. +exclude = influxdata-archive-keyring {% else %} baseurl = https://repos.influxdata.com/rhel/$releasever/$basearch/stable {% endif %}