Browse Source

Allow defining config files user, group and mode

tags/2016.12
Filip Pytloun 8 years ago
parent
commit
f2720ea9eb
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      linux/system/config.sls

+ 3
- 0
linux/system/config.sls View File

@@ -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 %}

Loading…
Cancel
Save