Merge pull request #201 from noelmcloughlin/fedora2

Use osmap for OS handling of fedora repo
This commit is contained in:
N
2018-03-31 20:15:34 +01:00
committed by GitHub
3 changed files with 15 additions and 7 deletions

View File

@@ -34,11 +34,7 @@ RedHat:
humanname: PostgreSQL {{ repo.version }} $releasever - $basearch
gpgcheck: 1
gpgkey: 'https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-{{ release }}'
{% if grains.os == 'Fedora' %}
baseurl: 'https://download.postgresql.org/pub/repos/yum/{{ repo.version }}/fedora/fedora-$releasever-$basearch'
{% else %}
baseurl: 'https://download.postgresql.org/pub/repos/yum/{{ repo.version }}/redhat/rhel-$releasever-$basearch'
{% endif %}
{% if repo.use_upstream_repo == true %}
{% set data_dir = '/var/lib/pgsql/' ~ repo.version ~ '/data' %}