fix(python): use python3 postres on cent7/8

This commit is contained in:
noelmcloughlin 2020-11-30 17:01:20 +00:00
parent 5b9de35c59
commit d6d1068395

View file

@ -62,6 +62,10 @@ RedHat:
gpgkey: 'https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-{{ release }}'
baseurl: 'https://download.postgresql.org/pub/repos/yum/{{ repo.version }}/redhat/rhel-$releasever-$basearch'
{%- if grains.get('osmajorrelease') >= 7) %}
pkg_python: python3-psycopg2
{%- endif %}
{% if repo.use_upstream_repo == true %}
{% set data_dir = '/var/lib/pgsql/' ~ repo.version ~ '/data' %}