From 92b167ffa851b6727081bff3a19e27dedc32b7ad Mon Sep 17 00:00:00 2001 From: Alan McNea Date: Tue, 5 Nov 2013 20:06:10 +0000 Subject: [PATCH] Added vhost_alias.sls for that apache mod --- apache/vhost_alias.sls | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 apache/vhost_alias.sls diff --git a/apache/vhost_alias.sls b/apache/vhost_alias.sls new file mode 100644 index 0000000..f970151 --- /dev/null +++ b/apache/vhost_alias.sls @@ -0,0 +1,16 @@ +{% if grains['os_family']=="Debian" %} + +include: + - apt + - apache + +a2enmod vhost_alias: + cmd.run: + - unless: ls /etc/apache2/mods-enabled/vhost_alias.load + - order: 225 + - require: + - pkg: apache + - watch_in: + - cmd: apache-restart + +{% endif %}