Skip to content

Commit

Permalink
cpe_kernel_channel - Migrate away from deprecated mirrorlist.centos.o…
Browse files Browse the repository at this point in the history
…rg URL (#282)

Summary:
This originally was PR #282, but the original pull request had issues that failed in internal testing. Credit to liteburn for the original PR.

Resolves #281.

Differential Revision: D59592724

fbshipit-source-id: d7c7ac989fed429e40725872edd78e3546ed1528
  • Loading branch information
Arsen Ilchyniak authored and facebook-github-bot committed Jul 19, 2024
1 parent cdb1dbf commit f979f7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions itchef/cookbooks/cpe_kernel_channel/resources/fedora.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@

cookbook_file '/etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial' do
source 'centos_kernel/RPM-GPG-KEY-centosofficial'
owner 'root'
group 'root'
owner node.root_user
group node.root_group
mode '0644'
end

release = node['cpe_kernel_channel']['release']

yum_repository 'CentOS-BaseOS' do
description "CentOS-#{release} - Base"
mirrorlist 'http://mirrorlist.centos.org/' +
"?release=#{release}&arch=$basearch&repo=BaseOS"
baseurl 'http://vault.centos.org/' +
"#{release}/BaseOS/$basearch/os"
fastestmirror_enabled true
gpgkey 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial'
includepkgs 'kernel*,kexec-tools'
Expand Down

0 comments on commit f979f7a

Please sign in to comment.