git
This commit is contained in:
14
git/init.sls
Normal file
14
git/init.sls
Normal file
@@ -0,0 +1,14 @@
|
||||
git:
|
||||
pkg.installed: []
|
||||
|
||||
{% for user, configs in salt.pillar.get("git:user_configs", {}).items() %}
|
||||
{% for key, val in configs.items() %}
|
||||
{{ "gitconfig_%s_%s" | format(user, key) | yaml_encode }}:
|
||||
git.config_set:
|
||||
- name: {{ key | yaml_encode }}
|
||||
- value: {{ val | yaml_encode }}
|
||||
- user: {{ user | yaml_encode }}
|
||||
- global: true
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user