mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-10 23:01:45 +00:00
fix(redhat): fix pkg_deps
to be able to install PostgreSQL 13
This commit is contained in:
parent
8a11bd679a
commit
060c8df630
3 changed files with 11 additions and 6 deletions
|
@ -83,4 +83,12 @@
|
|||
{{ fedora_codename('Fedora-34', '13') }}
|
||||
{{ fedora_codename('Fedora-33', '13') }}
|
||||
|
||||
## Amazon
|
||||
Amazon Linux 2:
|
||||
pkgs_deps:
|
||||
- libicu
|
||||
- systemd-sysv
|
||||
pkg_repo:
|
||||
baseurl: 'https://download.postgresql.org/pub/repos/yum/{{ repo.version }}/redhat/rhel-7-$basearch'
|
||||
|
||||
# vim: ft=sls
|
||||
|
|
|
@ -63,11 +63,12 @@ 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', 0) >= 7 %}
|
||||
pkgs_deps:
|
||||
- libicu
|
||||
{%- if grains.get('osmajorrelease', 0) == 7 %}
|
||||
- systemd-sysv
|
||||
{%- endif %}
|
||||
pkg_python: python3-psycopg2
|
||||
{%- endif %}
|
||||
|
||||
{% if repo.use_upstream_repo == true %}
|
||||
{% set data_dir = '/var/lib/pgsql/' ~ repo.version ~ '/data' %}
|
||||
|
|
|
@ -9,7 +9,3 @@ Fedora:
|
|||
baseurl: 'https://download.postgresql.org/pub/repos/yum/{{ repo.version }}/fedora/fedora-$releasever-$basearch'
|
||||
remove:
|
||||
releases: ['9.4', '9.5', '9.6', '10']
|
||||
|
||||
Amazon:
|
||||
pkg_repo:
|
||||
baseurl: 'https://download.postgresql.org/pub/repos/yum/{{ repo.version }}/redhat/rhel-7-$basearch'
|
||||
|
|
Loading…
Add table
Reference in a new issue