mirror of
https://github.com/saltstack-formulas/apache-formula.git
synced 2025-04-17 10:10:26 +00:00
DocumentRoot: fallback to SiteName like templates
Templates already fallback to SiteName before site id. This attemps to be consistent with them, and avoid having to explicitly specify the DocumentRoot, when the template already does the proper inference.
This commit is contained in:
parent
da543013f4
commit
0ed8f9a94b
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ include:
|
|||
- apache
|
||||
|
||||
{% for id, site in salt['pillar.get']('apache:sites', {}).items() %}
|
||||
{% set documentroot = site.get('DocumentRoot', '{0}/{1}'.format(apache.wwwdir, id)) %}
|
||||
{% set documentroot = site.get('DocumentRoot', '{0}/{1}'.format(apache.wwwdir, site.get('ServerName', id))) %}
|
||||
|
||||
{{ id }}:
|
||||
file:
|
||||
|
|
Loading…
Add table
Reference in a new issue