Browse Source

fix(server-status): manage module in debian

tags/v0.41.1
Javier Bértoli 4 years ago
parent
commit
eafa4196d9
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      apache/server_status.sls

+ 22
- 0
apache/server_status.sls View File

- module: apache-restart - module: apache-restart
- module: apache-reload - module: apache-reload
- service: apache - service: apache

{% if grains['os_family']=="Debian" %}
a2endisconf server-status:
cmd.run:
{% if apache.get('server_status_require') is defined %}
- name: a2enconf server-status
- unless: test -L /etc/apache2/conf-enabled/server-status.conf
{% else %}
- name: a2disconf server-status
- onlyif: test -L /etc/apache2/conf-enabled/server-status.conf
{% endif %}
- order: 225
- require:
- pkg: apache
- file: {{ apache.confdir }}/server-status.conf
- watch_in:
- module: apache-restart
- require_in:
- module: apache-restart
- module: apache-reload
- service: apache
{% endif %}

Loading…
Cancel
Save