Browse Source

Merge pull request #13 from bbinet/template-context

Add support for template defaults/context args
pull/221/head
preussal 1 year ago
parent
commit
fa72739075
No account linked to committer's email address
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      linux/system/file.sls

+ 6
- 0
linux/system/file.sls View File

@@ -27,6 +27,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 }}

Loading…
Cancel
Save