File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 13
13
{% set osfamily = salt ['grains.filter_by' ](osfamilymap , grain ='os_family' ) or {} %}
14
14
{% do salt ['defaults.merge' ](defaults .nginx , osfamily ) %}
15
15
16
+ {% if salt ['pillar.get' ]('{}:install_from_openresty' .format (pillar_namespace ), False ) %}
17
+ {% import_yaml tplroot ~ "/openresty.yaml" as openrestymap %}
18
+ {% set openresty = salt ['grains.filter_by' ](openrestymap , grain ='os_family' ) or {} %}
19
+ {% do salt ['defaults.merge' ](defaults .nginx , openresty ) %}
20
+ {% endif %}
21
+
16
22
{% set nginx = salt ['pillar.get' ](pillar_namespace , default =defaults .nginx , merge =True ) %}
17
23
18
24
{% if 'user' not in nginx .server .config %}
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ # vim: ft=yaml
3
+ ---
4
+ Debian :
5
+ lookup :
6
+ package : openresty
7
+ service : openresty
8
+ conf_file : /usr/local/openresty/nginx/conf/nginx.conf
9
+ server_available : /usr/local/openresty/nginx/conf/sites-available
10
+ server_enabled : /usr/local/openresty/nginx/conf/sites-enabled
11
+ snippets_dir : /usr/local/openresty/nginx/conf/snippets
12
+ pid_file : /usr/local/openresty/nginx/logs/nginx.pid
13
+ install_from_openresty : true
14
+ certificates_path : /usr/local/openresty/nginx/ssl
15
+ server :
16
+ config :
17
+ http :
18
+ access_log : []
19
+ error_log : []
You can’t perform that action at this time.
0 commit comments