Browse Source

[+] debian apache2 needs to have conf enabled when making this change

tags/v0.37.4
Archie Brentano 7 years ago
parent
commit
f80a06260b
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      apache/mod_remoteip.sls

+ 9
- 1
apache/mod_remoteip.sls View File

- watch_in: - watch_in:
- module: apache-restart - 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: /etc/apache2/conf-available/remoteip.conf:
file.managed: file.managed:
- template: jinja - template: jinja
- pkg: apache - pkg: apache
- watch_in: - watch_in:
- service: apache - service: apache

{% endif %} {% endif %}

Loading…
Cancel
Save