laforge has submitted this change. (
https://gerrit.osmocom.org/c/osmo-ci/+/27151 )
Change subject: ansible/setup-jenkins-slave: accept rel-change
......................................................................
ansible/setup-jenkins-slave: accept rel-change
Fix for:
W:This must be accepted explicitly before updates for this repository can be applied.
See apt-secure(8) manpage for details.
E:Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed
its 'Suite' value from 'stable' to 'oldstable'
Related:
https://github.com/ansible/ansible/issues/48352
Change-Id: I90ee8dd49001d6810f2118e9feff3375e87052ea
---
A ansible/roles/apt-allow-relinfo-change/README.md
A ansible/roles/apt-allow-relinfo-change/tasks/main.yml
M ansible/setup-jenkins-slave.yml
3 files changed, 21 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
daniel: Looks good to me, but someone else must approve
pespin: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
diff --git a/ansible/roles/apt-allow-relinfo-change/README.md
b/ansible/roles/apt-allow-relinfo-change/README.md
new file mode 100644
index 0000000..cd00a46
--- /dev/null
+++ b/ansible/roles/apt-allow-relinfo-change/README.md
@@ -0,0 +1,12 @@
+---
+When the suite of one debian release changes from stable to oldstable, apt
+stops working with the following error:
+
+```
+W:This must be accepted explicitly before updates for this repository can be applied. See
apt-secure(8) manpage for details.
+E:Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed
its 'Suite' value from 'stable' to 'oldstable'
+```
+
+This role configures apt to allow the release info change.
+
+Related:
https://github.com/ansible/ansible/issues/48352
diff --git a/ansible/roles/apt-allow-relinfo-change/tasks/main.yml
b/ansible/roles/apt-allow-relinfo-change/tasks/main.yml
new file mode 100644
index 0000000..098f5ee
--- /dev/null
+++ b/ansible/roles/apt-allow-relinfo-change/tasks/main.yml
@@ -0,0 +1,7 @@
+---
+- name: "configure to allow release info change"
+ lineinfile:
+ path: /etc/apt/apt.conf.d/99relinfochange
+ state: present
+ create: yes
+ line: Acquire::AllowReleaseInfoChange::Suite "true";
diff --git a/ansible/setup-jenkins-slave.yml b/ansible/setup-jenkins-slave.yml
index 07414aa..05e3bde 100644
--- a/ansible/setup-jenkins-slave.yml
+++ b/ansible/setup-jenkins-slave.yml
@@ -15,6 +15,8 @@
cache_valid_time: 3600
update_cache: yes
roles:
+ - name: apt-allow-relinfo-change
+
- name: docker
jenkins_user: osmocom-build
tags:
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ci/+/27151
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I90ee8dd49001d6810f2118e9feff3375e87052ea
Gerrit-Change-Number: 27151
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged