This will remove the redhat.repo too but subscription-manager seems to restore that file. # Remove the default repos so yum does not fail Yum -t -y -e 0 update -exclude centos-baseĪnd here’s the test version of the snippet: # update all the base packages from the updates repository Here’s the sections of the provisioning template where the snippet is inserted: #update local time The eventual solution was to run my snippet again before puppet is installed, this has worked and the provision filly completes successfully. I tried to exclude centos-release from the update but that did not work, probably not a bad thing considering the other packages included in centos-release. This causes the puppet install to fail as yum errors out on not being able to reach the baseurl of CentOS-Base.repo. The next issue was that yum update is called which updates centos-release and puts the default repos back. This worked and the repos were moved and the system is subscribed to Katello. I was running it just before the subscription-manager phase of our clone of the katello_kickstart_default template. I have created a snippet that moves the default repos out of /etc/. The presence of the default repos was preventing puppet from installing during provisioning as the box has no access to the outside internet at that stage of provisioning. I’ve just been going through this myself. During the provisioning stage we again remove the repos, but one of the last stages of provisioning is to run package updates which pulls those repos back in again if the release package is updated. This also happens when launching a new instance of CentOS 7.5. usr/share/doc/centos-release/Contributorsĭoes anyone have solutions for this other than using config mgmt to remove the repo files? Feels a bit hacky especially with yum caching. usr/lib/systemd/system-preset/90-default.preset usr/lib/systemd/system-preset/85-display-manager.preset etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Testing-7 etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-7 “.2.x86_64” which includes the repos but I can’t remove this package as the entire package tree is dependent on it. Since 7.5 release there are many new packages available, and after running through all the yum updates the CentOS*.repo files have been re-created. During the provisioning stage we remove the default CentOS*.repo files and content register to Katello. We’ve launched instances of CentOS 7.4 over the last few months.
0 Comments
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |