Skip to content

Commit d6d1068

Browse files
fix(python): use python3 postres on cent7/8
1 parent 5b9de35 commit d6d1068

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: postgres/osfamilymap.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ RedHat:
6262
gpgkey: 'https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-{{ release }}'
6363
baseurl: 'https://download.postgresql.org/pub/repos/yum/{{ repo.version }}/redhat/rhel-$releasever-$basearch'
6464

65+
{%- if grains.get('osmajorrelease') >= 7) %}
66+
pkg_python: python3-psycopg2
67+
{%- endif %}
68+
6569
{% if repo.use_upstream_repo == true %}
6670
{% set data_dir = '/var/lib/pgsql/' ~ repo.version ~ '/data' %}
6771

0 commit comments

Comments
 (0)