Skip to content

Commit

Permalink
fix(python): use python3 postres on cent7/8
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Dec 3, 2020
1 parent 5b9de35 commit d6d1068
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions postgres/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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' %}

Expand Down

0 comments on commit d6d1068

Please sign in to comment.