commit | f39cb118d1e1144eeaf0cdccca8f999db63ada25 | [log] [tgz] |
---|---|---|
author | slimakcz <tomas@kamm.cz> | Mon May 08 18:39:37 2017 +0200 |
committer | GitHub <noreply@github.com> | Mon May 08 18:39:37 2017 +0200 |
tree | 6b9d16acfabc0e2f743c0a098ea8e4a583f0d15b | |
parent | e44797fe0d7b9124f881902ccb05c2169cb0287d [diff] |
remove sudo files for user Remove sudo files for users, which still exists, but don't have enabled sudo.
diff --git a/linux/system/user.sls b/linux/system/user.sls index 997f6fa..70c9c51 100644 --- a/linux/system/user.sls +++ b/linux/system/user.sls
@@ -50,6 +50,11 @@ - user: system_user_{{ name }} - check_cmd: /usr/sbin/visudo -c -f +{%- else %} + +/etc/sudoers.d/90-salt-user-{{ name|replace('.', '-') }}: + file.absent + {%- endif %} {%- else %}