Merge pull request #141 from bbinet/file-contents_pillar
Add contents_pillar support for files managed by pillar
diff --git a/linux/system/file.sls b/linux/system/file.sls
index 24ca394..f0cc322 100644
--- a/linux/system/file.sls
+++ b/linux/system/file.sls
@@ -11,6 +11,9 @@
{%- if file.contents is defined %}
- contents: {{ file.contents }}
{%- endif %}
+ {%- if file.contents_pillar is defined %}
+ - contents_pillar: {{ file.contents_pillar }}
+ {%- endif %}
- makedirs: {{ file.get('makedirs', 'True') }}
- user: {{ file.get('user', 'root') }}
- group: {{ file.get('group', 'root') }}
@@ -31,4 +34,4 @@
{%- endfor %}
-{%- endif %}
\ No newline at end of file
+{%- endif %}