Pārlūkot izejas kodu

Added ability to enable SETENV in sudoers

Change-Id: Icee295720a5a2425390a1bcd588841897071938e
pull/100/head
Jakub Josef pirms 7 gadiem
vecāks
revīzija
7a9d9b9cca
2 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +1
    -0
      README.rst
  2. +1
    -1
      linux/files/sudoer-users

+ 1
- 0
README.rst Parādīt failu

@@ -157,6 +157,7 @@ This ways ``linux.system.sudo`` pillar map to actual sudo attributes:
salt-ops-2nd:
name: salt-ops
nopasswd: false
setenv: true # Enable sudo -E option
runas:
- DBA
commands:

+ 1
- 1
linux/files/sudoer-users Parādīt failu

@@ -2,6 +2,6 @@
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

{%- for user,spec in users.iteritems() %}
{{ spec.name|default(user) }} {{ spec.get('hosts', ['ALL'])|join(',') }}=({{ spec.get('runas', ['ALL'])|join(', ') }}) {% if spec.get('nopasswd', True) %}NOPASSWD: {% endif %}{{ spec.get('commands', ['ALL'])|join(', ') }}
{{ spec.name|default(user) }} {{ spec.get('hosts', ['ALL'])|join(',') }}=({{ spec.get('runas', ['ALL'])|join(', ') }}) {% if spec.get('nopasswd', True) %}NOPASSWD:{% endif %}{% if spec.get('setenv', False) %}SETENV:{% endif %} {{ spec.get('commands', ['ALL'])|join(', ') }}
{%- endfor %}


Notiek ielāde…
Atcelt
Saglabāt