Browse Source

Servers config should require available/enabled dirs

tags/v0.55.0
Andres Montalban 7 years ago
parent
commit
dabbc99cc1
2 changed files with 5 additions and 1 deletions
  1. +3
    -1
      nginx/ng/map.jinja
  2. +2
    -0
      nginx/ng/servers_config.sls

+ 3
- 1
nginx/ng/map.jinja View File

@@ -145,7 +145,9 @@
'disabled_postfix': '.disabled',
'symlink_opts': {},
'rename_opts': {},
'managed_opts': {},
'managed_opts': {
'makedirs': True,
},
'dir_opts': {
'makedirs': True,
},

+ 2
- 0
nginx/ng/servers_config.sls View File

@@ -112,6 +112,8 @@ nginx_server_available_dir:
- name: {{ server_curpath(server) }}
- source: {{ source_path }}
- template: jinja
- require_in:
- service: nginx_service
{% if 'source_path' not in settings.config %}
- context:
config: {{ settings.config|json() }}

Loading…
Cancel
Save