-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fixes #34590 - Enable only minimum apache modules #754
Conversation
(My testing thus far of this feature was in combination with #753 ) |
My current method of testing them (as well as the tuning changes in the other PR):
foreman_installer_custom_hiera: |
apache::default_mods:
- 'setenvif'
- 'alias'
- 'env'
apache::mpm_module: 'event'
apache::mod::event::serverlimit: 64
apache::mod::event::startservers: 16
apache::mod::event::maxrequestworkers: 1024
apache::mod::event::minsparethreads: 128
apache::mod::event::maxsparethreads: 384
apache::mod::event::threadsperchild: 16
apache::mod::event::maxconnectionsperchild: 4096
|
47f4e05
to
ade32c7
Compare
This seems more related to tightening our deployments to only what's necessary thus https://github.com/theforeman/foreman-installer/blob/develop/config/foreman.hiera/common.yaml is likely a better spot than tieing this to tuning. |
Testing the latest version with https://github.com/wbclark/forklift/tree/default_mods (now updated to no longer require the previously unmerged branch of puppet-FPC) To test, first clean up the previous environment if any: $ for id in $(vagrant global-status --prune 2>&1 | grep $(pwd) | awk '{print $1}') ; do vagrant destroy -f $id ; done Then run the test (Katello in this example): $ ansible-playbook pipelines/install_pipeline.yml -e forklift_state=up -e pipeline_os=centos8-stream -e pipeline_type=katello -e pipeline_version=nightly This runs foreman-installer nightly with
And the following modules for the foreman-proxy-content scenario:
To make review easier, I'm now running a comparison pipeline which doesn't contain this change, so that diffs can be compared. |
The puppetlabs-apache module installs Apache httpd with a set of default Apache modules, some of which are not necessary for our use case. This commit reduces that set of Apache modules to a minimum, by setting `apache::default_mods: false` in `config/foreman.hiera/common.yaml`. The user can enable additional modules if desired by overriding `apache::default_mods` in custom-hiera.yaml with a list of Apache modules. For more information, see documentation for puppetlabs-apache.
ade32c7
to
77941fd
Compare
That makes sense. I've moved it to I'll update with the latest diffs when the install pipeline completes without this configuration. |
The comparing the diff of
And in foreman-proxy-content scenario:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK to me, and tests will really give us insight. @evgeni if you wouldn't also mind taking a look to help ensure we didn't miss something
the list looks sane to me (besides using non-unified format 😝) |
Thanks @wbclark |
Hey come on now, this way you can see only what is removed :) |
This change will remove mod_autoindex from apache, which means there is no directory index anymore on foreman.example.com/pub/ which some people seem to find confusing. |
theforeman/puppet-foreman_proxy_content#422 should address that. |
Wouldn't removing |
@jhutar that's what https://projects.theforeman.org/issues/35227 is about already. |
The puppetlabs-apache puppet module used by the foreman-installer
installs Apache httpd with a set of default Apache modules, some of
which are not necessary for our use case. This commit reduces that set
of Apache modules down to a minimum, by overriding the
apache::default_mods parameter in the common tuning profile. The user
can enable additional modules if desired by overriding
apache::default_mods to an expanded list in custom-hiera.yaml.