From f979f7a69cd749fd94210dc759a41ac377bb2e3c Mon Sep 17 00:00:00 2001 From: Arsen Ilchyniak Date: Fri, 19 Jul 2024 09:52:25 -0700 Subject: [PATCH] cpe_kernel_channel - Migrate away from deprecated mirrorlist.centos.org 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 --- itchef/cookbooks/cpe_kernel_channel/resources/fedora.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/itchef/cookbooks/cpe_kernel_channel/resources/fedora.rb b/itchef/cookbooks/cpe_kernel_channel/resources/fedora.rb index 4af5263f..7f98acce 100644 --- a/itchef/cookbooks/cpe_kernel_channel/resources/fedora.rb +++ b/itchef/cookbooks/cpe_kernel_channel/resources/fedora.rb @@ -34,8 +34,8 @@ 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 @@ -43,8 +43,8 @@ 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'