Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
apache-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
apache-formula
Commits
c07e5846
Unverified
Commit
c07e5846
authored
6 years ago
by
Arthur Lutz
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[vhosts/standard] improve uniqueness of section id
parent
6f3ab21d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
apache/vhosts/standard.sls
+2
-3
2 additions, 3 deletions
apache/vhosts/standard.sls
with
2 additions
and
3 deletions
apache/vhosts/standard.sls
+
2
−
3
View file @
c07e5846
...
@@ -6,9 +6,8 @@ include:
...
@@ -6,9 +6,8 @@ include:
{% 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 }}:
{{ id }}-vhosts:
file:
file.managed:
- 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') }}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment