-
Notifications
You must be signed in to change notification settings - Fork 36
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
icingaweb2 role: How to handle apache modules and the apache2 service? #240
Comments
As Icinga Web pulls in Apache2 as a direct dependency anyways if not already installed, we could go one step further and configure it to our needs within the scope of the Icinga Web role, in my opinion. So, yes to both questions from my side, let's wait for feedback from @mkayontour and maybe @martialblog |
This is a tough question, on one side I want to say sure why not, lets manage some Apache2 configuration. Cause we are already making sure apache2 is properly configured, not too much, but we install libapache2-mod-php. In the case we create a own apache2 management, a few issues will arise.
I would like to promote a working example on how to properly use the collection in combination with other roles. Regarding the issue, I guess that if the geerlingguy.apache2 role was used before the icingaweb2 role, it would make sure the service is enabled and running. It also has the capabilities to ensure certain mods are enabled. Got support for those OSs:
Or add SSL Values to your vhosts as requested in #227
All in all, I think using the geerlingguy role and teach how to use it in combination with the collection, is the best way to go. |
I am fine either way, but it should be documented that there is a missing piece (just like with the database creation that is not handled by the roles, but it is stated that you need to use another role to do that). |
I'm all for keeping it a dependency and having that in the docs. The geerlingguy apache role works great in most cases so we can suggest using it. |
ansible-collection-icinga/roles/icingaweb2/tasks/main.yml
Line 24 in fc5062b
I started adding Suse support for the roles and came across one thing:
On openSUSE, unlike on Debian, the apache2 service is not running/enabled after installation. So the role prepares everything required for icingaweb2, but the page is not available, as the webserver is not running.
Should the role enable and start the apache2 service? Or is it intentionally left out?
On a related note, the standard apache2 configuration on openSUSE Leap 15.5 spits out an error on the website due to the rewrite module not being enabled. Should this also be handled by the role?
Thanks in advance!
Johannes
The text was updated successfully, but these errors were encountered: