|
|
|
|
|
|
|
|
{% if 'gitconfig' in user %} |
|
|
{% 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] %} |
|
|
git.config_set: |
|
|
git.config_set: |
|
|
{% else %} |
|
|
{% else %} |
|
|
git.config: |
|
|
git.config: |
|
|
|
|
|
|
|
|
- name: {{ key }} |
|
|
- name: {{ key }} |
|
|
- value: "{{ value }}" |
|
|
- value: "{{ value }}" |
|
|
- user: {{ name }} |
|
|
- user: {{ name }} |
|
|
{% if grains['saltversioninfo'] >= (2015, 8, 0, 0) %} |
|
|
|
|
|
|
|
|
{% if grains['saltversioninfo'] >= [2015, 8, 0, 0] %} |
|
|
- global: True |
|
|
- global: True |
|
|
{% else %} |
|
|
{% else %} |
|
|
- is_global: True |
|
|
- is_global: True |