Skip to content

Commit 898e10a

Browse files
authored
fix(hg): adjust for duplicate key (#432)
* fix(hg): add branches for noble * fix(hg): add file branch for py3 * fix(hg): fix issues with salt state * fix(hg): fix duplicate salt state key
1 parent 103da72 commit 898e10a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

salt/hg/init.sls

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,18 @@ hg-user:
9797
- file: /srv/hg/wsgi
9898
{% endif %}
9999

100+
/srv/hg/wsgi/python.wsgi:
101+
file.managed:
102+
- user: hg
103+
- mode: "0755"
104+
- require:
105+
- file: /srv/hg/wsgi
106+
{% if grains["oscodename"] == "noble" %}
107+
- source: salt://hg/files/hg/wsgi/python3.wsgi
108+
{% else %}
109+
- source: salt://hg/files/hg/wsgi/python.wsgi
110+
{% endif %}
111+
100112
/srv/hg/src:
101113
file.recurse:
102114
- source: salt://hg/files/hg/src

0 commit comments

Comments
 (0)