Skip to content

Commit

Permalink
feat: add global gitconfig for all users
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Dec 4, 2024
1 parent 841f05f commit ac2f2ac
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions salt/bugs/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,19 @@ tracker-{{ tracker }}-clone:
tracker-{{ tracker }}-clone-permissions:
file.directory:
- name: /srv/roundup/trackers/{{ tracker }}
- user: roundup
- group: roundup
- mode: "0770"
- mode: "0750"

tracker-{{ tracker }}-gitconfig:
file.blockreplace:
- name: /etc/gitconfig
- marker_start: "# TRACKER-{{ tracker }}-START"
- marker_end: "# TRACKER-{{ tracker }}-END"
- content: |
[safe]
directory = /srv/roundup/trackers/{{ tracker }}
- append_if_not_found: True
- require:
- file: tracker-{{ tracker }}-clone-permissions

tracker-{{ tracker }}-config:
file.managed:
Expand Down

0 comments on commit ac2f2ac

Please sign in to comment.