Page MenuHomeDevCentral

No OneTemporary

diff --git a/roles/paas-docker/nginx/config.sls b/roles/paas-docker/nginx/config.sls
index a8d8aa8..4ec5da2 100644
--- a/roles/paas-docker/nginx/config.sls
+++ b/roles/paas-docker/nginx/config.sls
@@ -1,40 +1,42 @@
# -------------------------------------------------------------
# Salt — Provision Docker engine
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2018-03-16
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% from "map.jinja" import dirs with context %}
{% set containers = salt['pillar.get']('docker_containers:' + grains['id'], {}) %}
# -------------------------------------------------------------
# includes folder
#
# :: general configuration
# :: application-specific code
# -------------------------------------------------------------
{{ dirs.etc }}/nginx/includes:
file.recurse:
- source: salt://roles/paas-docker/nginx/files/includes
- dir_mode: 755
- file_mode: 644
# -------------------------------------------------------------
# vhosts folder
# -------------------------------------------------------------
{% for container, args in containers.items() %}
+{% if 'host' in args %}
{{ dirs.etc }}/nginx/vhosts/{{ container }}.conf:
file.managed:
- source: salt://roles/paas-docker/nginx/files/vhosts/{{ container }}.conf
- mode: 644
- template: jinja
- context:
fqdn: {{ args['host'] }}
app_port: {{ args['app_port'] }}
+{% endif %}
{% endfor %}

File Metadata

Mime Type
text/x-diff
Expires
Sun, Oct 12, 09:16 (5 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3065646
Default Alt Text
(1 KB)

Event Timeline