Skip to content

Commit 103da72

Browse files
authored
fix(hg): fix issue with file.managed state (#431)
* fix(hg): add branches for noble * fix(hg): add file branch for py3 * fix(hg): fix issues with salt state
1 parent 16fa5c4 commit 103da72

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

salt/hg/init.sls

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,24 @@ hg-user:
7979
- file: /srv/hg/wsgi
8080
{% endif %}
8181

82+
{% if grains["oscodename"] == "noble" %}
83+
/srv/hg/wsgi/python.wsgi:
84+
file.managed:
85+
- source: salt://hg/files/hg/wsgi/python3.wsgi
86+
- user: hg
87+
- mode: "0755"
88+
- require:
89+
- file: /srv/hg/wsgi
90+
{% else %}
91+
/srv/hg/wsgi/python.wsgi:
92+
file.managed:
93+
- source: salt://hg/files/hg/wsgi/python.wsgi
94+
- user: hg
95+
- mode: "0755"
96+
- require:
97+
- file: /srv/hg/wsgi
98+
{% endif %}
99+
82100
/srv/hg/src:
83101
file.recurse:
84102
- source: salt://hg/files/hg/src

0 commit comments

Comments
 (0)