From f80a06260b44c61e84fbf1c928308350bbf108ca Mon Sep 17 00:00:00 2001 From: Archie Brentano Date: Fri, 17 Mar 2017 09:03:26 -0700 Subject: [PATCH] [+] debian apache2 needs to have conf enabled when making this change --- apache/mod_remoteip.sls | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apache/mod_remoteip.sls b/apache/mod_remoteip.sls index 87fae3e..dafb8c9 100644 --- a/apache/mod_remoteip.sls +++ b/apache/mod_remoteip.sls @@ -12,6 +12,15 @@ a2enmod remoteip: - watch_in: - module: apache-restart +a2enconf remoteip: + cmd.run: + - unless: ls /etc/apache2/mods-enabled/remoteip.load + - order: 255 + - require: + - pkg: apache + - watch_in: + - module: apache-reload + /etc/apache2/conf-available/remoteip.conf: file.managed: - template: jinja @@ -21,5 +30,4 @@ a2enmod remoteip: - pkg: apache - watch_in: - service: apache - {% endif %}