We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c7d314 commit bc00ae9Copy full SHA for bc00ae9
2 files changed
salt/hg/files/hg/wsgi/python.wsgi
@@ -3,4 +3,9 @@ from mercurial import encoding
3
4
CONFIG = '/srv/hg/repos.conf'
5
encoding.encoding = 'utf-8'
6
+{% if grains["oscodename"] == "noble" %}
7
application = hgwebdir(CONFIG.encode())
8
+{% else %}
9
+application = hgwebdir(CONFIG)
10
+{% endif %}
11
+
salt/hg/init.sls
@@ -2,7 +2,9 @@ hg-deps:
2
pkg.installed:
- pkgs:
- mercurial
+ {% if grains["oscodename"] == ["noble"] %}
- python3-pygments
+ {% endif %}
svn-deps:
@@ -159,7 +161,7 @@ apache2:
159
161
160
162
163
- apache2
- - libapache2-mod-wsgi-py3
164
+ - libapache2-mod-wsgi{% if grains["oscodename"] == ["noble"] %}-py3{% endif %}
165
service.running:
166
- enable: True
167
- reload: True
0 commit comments