Skip to content

Fix rpm upgrades to puppetcore #763

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2025
Merged

Conversation

joshcooper
Copy link
Contributor

An earlier version of PR #757 assumed the default yum_source was changing to yum-puppetcore.puppet.com. Later we decided not to introduce a breaking change and instead use puppetcore* collections to opt-into the new behavior. However, the PR wasn't updated to account for that. And I didn't notice the problem because the docker upgrade script was using the puppet8 collection.

Change the upgrade script to use puppetcore* collections and update the redhat and suse classes to install from yum-puppetcore.puppet.com when using the core repos.

❯ export PUPPET_FORGE_TOKEN=...
❯ docker/bin/upgrade.sh rocky 7.34.0 8.11.0
...
Notice: /Stage[main]/Puppet_agent::Install/Package[puppet-agent]/ensure: ensure changed '7.34.0-1.el8' to '8.11.0'
❯ docker/bin/upgrade.sh sles 7.34.0 8.11.0
...
Notice: /Stage[main]/Puppet_agent::Install::Suse/Package[puppet-agent]/ensure: ensure changed '7.34.0-1.sles15' to '8.11.0'

An earlier version of PR puppetlabs#757 assumed the default yum_source was changing to
yum-puppetcore.puppet.com. Later we decided not to introduce a breaking change
and instead use puppetcore* collections to opt-into the new behavior. However,
the PR wasn't updated to account for that. And I didn't notice the problem
because the docker upgrade script was using the puppet8 collection.

Change the upgrade script to use puppetcore* collections and update the redhat
and suse classes to install from yum-puppetcore.puppet.com when using the core
repos.

    ❯ export PUPPET_FORGE_TOKEN=...
    ❯ docker/bin/upgrade.sh rocky 7.34.0 8.11.0
    ...
    Notice: /Stage[main]/Puppet_agent::Install/Package[puppet-agent]/ensure: ensure changed '7.34.0-1.el8' to '8.11.0'
    ❯ docker/bin/upgrade.sh sles 7.34.0 8.11.0
    ...
    Notice: /Stage[main]/Puppet_agent::Install::Suse/Package[puppet-agent]/ensure: ensure changed '7.34.0-1.sles15' to '8.11.0'
@joshcooper joshcooper requested review from bastelfreak and a team as code owners March 4, 2025 02:01
@mhashizume mhashizume merged commit 67cb890 into puppetlabs:main Mar 4, 2025
16 checks passed
@mhashizume mhashizume added the maintenance Maintenance chores are typically excluded from changelogs label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance chores are typically excluded from changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants