Skip to content

Instantly share code, notes, and snippets.

@scragg0x
Created August 11, 2014 19:26
Show Gist options
  • Save scragg0x/1d5e29444e6eb134688b to your computer and use it in GitHub Desktop.
Save scragg0x/1d5e29444e6eb134688b to your computer and use it in GitHub Desktop.
sudo:
group:
- present
file.managed:
- name: /etc/sudoers.d/nopasswd
- contents: |
%sudo ALL=(ALL:ALL) NOPASSWD: ALL
- mode: 0440
deploy:
group:
- present
user.present:
- shell: /bin/bash
- groups:
- deploy
- sudo
- require:
- group: deploy
- group: sudo
file.managed:
- name: /etc/security/limits.d/deploy.conf
- contents: |
@deploy soft nofile 500000
@deploy hard nofile 500000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment