This commit is contained in:
Matthew Scragg 2013-09-25 15:27:25 -05:00
commit 7b39666270
10 changed files with 136 additions and 0 deletions

25
srv/salt/users/init.sls Normal file
View file

@ -0,0 +1,25 @@
deploy:
user.present:
- shell: /bin/bash
- home: /home/deploy
- fullname: Deploy
scragg:
user.present:
- fullname: Matthew Scragg
- shell: /bin/bash
- home: /home/scragg
sudo:
pkg:
- installed
/etc/sudoes.d/mysudoers:
file:
- managed
- source: salt://users/mysudoers
- mode: 440
- user: root
- group: root
- require:
- pkg: sudo

2
srv/salt/users/mysudoers Normal file
View file

@ -0,0 +1,2 @@
deploy ALL=(ALL) NOPASSWD:ALL
mrobinson ALL=(ALL) NOPASSWD:ALL