Skip to content

feat(pulp): add the installers delivery action - #19

Open
tuntoja wants to merge 2 commits into
mainfrom
MON-216534-installers-delivery
Open

tuntoja wants to merge 2 commits into
mainfrom
MON-216534-installers-delivery

Conversation

@tuntoja

@tuntoja tuntoja commented Dec 4, 2026 •

Copy link
Copy Markdown

Description

MON-216534: a second repository needs to deliver a standalone file to Pulp, so the action moves here.

  • New action pulp/installers-delivery, ported from centreon-collect .github/actions/installers-delivery-pulp (identical on develop, dev-26.10.x, dev-25.10.x and dev-24.10.x).
  • Same inputs and defaults as the original; one new optional input, family: installers (default) or installers-internal (same layout, authenticated downloads only).
  • The script sources pulp/lib/api.sh and calls pulp/setup-cli of this package.
  • The summary title no longer says "Windows".
  • One hardening over the original: when Pulp cannot be read after the upload, the delivery fails with an error instead of reporting nothing to remove.
  • bats tests against curl and pulp stand-ins: repository and served path per family, token sent on the final fetch, unknown family, missing repository, testing tiers, stable refused, superseded builds removed in the delivered os segment only, file not served, api unreadable after the upload.

Not in this PR

  • The promotion action stays in centreon-collect.
  • Switching centreon-collect to this action: a later pull request, after the release.

Tests

  • check-actions.sh, shellcheck, bats (all packages), jactionlint, zizmor, prettier, gitleaks: green locally.
  • Real run against the dev stack, from a calling repository pinned to this commit (44d40d9), private family:
Case Result
First delivery, two os segments PASS: uploaded, served (HTTP 200)
Same files delivered again PASS: content reused, nothing removed
Second build PASS: previous build removed in its own os segment only
Anonymous download of a delivered file PASS: refused (403)

Delivers a standalone file to a flat file repository of the installers
family, or of its authenticated twin installers-internal (family input).
Ported from centreon-collect installers-delivery-pulp, same defaults.
@tuntoja
tuntoja marked this pull request as ready for review December 4, 2026 12:00
@tuntoja
tuntoja requested a review from a team as a code owner December 4, 2026 12:00

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant