Skip to content

Commit

Permalink
Merge pull request #218 from daks/context-fix
Browse files Browse the repository at this point in the history
fix: corrected indentation on context in file.managed states
  • Loading branch information
myii authored Apr 11, 2019
2 parents c604d50 + cfed4ce commit 8ded496
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions nginx/common.sls
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
- require:
- file: {{ conf_dir }}
- context:
default_user: {{ nginx_map.default_user }}
default_group: {{ nginx_map.default_group }}
default_user: {{ nginx_map.default_user }}
default_group: {{ nginx_map.default_group }}
{% if nginx.get('init_conf_dirs', True) %}
{% for dir in ('sites-enabled', 'sites-available') %}
Expand Down
2 changes: 1 addition & 1 deletion nginx/ng/passenger.sls
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ passenger_config:
- source: salt://nginx/ng/files/nginx.conf
- template: jinja
- context:
config: {{ nginx.passenger|json() }}
config: {{ nginx.passenger|json() }}
- watch_in:
- service: nginx_service
- require_in:
Expand Down
6 changes: 3 additions & 3 deletions nginx/source.sls
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ nginx:
- group: root
- mode: 0755
- context:
service_name: {{ service_name }}
sbin_dir: {{ sbin_dir }}
pid_path: {{ pid_path }}
service_name: {{ service_name }}
sbin_dir: {{ sbin_dir }}
pid_path: {{ pid_path }}
{% endif %}
service:
{% if service_enable %}
Expand Down
2 changes: 1 addition & 1 deletion nginx/sysvinit.sls
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ nginx-logger-{{ log_type }}:
- salt://nginx/templates/{{ grains['os_family'] }}-sysvinit-logger.jinja
- salt://nginx/templates/sysvinit-logger.jinja
- context:
type: {{ log_type }}
type: {{ log_type }}
service:
- running
- enable: True
Expand Down
2 changes: 1 addition & 1 deletion nginx/upstart.sls
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ nginx-logger-{{ log_type }}:
- mode: 440
- source: salt://nginx/templates/upstart-logger.jinja
- context:
type: {{ log_type }}
type: {{ log_type }}
service:
- running
- enable: True
Expand Down

0 comments on commit 8ded496

Please sign in to comment.