From 2a84daf248839dca498ed9a7826d4571dbde59b6 Mon Sep 17 00:00:00 2001 From: Daniel Hobley Date: Tue, 16 Feb 2016 13:09:52 +0100 Subject: [PATCH] Added the ability to remove the vhost file from debian --- README.rst | 5 +++++ apache/no_default.sls | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 apache/no_default.sls diff --git a/README.rst b/README.rst index fd37af5..6c1be23 100644 --- a/README.rst +++ b/README.rst @@ -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`` -------------------------- diff --git a/apache/no_default.sls b/apache/no_default.sls new file mode 100644 index 0000000..ff52061 --- /dev/null +++ b/apache/no_default.sls @@ -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 %} \ No newline at end of file