瀏覽代碼

[vhosts/standard] improve uniqueness of section id

tags/v0.37.4
Arthur Lutz 6 年之前
父節點
當前提交
c07e5846a4
No account linked to committer's email address
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. +2
    -3
      apache/vhosts/standard.sls

+ 2
- 3
apache/vhosts/standard.sls 查看文件

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

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

Loading…
取消
儲存