From 2f775e4cc2877c85a3d1883ac37a2bef860a55ea Mon Sep 17 00:00:00 2001 From: Bruno Binet Date: Tue, 8 Oct 2019 18:38:38 +0200 Subject: [PATCH] Add support for template defaults/context args --- linux/system/file.sls | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linux/system/file.sls b/linux/system/file.sls index d986d618..ee72c04b 100644 --- a/linux/system/file.sls +++ b/linux/system/file.sls @@ -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 }}