Browse Source

fix warning on managed file state for /etc/sudoers.d/username

tags/v0.45.0
Niels Abspoel 8 years ago
parent
commit
15ce6493cc
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      users/init.sls

+ 2
- 0
users/init.sls View File



users_sudoer-{{ name }}: users_sudoer-{{ name }}:
file.managed: file.managed:
- replace: False
- name: {{ users.sudoers_dir }}/{{ name }} - name: {{ users.sudoers_dir }}/{{ name }}
- user: root - user: root
- group: {{ users.root_group }} - group: {{ users.root_group }}


users_{{ users.sudoers_dir }}/{{ name }}: users_{{ users.sudoers_dir }}/{{ name }}:
file.managed: file.managed:
- replace: True
- name: {{ users.sudoers_dir }}/{{ name }} - name: {{ users.sudoers_dir }}/{{ name }}
- contents: | - contents: |
{%- if 'sudo_defaults' in user %} {%- if 'sudo_defaults' in user %}

Loading…
Cancel
Save