Skip to content

Commit

Permalink
Add support for template defaults/context args
Browse files Browse the repository at this point in the history
  • Loading branch information
bbinet committed Oct 8, 2019
1 parent f955e09 commit 2f775e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions linux/system/file.sls
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ linux_file_{{ file_name }}:
{%- endif %}
{%- if file.template is defined %}
- template: {{ file.template }}
{%- if file.defaults is defined %}
- defaults: {{ file.defaults|json }}
{%- endif %}
{%- if file.context is defined %}
- context: {{ file.context|json }}
{%- endif %}
{%- endif %}
{%- elif file.contents is defined %}
- contents: {{ file.contents|json }}
Expand Down

0 comments on commit 2f775e4

Please sign in to comment.