realms-wiki/srv/salt/users/init.sls

46 lines
799 B
Plaintext
Raw Normal View History

2013-12-02 18:02:53 +02:00
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:
2014-08-20 18:28:25 +03:00
- file: /home/deploy
2013-12-02 18:02:53 +02:00
/home/deploy/.bashrc:
file.copy:
- mode: 440
- user: deploy
- group: deploy
- source: /etc/skel/.bashrc
bashrc-append:
file.append:
- name: /home/deploy/.bashrc
2013-12-03 00:23:43 +02:00
- text: . ~/.bash_profile
- user: deploy
- group: deploy