Skip to content

Commit 2f775e4

Browse files
committed
Add support for template defaults/context args
1 parent f955e09 commit 2f775e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

linux/system/file.sls

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ linux_file_{{ file_name }}:
2323
{%- endif %}
2424
{%- if file.template is defined %}
2525
- template: {{ file.template }}
26+
{%- if file.defaults is defined %}
27+
- defaults: {{ file.defaults|json }}
28+
{%- endif %}
29+
{%- if file.context is defined %}
30+
- context: {{ file.context|json }}
31+
{%- endif %}
2632
{%- endif %}
2733
{%- elif file.contents is defined %}
2834
- contents: {{ file.contents|json }}

0 commit comments

Comments
 (0)