mirror of
https://github.com/saltstack-formulas/apache-formula.git
synced 2025-04-17 10:10:26 +00:00
Added the ability to remove the vhost file from debian
This commit is contained in:
parent
2320295d09
commit
2a84daf248
2 changed files with 21 additions and 0 deletions
|
@ -101,6 +101,11 @@ Enables and configures the Apache module mod_remoteip using data from Pillar. (D
|
|||
|
||||
Replace default vhost with own version. By default, it's 503 code. (Debian Only)
|
||||
|
||||
``apache.no_default_vhost``
|
||||
--------------------------
|
||||
|
||||
Remove the default vhost. (Debian Only)
|
||||
|
||||
``apache.vhosts.standard``
|
||||
--------------------------
|
||||
|
||||
|
|
16
apache/no_default.sls
Normal file
16
apache/no_default.sls
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% if grains['os_family']=="Debian" %}
|
||||
|
||||
{% from "apache/map.jinja" import apache with context %}
|
||||
|
||||
include:
|
||||
- apache
|
||||
|
||||
apache_no-default-vhost:
|
||||
file.absent:
|
||||
- name: {{ apache.vhostdir }}/000-default.conf
|
||||
- require:
|
||||
- pkg: apache
|
||||
- watch_in:
|
||||
- module: apache-reload
|
||||
|
||||
{% endif %}
|
Loading…
Add table
Reference in a new issue