From efc304e90dd5dbdbc82cd801db9a5e2ca9ad2bef Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Fri, 10 Nov 2023 13:26:56 +0100 Subject: [PATCH] updated sudo state --- states/sudo/config.sls | 2 +- states/sudo/templates/sudoers.j2 | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/states/sudo/config.sls b/states/sudo/config.sls index 8ae03fa..87690bb 100644 --- a/states/sudo/config.sls +++ b/states/sudo/config.sls @@ -2,7 +2,7 @@ {%- from "sudo/map.jinja" import sudo with context %} sudo-sudoers: file.managed: - - name: /etc/sudoers + - name: /etc/sudoers.d/common - source: salt://sudo/templates/sudoers.j2 - user: root - group: root diff --git a/states/sudo/templates/sudoers.j2 b/states/sudo/templates/sudoers.j2 index 5743b34..1a3070f 100644 --- a/states/sudo/templates/sudoers.j2 +++ b/states/sudo/templates/sudoers.j2 @@ -12,5 +12,3 @@ Defaults {{ default }} {% if acl.group %}%{% endif %}{{ key }} {{ acl.host|default('ALL') }}=({{ acl.who|default('ALL') }}) {{ acl.command|default('ALL') }} {%- endfor %} {%- endif %} - -#includedir /etc/sudoers.d