Browse Source

Fix hardcoded Python version in site-packages path

merge-requests/85/head
Deimos 5 years ago
parent
commit
5c3c7c4691
  1. 4
      salt/salt/postgresql/init.sls

4
salt/salt/postgresql/init.sls

@ -1,4 +1,4 @@
{% from 'common.jinja2' import app_dir, venv_dir %}
{% from 'common.jinja2' import app_dir, python_version, venv_dir %}
postgresql:
pkgrepo.managed:
@ -74,7 +74,7 @@ enable-pg-stat-statements:
set-postgresql-pythonpath:
file.managed:
- name: /etc/postgresql/{{ pillar['postgresql_version'] }}/main/environment
- contents: "PYTHONPATH='{{ venv_dir }}/lib/python3.7/site-packages:{{ app_dir }}'"
- contents: "PYTHONPATH='{{ venv_dir }}/lib/python{{ python_version }}/site-packages:{{ app_dir }}'"
- user: postgres
- group: postgres
- mode: 644

Loading…
Cancel
Save