Added option to disable apache module handling per OS basis

This commit is contained in:
Joona Hoikkala
2015-12-05 18:41:57 +02:00
parent 7d307d1cf4
commit 6c905056d2
2 changed files with 5 additions and 2 deletions
@@ -540,8 +540,9 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
:param str port: Port to listen on
"""
if "ssl_module" not in self.parser.modules:
self.enable_mod("ssl", temp=temp)
if constants.os_constant("handle_mods"):
if "ssl_module" not in self.parser.modules:
self.enable_mod("ssl", temp=temp)
# Check for Listen <port>
# Note: This could be made to also look for ip:443 combo
@@ -9,6 +9,7 @@ CLI_DEFAULTS_DEBIAN = dict(
enmod="a2enmod",
dismod="a2dismod",
le_vhost_ext="-le-ssl.conf",
handle_mods=True
)
CLI_DEFAULTS_CENTOS = dict(
server_root="/etc/httpd",
@@ -16,6 +17,7 @@ CLI_DEFAULTS_CENTOS = dict(
enmod=None,
dismod=None,
le_vhost_ext="-le-ssl.conf",
handle_mods=False
)
CLI_DEFAULTS = {
"debian": CLI_DEFAULTS_DEBIAN,