Skip to content
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

Expose Apache server aliases as a parameter #269

Merged
merged 2 commits into from Nov 3, 2022

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Nov 1, 2022

This allows setting a CNAME.

Passing the aliases to Apache is especially important when there are multiple vhosts or when using mod_md. While today we don't do either, having the option is good. It can also help with debugging since sosreport does collect the vhosts, but not the certificates. If ServerAliases matches what's on the certificate, that can give a hint.

Currently still working on tests.

This was originally intended in a60df53
but not implemented. It passed since it didn't contain the fragment, but
what was intended was to verify the parameters on the apache vhost.

Fixes: a60df53
This allows setting a CNAME.
@ekohl ekohl marked this pull request as ready for review November 1, 2022 20:25
@@ -79,7 +79,7 @@
it 'configures apache' do
is_expected.to contain_class('pulpcore::apache')
is_expected.to contain_apache__vhost('pulpcore')
is_expected.not_to contain_apache__vhost__fragment('pulpcore-http-pulpcore')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bugs you find reading code. Turns out I was the one to blame.

@ekohl ekohl added the Enhancement New feature or request label Nov 1, 2022
@ekohl ekohl requested a review from ehelms November 3, 2022 14:00
@ekohl ekohl merged commit f86f119 into theforeman:master Nov 3, 2022
@ekohl ekohl deleted the expose-serveraliases branch November 3, 2022 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants