mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-17 10:10:31 +00:00
Upstream repo for RedHat
This commit is contained in:
parent
033e531872
commit
82f468ed53
1 changed files with 16 additions and 0 deletions
|
@ -12,3 +12,19 @@ install-postgresql-repo:
|
|||
- pkg: install-postgresql
|
||||
{% endif %}
|
||||
|
||||
{% if grains['os_family'] == 'RedHat' %}
|
||||
install-postgresql-repo:
|
||||
file.managed:
|
||||
- name: /etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
|
||||
- source: https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG
|
||||
- source_hash: md5=78b5db170d33f80ad5a47863a7476b22
|
||||
pkgrepo.managed:
|
||||
- name: pgdg-{{ postgres.version }}-centos
|
||||
- order: 1
|
||||
- humanname: PostgreSQL {{ postgres.version }} $releasever - $basearch
|
||||
- baseurl: https://download.postgresql.org/pub/repos/yum/{{ postgres.version }}/redhat/rhel-$releasever-$basearch
|
||||
- gpgcheck: 1
|
||||
- gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
|
||||
- require:
|
||||
- file: install-postgresql-repo
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Reference in a new issue