|
|
|
|
|
|
|
|
{% 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 }}: |
|
|
|
|
|
file: |
|
|
|
|
|
- managed |
|
|
|
|
|
|
|
|
apache_vhosts_{{ id }}: |
|
|
|
|
|
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') }} |
|
|
- template: {{ site.get('template_engine', 'jinja') }} |
|
|
- template: {{ site.get('template_engine', 'jinja') }} |