|
|
|
|
|
|
|
|
{%- endfor %} |
|
|
{%- endfor %} |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
# |
|
|
|
|
|
# if not salt['cmd.has_exec']('git') |
|
|
|
|
|
# fails even if git is installed |
|
|
|
|
|
# |
|
|
|
|
|
# this doesn't work (Salt bug), therefore need to run state.apply twice |
|
|
# this doesn't work (Salt bug), therefore need to run state.apply twice |
|
|
#include: |
|
|
#include: |
|
|
# - users |
|
|
# - users |
|
|
|
|
|
|
|
|
# - sls: users |
|
|
# - sls: users |
|
|
# |
|
|
# |
|
|
{% if 'gitconfig' in user %} |
|
|
{% if 'gitconfig' in user %} |
|
|
|
|
|
{% if salt['cmd.has_exec']('git') %} |
|
|
{% for key, value in user['gitconfig'].items() %} |
|
|
{% for key, value in user['gitconfig'].items() %} |
|
|
users_{{ name }}_user_gitconfig_{{ loop.index0 }}: |
|
|
users_{{ name }}_user_gitconfig_{{ loop.index0 }}: |
|
|
{% if grains['saltversioninfo'] >= [2015, 8, 0, 0] %} |
|
|
{% if grains['saltversioninfo'] >= [2015, 8, 0, 0] %} |
|
|
|
|
|
|
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
|
|
|
|