|
|
|
|
|
|
|
|
- mode: 600 |
|
|
- mode: 600 |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
- show_diff: False |
|
|
- show_diff: False |
|
|
|
|
|
{%- set key_value = salt['pillar.get']('users:'+name+':ssh_keys:'+_key) %} |
|
|
|
|
|
{%- if 'salt://' in key_value[:7] %} |
|
|
|
|
|
- source: {{ key_value }} |
|
|
|
|
|
{%- else %} |
|
|
- contents_pillar: users:{{ name }}:ssh_keys:{{ _key }} |
|
|
- contents_pillar: users:{{ name }}:ssh_keys:{{ _key }} |
|
|
|
|
|
{%- endif %} |
|
|
- require: |
|
|
- require: |
|
|
- user: users_{{ name }}_user |
|
|
- user: users_{{ name }}_user |
|
|
{% for group in user.get('groups', []) %} |
|
|
{% for group in user.get('groups', []) %} |