Created
February 9, 2016 16:11
-
-
Save moali87/08dbe5f0036ade5bd112 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{% for args in pillar.get('service_accounts:teamcity', {}).items() %} | |
{{ args['user'] }}: | |
user.present: | |
- home: {{ args['home'] }} | |
- shell: {{ args['shell'] }} | |
- uid: {{ args['uid'] }} | |
- groups: {{ args['groups'] }} | |
- fullname: {{ args['fullname'] }} | |
ssh_auth.present: | |
- user: {{ args['user'] }} | |
- source: salt://service_accounts/keys/{{ args['user'] }}.pub | |
- config: /home/{{ args['user'] }}/.ssh/authorized_keys | |
{% endfor %} | |
whytewolf
commented
Feb 9, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment