This commit is contained in:
2023-12-22 16:28:59 -05:00
parent da6b9aacaf
commit ee23c2db53

14
git/init.sls Normal file
View 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 %}