Skip to content

Commit

Permalink
fix(hg): fix issue with file.managed state (#431)
Browse files Browse the repository at this point in the history
* fix(hg): add branches for noble

* fix(hg): add file branch for py3

* fix(hg): fix issues with salt state
  • Loading branch information
JacobCoffee authored Aug 1, 2024
1 parent 16fa5c4 commit 103da72
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions salt/hg/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 103da72

Please sign in to comment.