Skip to content

(PA-8041) Fix puppetcore8-nightly installs on rpm and mac#824

Merged
joshcooper merged 4 commits into
mainfrom
nightly_no_token
Apr 20, 2026
Merged

(PA-8041) Fix puppetcore8-nightly installs on rpm and mac#824
joshcooper merged 4 commits into
mainfrom
nightly_no_token

Conversation

@joshcooper

@joshcooper joshcooper commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

nightly builds were failing to install on rpm/zypper and mac when using collection => puppetcore*-nightly, see the first two commits. This wasn't a problem in CI, because it's still using the puppet8-nightly collection (here, here, here, here) but overriding yum_source

In a future ticket we should remove the non-core nightly collections, as the host was shutdown.

The next two commits fix docker/bin/install.sh when testing installs (not using beaker).

❯ docker/bin/install.sh sles 8.18.0.5.g99b09ffab puppetcore8-nightly                                                                               
...
18:36:08 +0000 INFO: Version parameter defined: 8.18.0.5.g99b09ffab
18:36:08 +0000 INFO: Downloading Puppet 8.18.0.5.g99b09ffab for SLES...
18:36:08 +0000 INFO: SLES platform! Lets get you an RPM...
18:36:08 +0000 INFO: Downloading https://yum-puppetcore.puppet.com/public/RPM-GPG-KEY-puppet
18:36:08 +0000 INFO:   to file /tmp/install.sh.8.6126/RPM-GPG-KEY-puppet
18:36:08 +0000 INFO: Trying wget...
warning: Rebuilding outdated index databases
warning: Generating 18 missing index(es), please wait...
18:36:08 +0000 INFO: Downloading https://artifactory.delivery.puppetlabs.net:443/artifactory/internal_nightly__local/yum/puppet8-nightly-release-sles-15.noarch.rpm
18:36:08 +0000 INFO:   to file /tmp/install.sh.8.6126/puppet8-nightly-release-sles-15.noarch.rpm
18:36:08 +0000 INFO: Trying wget...
18:36:08 +0000 INFO: installing puppetlabs yum repo with zypper...
...
(1/1) Installing: puppet8-nightly-release-3.0.0-4.sles15.noarch
...
Retrieving: puppet-agent-8.18.0.5.g99b09ffab-1.sles15.x86_64 (Puppet 8 Nightly Repository sles 15 - x86_64)                                                                                                                                                 (19/19),  23.3 MiB    
Retrieving: puppet-agent-8.18.0.5.g99b09ffab-1.sles15.x86_64.rpm
...
(19/19) Installing: puppet-agent-8.18.0.5.g99b09ffab-1.sles15.x86_64 ...
puppet 8.19.0
facter 4.19.0

The install task failed to install nightly builds for rpm-based platforms for
two different reasons. On SLES, we were running `sed` on
a non-existent `/etc/zypp/credentials.d/PuppetcoreCreds`. The SLES nightly release
packages don't create that file.

Similarly, on other RPM platforms, the nightly release
packages don't create `username` or `password` entries in the repo
`/etc/yum.repos.d/puppet*release.repo`

This adds a guard so we only try to manage credentials for non-nightly core
collections. This guard already existed for deb-based platforms.
Installing nightly core builds on mac failed, because it was using the
new scheme. Update the condition to exclude nightly core builds, similar
to what was done for sles and other rpm platforms.

Also when downloading nighlty builds, strip `core` from
the download URL, similar to what we do elsewhere:

    repo="/etc/yum.repos.d/${collection/core/}-release.repo"

And release packages

    filename="${collection/core/}-release-${deb_codename}.deb"
It's now possible to install nightly core packages without providing
PUPPET_FORGE_TOKEN.
…ker container

Previously, when running docker/bin/install.sh, you couldn't pass `license-id`
as it was hardcoded to `forge-key`.
@joshcooper joshcooper requested review from a team and bastelfreak as code owners April 17, 2026 18:33
@joshcooper joshcooper merged commit 0a5917f into main Apr 20, 2026
8 checks passed
@joshcooper joshcooper deleted the nightly_no_token branch April 20, 2026 18:08
@mhashizume mhashizume added the bug Something isn't working label May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants