From 0ed941bd4ed7f35869692793fc8d7c76fd7618b2 Mon Sep 17 00:00:00 2001 From: Elias Probst Date: Fri, 28 Aug 2015 16:01:38 +0200 Subject: [PATCH] a2(en|dis)site requires the full name incl. the confext. --- apache/register_site.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apache/register_site.sls b/apache/register_site.sls index bb79134..1cababc 100644 --- a/apache/register_site.sls +++ b/apache/register_site.sls @@ -9,9 +9,9 @@ {% if 'name' in pillar['apache']['register-site'][site] and 'state' in pillar['apache']['register-site'][site] %} {% if pillar['apache']['register-site'][site]['state'] == 'enabled' %} -{% set a2modid = "a2ensite " ~ pillar['apache']['register-site'][site]['name'] %} +{% set a2modid = "a2ensite " ~ pillar['apache']['register-site'][site]['name'] ~ apache.confext %} {% else %} -{% set a2modid = "a2dissite " ~ pillar['apache']['register-site'][site]['name'] %} +{% set a2modid = "a2dissite " ~ pillar['apache']['register-site'][site]['name'] ~ apache.confext %} {% endif %} {{ a2modid }}: cmd.run: