realms-wiki/srv/salt/users/init.sls
Matthew Scragg b02d3db684 WIP
2014-08-20 10:28:25 -05:00

46 lines
799 B
Plaintext

deploy:
user.present:
- shell: /bin/bash
- home: /home/deploy
- fullname: Deploy
sudo:
pkg:
- installed
/etc/sudoers.d/mysudoers:
file.managed:
- source: salt://users/mysudoers
- mode: 440
- user: root
- group: root
- require:
- pkg: sudo
/home/deploy:
file.directory:
- user: deploy
- group: deploy
/home/deploy/.bash_profile:
file.managed:
- source: salt://users/.bash_profile
- mode: 440
- user: deploy
- group: deploy
- require:
- file: /home/deploy
/home/deploy/.bashrc:
file.copy:
- mode: 440
- user: deploy
- group: deploy
- source: /etc/skel/.bashrc
bashrc-append:
file.append:
- name: /home/deploy/.bashrc
- text: . ~/.bash_profile
- user: deploy
- group: deploy