NETWAYS / icinga-installer

An easy to use Icinga-Installer
https://netways.de/
Apache License 2.0
15 stars 2 forks source link

Updating Apache after installation breaks Apache config on RHEL #24

Closed lbetz closed 2 years ago

lbetz commented 2 years ago

on RHEL systems

the http packages installs such config file to load apache modules: 00-base.conf 00-dav.conf 00-lua.conf 00-mpm.conf 00-optional.conf 00-proxy.conf 00-systemd.conf 01-cgi.conf

The puppetlabs/apache puppet module removes these files and uses its own named files. But an update of rpm httpd reinstalls the files shown above and so the apache modules will be loaded twice. Yes, it's yust a warning expected the mpm modules!

00-mpm.conf loads mod_mpm_event.so per default. But the puppet module icinga/icinga uses mpm_worker per default (in class icinga::web).

lbetz commented 2 years ago

file { [ '/etc/httpd/conf.d/autoindex.conf', '/etc/httpd/conf.d/userdir.conf', '/etc/httpd/conf.d/welcome.conf', '/etc/httpd/conf.modules.d/00-base.conf', '/etc/httpd/conf.modules.d/00-dav.conf', '/etc/httpd/conf.modules.d/00-lua.conf', '/etc/httpd/conf.modules.d/00-mpm.conf', '/etc/httpd/conf.modules.d/00-optional.conf', '/etc/httpd/conf.modules.d/00-proxy.conf', '/etc/httpd/conf.modules.d/00-ssl.conf', '/etc/httpd/conf.modules.d/00-systemd.conf', '/etc/httpd/conf.modules.d/01-cgi.conf']: ensure => file, content => '# content removed by icinga-installer', }