From 898e10abd4d54be53176560fda2f458513fbd4c7 Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Thu, 1 Aug 2024 15:23:03 -0500 Subject: [PATCH] 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 --- salt/hg/init.sls | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/salt/hg/init.sls b/salt/hg/init.sls index 341a1a2d..7fa7bbea 100644 --- a/salt/hg/init.sls +++ b/salt/hg/init.sls @@ -97,6 +97,18 @@ hg-user: - file: /srv/hg/wsgi {% endif %} +/srv/hg/wsgi/python.wsgi: + file.managed: + - user: hg + - mode: "0755" + - require: + - file: /srv/hg/wsgi + {% if grains["oscodename"] == "noble" %} + - source: salt://hg/files/hg/wsgi/python3.wsgi + {% else %} + - source: salt://hg/files/hg/wsgi/python.wsgi + {% endif %} + /srv/hg/src: file.recurse: - source: salt://hg/files/hg/src