|
|
|
|
|
|
|
|
# - require_in: |
|
|
# - require_in: |
|
|
# - sls: users |
|
|
# - sls: users |
|
|
# |
|
|
# |
|
|
{% if 'gitconfig' in user %} |
|
|
|
|
|
{% if salt['cmd.has_exec']('git') %} |
|
|
{% if salt['cmd.has_exec']('git') %} |
|
|
|
|
|
|
|
|
|
|
|
{% if 'gitconfig' in user %} |
|
|
{% 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 %} |
|
|
|
|
|
|
|
|
|
|
|
{% if 'gitconfig.absent' in user and grains['saltversioninfo'] >= [2015, 8, 0, 0] %} |
|
|
|
|
|
{% for key in user.get('gitconfig.absent') %} |
|
|
|
|
|
users_{{ name }}_user_gitconfig_absent_{{ key }}: |
|
|
|
|
|
git.config_unset: |
|
|
|
|
|
- name: '{{ key }}' |
|
|
|
|
|
- user: {{ name }} |
|
|
|
|
|
- global: True |
|
|
|
|
|
- all: True |
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% endfor %} |
|
|
{% endfor %} |