File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1
1
{%- from tpldir + " /map.jinja" import postgres with context -% }
2
2
{%- from tpldir + " /macros.jinja" import format_kwargs with context -% }
3
3
4
+ {% set pg_common_version = salt[' pkg.version' ](' postgresql-common' ) % }
5
+
4
6
{%- if ' pkg_repo' in postgres -% }
5
7
6
8
{%- if postgres.use_upstream_repo == true -% }
@@ -24,13 +26,15 @@ postgresql-pkg-deps:
24
26
25
27
# Add upstream repository for your distro
26
28
{% if grains.os_family == ' Debian' % }
29
+ {% if salt[' pkg.version_cmp' ](pg_common_version, ' 246' ) <= 0 % }
27
30
postgresql- repo- keyring:
28
31
pkg.installed:
29
32
- sources:
30
33
- pgdg- keyring: {{ postgres.pkg_repo_keyring }}
31
34
- require_in:
32
35
- pkgrepo: postgresql- repo
33
36
{%- endif % }
37
+ {%- endif % }
34
38
35
39
postgresql- repo:
36
40
pkgrepo.managed:
You can’t perform that action at this time.
0 commit comments