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