Skip to content

Commit

Permalink
Fix yum repos for kitchen tests
Browse files Browse the repository at this point in the history
centos8 mirrors have moved, adjust kitchen setup accordingly.

Also use latest Chef 17 since internally Meta is on at least
that version.

Signed-off-by: Phil Dibowitz <phil@ipom.com>
  • Loading branch information
jaymzh committed Feb 6, 2025
1 parent 59d96b3 commit 50a1c2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
os: ${{ matrix.os }}
env:
CHEF_LICENSE: accept-no-persist
CHEF_VERSION: 16.18.0
CHEF_VERSION: 17.10.163
shellcheck:
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 3 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ platforms:
intermediate_instructions:
# stub out /etc/fstab for fb_fstab
- RUN touch /etc/fstab
# mirrorlist.centos.org doesn't exist anymore, use baseurl
- RUN sed -i=.bak -e 's/^mirrorlist/#mirrorlist/g' -e 's!^#baseurl=http://mirror.centos.org/$contentdir/$stream!baseurl=https://vault.centos.org/$stream!g' /etc/yum.repos.d/*.repo
- RUN rm /etc/yum.repos.d/*.bak
# enable EPEL (for stuff like hddtemp)
- RUN rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
- name: ubuntu-18.04
Expand Down

0 comments on commit 50a1c2e

Please sign in to comment.