init
This commit is contained in:
commit
7b39666270
10 changed files with 136 additions and 0 deletions
25
srv/salt/users/init.sls
Normal file
25
srv/salt/users/init.sls
Normal 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
2
srv/salt/users/mysudoers
Normal file
|
@ -0,0 +1,2 @@
|
|||
deploy ALL=(ALL) NOPASSWD:ALL
|
||||
mrobinson ALL=(ALL) NOPASSWD:ALL
|
Loading…
Add table
Add a link
Reference in a new issue