Skip to content

Introduce a plain foreman flavor#511

Draft
ekohl wants to merge 13 commits into
theforeman:masterfrom
ekohl:plain-foreman-flavor
Draft

Introduce a plain foreman flavor#511
ekohl wants to merge 13 commits into
theforeman:masterfrom
ekohl:plain-foreman-flavor

Conversation

@ekohl
Copy link
Copy Markdown
Member

@ekohl ekohl commented May 15, 2026

Why are you introducing these changes? (Problem description, related links)

Today Foreman can be deployed without Katello on both RPM and Debian installations and this allows users to mirror that.

What are the changes introduced in this pull request?

The flavor itself is rather trivial, but there are some changes made to only deploy certain roles depending on the features enabled. That is likely incomplete. In particular, Apache is not yet modified to only deploy the required services. In the future when a plain foreman-proxy role is introduced then that will need adjustment.

There are also heavy testing changes, heavily based on #509 which in turn is based on #508. I'm wondering how much of those commits already belong there.

Right now the test suite fails because the foreman feature is only set in the flavor and not in the parameters.

It's also important to look at how this will play into #431.

How to test this pull request

Steps to reproduce:

  • Run foremanctl deploy --flavor foreman
  • Observe only Foreman it deployed without Pulp and Candlepin
  • Test suite passes

Checklist

  • Tests added/updated (if applicable)
  • Documentation updated (if applicable)

ekohl added 13 commits May 15, 2026 12:33
This allows guarding tests behind markers.
This uses the API directly to extract the right information. It would be
a lot easier if there was an API endpoint to query this programatically.
This sets up a directory structure where an entire directory gets a
feature mark. This makes it easy to skip entire feature tests.
This guards it behind the feature flag, allowing the tests to be skipped
if the feature is disabled. For example, on a standalone foreman-proxy.
This moves Candlepin and Pulp behind the feature flags. Candlepin is
only deployed on Foreman with Katello servers while Pulp is deployed on
Katello enabled servers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant