Browse Source

fix for sudoers users with dot

tags/2016.12
Jakub Pavlik 9 years ago
parent
commit
c860866104
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      linux/system/user.sls

+ 2
- 2
linux/system/user.sls View File

@@ -37,7 +37,7 @@ system_user_home_{{ user.home }}:

{%- if user.get('sudo', False) %}

/etc/sudoers.d/90-salt-user-{{ name }}:
/etc/sudoers.d/90-salt-user-{{ name|replace('.', '-') }}:
file.managed:
- source: salt://linux/files/sudoer
- template: jinja
@@ -61,7 +61,7 @@ system_user_home_{{ user.home }}:
file.absent:
- name: {{ user.home }}

/etc/sudoers.d/90-salt-user-{{ name }}:
/etc/sudoers.d/90-salt-user-{{ name|replace('.', '-') }}:
file.absent

{%- endif %}

Loading…
Cancel
Save