Browse Source

[standard/vhost] unique id renamed

tags/v0.37.4
Arthur Lutz 6 years ago
parent
commit
feadd58f85
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      apache/vhosts/standard.sls

+ 1
- 1
apache/vhosts/standard.sls View File

{% for id, site in salt['pillar.get']('apache:sites', {}).items() %} {% for id, site in salt['pillar.get']('apache:sites', {}).items() %}
{% set documentroot = site.get('DocumentRoot', '{0}/{1}'.format(apache.wwwdir, site.get('ServerName', id))) %} {% set documentroot = site.get('DocumentRoot', '{0}/{1}'.format(apache.wwwdir, site.get('ServerName', id))) %}


{{ id }}-vhosts:
apache_vhosts_{{ id }}:
file.managed: file.managed:
- name: {{ apache.vhostdir }}/{{ id }}{{ apache.confext }} - name: {{ apache.vhostdir }}/{{ id }}{{ apache.confext }}
- source: {{ site.get('template_file', 'salt://apache/vhosts/standard.tmpl') }} - source: {{ site.get('template_file', 'salt://apache/vhosts/standard.tmpl') }}

Loading…
Cancel
Save