Skip to content

Instantly share code, notes, and snippets.

@inthecloud247
Created January 15, 2013 23:16
Show Gist options
  • Save inthecloud247/4543083 to your computer and use it in GitHub Desktop.
Save inthecloud247/4543083 to your computer and use it in GitHub Desktop.
salt sudoer config example
sudoer-amazing:
file.append:
- name: /etc/sudoers
- text:
- "ydavid ALL=(ALL) NOPASSWD: ALL"
sudoer-defaults:
file.append:
- name: /etc/sudoers
- text:
- Defaults !secure_path
sudoer-comment:
file.comment:
- name: /etc/sudoers
- regex: ^Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment