Allow defining config files user, group and mode
diff --git a/linux/system/config.sls b/linux/system/config.sls
index 139c468..0c965da 100644
--- a/linux/system/config.sls
+++ b/linux/system/config.sls
@@ -14,6 +14,9 @@
{{ service_config.path }}:
file.managed:
- source: {{ service_config.source }}
+ - user: {{ config.get('user', service_config.get('user', 'root')) }}
+ - group: {{ config.get('group', service_config.get('group', 'root')) }}
+ - mode: {{ config.get('mode', service_config.get('mode', '644')) }}
{%- if service_config.template is defined %}
- template: {{ service_config.template }}
{%- endif %}