From 98e9c00661575b1875d2465e681cbabcbdf313d1 Mon Sep 17 00:00:00 2001 From: Tibor Gemes Date: Wed, 18 May 2016 10:07:24 +0200 Subject: [PATCH] enable mod_ssl on Redhat --- README.rst | 5 +++++ apache/mod_ssl.sls | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/README.rst b/README.rst index 6044f3b..4fed9cb 100644 --- a/README.rst +++ b/README.rst @@ -93,6 +93,11 @@ using data from Pillar. (Debian and RedHat Only) Allows you to install the basic Core Rules (CRS) and some basic configuration for mod_security2 +``apache.mod_ssl`` +---------------------- + +Installs and enables the mod_ssl module (Debian and RedHad only) + ``apache.mod_vhost_alias`` ---------------------- diff --git a/apache/mod_ssl.sls b/apache/mod_ssl.sls index c7f8aef..74fb7c9 100644 --- a/apache/mod_ssl.sls +++ b/apache/mod_ssl.sls @@ -13,4 +13,13 @@ a2enmod mod_ssl: - watch_in: - module: apache-restart +{% elif grains['os_family']=="RedHat" %} + +mod_ssl: + pkg.installed: + - require: + - pkg: apache + - watch_in: + - module: apache-restart + {% endif %}