Created
July 1, 2015 20:54
-
-
Save peck/337cf53ae7c50ab45fbd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deployer: | |
user.present: | |
- fullname: Deployer of Worlds | |
- shell: /bin/zsh | |
- home: /home/deployer | |
file.managed: | |
- name: /home/deployer/.ssh/id_rsa | |
- source: salt://files/deployer/id_rsa | |
- user: deployer | |
- group: deployer | |
- mode: 0600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@helios:~$ ls -al /home/deployer/. | |
total 20 | |
drwxr-xr-x 2 deployer deployer 4096 Jul 1 20:41 . | |
drwxr-xr-x 4 root root 4096 Jul 1 20:41 .. | |
-rw-r--r-- 1 deployer deployer 220 Nov 12 2014 .bash_logout | |
-rw-r--r-- 1 deployer deployer 3515 Nov 12 2014 .bashrc | |
-rw-r--r-- 1 deployer deployer 675 Nov 12 2014 .profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO ] Running state [deployer] at time 20:41:27.763708 | |
[INFO ] Executing state user.present for deployer | |
[INFO ] Executing command ['useradd', '-s', '/bin/zsh', '-m', '-d', '/home/deployer', 'deployer'] in directory '/root' | |
[INFO ] Executing command ['usermod', '-c', 'Deployer of Worlds,,,', 'deployer'] in directory '/root' | |
[INFO ] {'shell': '/bin/zsh', 'workphone': '', 'uid': 1001, 'passwd': 'x', 'roomnumber': '', 'groups': ['deployer'], 'home': '/home/deployer', 'name': 'deployer', 'gid': 1001, 'fullname': 'Deployer of Worlds', 'homephone': ''} | |
[INFO ] Completed state [deployer] at time 20:41:27.888206 | |
[INFO ] Running state [/home/deployer/.ssh/id_rsa] at time 20:41:27.890206 | |
[INFO ] Executing state file.managed for /home/deployer/.ssh/id_rsa | |
[INFO ] Fetching file from saltenv 'base', ** done ** 'files/deployer/id_rsa' | |
[ERROR ] Parent directory not present | |
[INFO ] Completed state [/home/deployer/.ssh/id_rsa] at time 20:41:27.912929 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment