Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucianovici committed Nov 28, 2022
1 parent 596afd4 commit b44d0cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions postgres/upstream.sls
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{%- from tpldir + "/map.jinja" import postgres with context -%}
{%- from tpldir + "/macros.jinja" import format_kwargs with context -%}
{% set pg_common_version = salt['pkg.version']('postgresql-common') %}
{%- if 'pkg_repo' in postgres -%}
{%- if postgres.use_upstream_repo == true -%}
Expand All @@ -24,13 +26,15 @@ postgresql-pkg-deps:
# Add upstream repository for your distro
{% if grains.os_family == 'Debian' %}
{% if salt['pkg.version_cmp'](pg_common_version, '246') <= 0 %}
postgresql-repo-keyring:
pkg.installed:
- sources:
- pgdg-keyring: {{ postgres.pkg_repo_keyring }}
- require_in:
- pkgrepo: postgresql-repo
{%- endif %}
{%- endif %}
postgresql-repo:
pkgrepo.managed:
Expand Down

0 comments on commit b44d0cc

Please sign in to comment.