1
0
Fork 0
mirror of synced 2024-11-13 20:58:58 -05:00
formula-sudoers/sudoers/included.sls
2014-02-09 18:32:22 +01:00

19 lines
459 B
Text

include:
- sudoers
{% set sudoers = pillar.get('sudoers', {}) %}
{% set included_files = sudoers.get('included_files', []) %}
{% for included_file,spec in included_files.items() -%}
{{ included_file }}:
file.managed:
- user: root
- group: root
- mode: 440
- template: jinja
- source: salt://sudoers/files/sudoers
- context:
included: True
sudoers: {{ spec }}
- require:
- file: /etc/sudoers
{% endfor %}