|
|
|
|
|
|
|
|
- user: {{ name }} |
|
|
- user: {{ name }} |
|
|
- group: {{ user_group }} |
|
|
- group: {{ user_group }} |
|
|
- mode: 600 |
|
|
- mode: 600 |
|
|
- contents: {{ user['ssh_keys']['privkey'] }} |
|
|
|
|
|
|
|
|
- contents_pillar: users:{{ name }}:ssh_keys:privkey |
|
|
- require: |
|
|
- require: |
|
|
- user: {{ name }}_user |
|
|
- user: {{ name }}_user |
|
|
{% for group in user.get('groups', []) %} |
|
|
{% for group in user.get('groups', []) %} |
|
|
|
|
|
|
|
|
- user: {{ name }} |
|
|
- user: {{ name }} |
|
|
- group: {{ user_group }} |
|
|
- group: {{ user_group }} |
|
|
- mode: 644 |
|
|
- mode: 644 |
|
|
- contents: {{ user['ssh_keys']['pubkey'] }} |
|
|
|
|
|
|
|
|
- contents_pillar: users:{{ name }}:ssh_keys:privkey |
|
|
- require: |
|
|
- require: |
|
|
- user: {{ name }}_user |
|
|
- user: {{ name }}_user |
|
|
{% for group in user.get('groups', []) %} |
|
|
{% for group in user.get('groups', []) %} |