Skip to content

Commit 0b8bc7f

Browse files
committed
Debian 10 patch
1 parent 7833ce7 commit 0b8bc7f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,18 @@ jobs:
105105
FILE='spec/fixtures/litmus_inventory.yaml'
106106
sed -e 's/password: .*/password: "[redacted]"/' < $FILE || true
107107
108+
- name: "Fix Debian 10 EOL repositories"
109+
if: contains(matrix.platforms.image, 'debian-10') || contains(matrix.platforms.image, 'buster')
110+
run: |
111+
bundle exec bolt command run "
112+
sed -i 's|deb.debian.org|archive.debian.org|g' /etc/apt/sources.list &&
113+
sed -i 's|security.debian.org|archive.debian.org|g' /etc/apt/sources.list &&
114+
sed -i '/buster-updates/d' /etc/apt/sources.list &&
115+
echo 'Acquire::Check-Valid-Until \"false\";' > /etc/apt/apt.conf.d/99no-check-valid-until &&
116+
echo 'Acquire::AllowInsecureRepositories \"true\";' > /etc/apt/apt.conf.d/99allow-insecure &&
117+
echo 'Acquire::AllowDowngradeToInsecureRepositories \"true\";' >> /etc/apt/apt.conf.d/99allow-insecure
118+
" -t ssh_nodes -i spec/fixtures/litmus_inventory.yaml
119+
108120
- name: "Install Puppet agent"
109121
run: |
110122
if [[ "${{ matrix.collection.version }}" ]] ; then

0 commit comments

Comments
 (0)