-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replace old
nginx
with nginx.ng
BREAKING CHANGE: all previous `nginx` based configurations must be reviewed; `nginx.ng` usage must be promoted to `nginx` and any uses of the original `nginx` will have to be converted.
- Loading branch information
Showing
35 changed files
with
586 additions
and
1,780 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,7 +72,7 @@ provisioner: | |
state_top: | ||
base: | ||
'*': | ||
- nginx.ng | ||
- nginx | ||
pillars: | ||
top.sls: | ||
base: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
{% from "nginx/map.jinja" import nginx as nginx_map with context %} | ||
# nginx | ||
# | ||
# Meta-state to fully install nginx. | ||
|
||
{% from 'nginx/map.jinja' import nginx, sls_block with context %} | ||
include: | ||
- nginx.common | ||
{% if salt['pillar.get']('nginx:use_upstart', nginx_map['use_upstart']) %} | ||
- nginx.upstart | ||
{% elif salt['pillar.get']('nginx:use_sysvinit', nginx_map['use_sysvinit']) %} | ||
- nginx.sysvinit | ||
{% endif %} | ||
{% if pillar.get('nginx', {}).get('user_auth_enabled', true) %} | ||
- nginx.users | ||
{% endif %} | ||
{% if pillar.get('nginx', {}).get('install_from_source', false) %} | ||
- nginx.source | ||
{% else %} | ||
- nginx.package | ||
{% endif -%} | ||
- nginx.config | ||
- nginx.service | ||
{% if nginx.snippets is defined %} | ||
- nginx.snippets | ||
{% endif %} | ||
- nginx.servers | ||
- nginx.certificates | ||
extend: | ||
nginx_service: | ||
service: | ||
- listen: | ||
- file: nginx_config | ||
- require: | ||
- file: nginx_config | ||
nginx_config: | ||
file: | ||
- require: | ||
{% if nginx.install_from_source %} | ||
- cmd: nginx_install | ||
{% else %} | ||
- pkg: nginx_install | ||
{% endif %} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.