Skip to content

Commit 060c8df

Browse files
committed
fix(redhat): fix pkg_deps to be able to install PostgreSQL 13
1 parent 8a11bd6 commit 060c8df

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

postgres/codenamemap.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,12 @@
8383
{{ fedora_codename('Fedora-34', '13') }}
8484
{{ fedora_codename('Fedora-33', '13') }}
8585

86+
## Amazon
87+
Amazon Linux 2:
88+
pkgs_deps:
89+
- libicu
90+
- systemd-sysv
91+
pkg_repo:
92+
baseurl: 'https://download.postgresql.org/pub/repos/yum/{{ repo.version }}/redhat/rhel-7-$basearch'
93+
8694
# vim: ft=sls

postgres/osfamilymap.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ RedHat:
6363
gpgkey: 'https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-{{ release }}'
6464
baseurl: 'https://download.postgresql.org/pub/repos/yum/{{ repo.version }}/redhat/rhel-$releasever-$basearch'
6565

66-
{%- if grains.get('osmajorrelease', 0) >= 7 %}
6766
pkgs_deps:
6867
- libicu
68+
{%- if grains.get('osmajorrelease', 0) == 7 %}
69+
- systemd-sysv
70+
{%- endif %}
6971
pkg_python: python3-psycopg2
70-
{%- endif %}
7172

7273
{% if repo.use_upstream_repo == true %}
7374
{% set data_dir = '/var/lib/pgsql/' ~ repo.version ~ '/data' %}

postgres/osmap.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,3 @@ Fedora:
99
baseurl: 'https://download.postgresql.org/pub/repos/yum/{{ repo.version }}/fedora/fedora-$releasever-$basearch'
1010
remove:
1111
releases: ['9.4', '9.5', '9.6', '10']
12-
13-
Amazon:
14-
pkg_repo:
15-
baseurl: 'https://download.postgresql.org/pub/repos/yum/{{ repo.version }}/redhat/rhel-7-$basearch'

0 commit comments

Comments
 (0)