aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/websites/templates/vhost_static.conf
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2024-10-05 16:09:13 -0700
committerDan Fandrich <danf@mageia.org>2024-10-05 16:39:54 -0700
commita7797c331e1fa86bdef5c49d6870d822dc591217 (patch)
treeab13b66e6f59511f98c5973ecbff36af876b57cc /deployment/websites/templates/vhost_static.conf
parent9d1a749d073a5997cd435ac51c5c65eb050b2af5 (diff)
downloadpuppet-a7797c331e1fa86bdef5c49d6870d822dc591217.tar
puppet-a7797c331e1fa86bdef5c49d6870d822dc591217.tar.gz
puppet-a7797c331e1fa86bdef5c49d6870d822dc591217.tar.bz2
puppet-a7797c331e1fa86bdef5c49d6870d822dc591217.tar.xz
puppet-a7797c331e1fa86bdef5c49d6870d822dc591217.zip
Use @ when accessing variables in templates
Access without the @ symbol is the older method and is discouraged. This take leaves alone accesses of variables that are defined within the template, which don't seem to allow an @. This batch of changes is for templates related to web sites.
Diffstat (limited to 'deployment/websites/templates/vhost_static.conf')
-rw-r--r--deployment/websites/templates/vhost_static.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/deployment/websites/templates/vhost_static.conf b/deployment/websites/templates/vhost_static.conf
index d250a712..fcadc425 100644
--- a/deployment/websites/templates/vhost_static.conf
+++ b/deployment/websites/templates/vhost_static.conf
@@ -1,5 +1,5 @@
<VirtualHost *:80>
- ServerName static.<%= domain %>
+ ServerName static.<%= @domain %>
DocumentRoot <%= scope.lookupvar("websites::static::vhostdir") %>
CustomLog /var/log/httpd/static_log combined
@@ -40,7 +40,7 @@
</VirtualHost>
<VirtualHost *:443>
- ServerName static.<%= domain %>
+ ServerName static.<%= @domain %>
DocumentRoot <%= scope.lookupvar("websites::static::vhostdir") %>
CustomLog /var/log/httpd/static_log combined