Bladeren bron

Use home and conf_dir from map.jinja

to reduce duplication of constants
tags/v0.55.0
Bernhard M. Wiedemann 6 jaren geleden
bovenliggende
commit
8c780fa63f
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +2
    -2
      nginx/common.sls

+ 2
- 2
nginx/common.sls Bestand weergeven

@@ -1,7 +1,7 @@
{% from "nginx/map.jinja" import nginx as nginx_map with context %}
{% set nginx = pillar.get('nginx', {}) -%}
{% set home = nginx.get('home', '/var/www') -%}
{% set conf_dir = nginx.get('conf_dir', '/etc/nginx') -%}
{% set home = nginx.get('home', nginx_map.home) -%}
{% set conf_dir = nginx.get('conf_dir', nginx_map.conf_dir) -%}
{% set conf_template = nginx.get('conf_template', 'salt://nginx/templates/config.jinja') -%}

{{ home }}:

Laden…
Annuleren
Opslaan