Commit e6fcd44c authored by Francesco Gionghi's avatar Francesco Gionghi
Browse files

fix sudo permission

parent d631e2ba
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
file.managed: file.managed:
- name: /etc/sudoers.d/{{ user }}-cmd - name: /etc/sudoers.d/{{ user }}-cmd
- source: salt://fbkusers/files/sudo.cmd - source: salt://fbkusers/files/sudo.cmd
- mode: 0440
- template: jinja - template: jinja
- defaults: - defaults:
sudouser: {{ user }} sudouser: {{ user }}
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
- name: /etc/sudoers.d/alias-{{ service }} - name: /etc/sudoers.d/alias-{{ service }}
- source: salt://fbkusers/files/sudo.systemctl - source: salt://fbkusers/files/sudo.systemctl
- template: jinja - template: jinja
- mode: 0440
- defaults: - defaults:
user: {{ user }} user: {{ user }}
service: {{ service }} service: {{ service }}
...@@ -23,6 +24,7 @@ ...@@ -23,6 +24,7 @@
file.managed: file.managed:
- source: salt://fbkusers/files/sudo.user - source: salt://fbkusers/files/sudo.user
- template: jinja - template: jinja
- mode: 0440
- defaults: - defaults:
user: {{ user }} user: {{ user }}
service: {{ service }} service: {{ service }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment