From 48cce0e3e30caeb7fb5c36bf8bafa70fe8342366 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 f55866ea..15495cb2 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 }}