diff --git a/scripts/salt_pillar_apache_sample.sh b/scripts/salt_pillar_apache_sample.sh index 512415f..72f1799 100644 --- a/scripts/salt_pillar_apache_sample.sh +++ b/scripts/salt_pillar_apache_sample.sh @@ -34,8 +34,8 @@ SITE_DATA tee /srv/salt/apache/samplesite.conf < - ServerName {{ (grains['os'].lower() + '.' + grains['id'] + '.com') }} - ServerAlias {{ ('www.' + grains['os'].lower() + '.' + grains['id'] + '.com') }} + ServerName {{ servername }} + ServerAlias {{ serveralias }} ServerAdmin webmaster@localhost DocumentRoot {{ ('/var/www/html/' + grains['id'] + '/') }} ErrorLog ${APACHE_LOG_DIR}/error.log @@ -49,6 +49,9 @@ SAMPLE_HTML tee /srv/salt/apache/init.sls <