Skip to content

Commit f3d8830

Browse files
Implement review comment (conditional)
1 parent 080bff7 commit f3d8830

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

postgres/client/init.sls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ postgresql-{{ bin }}-altinstall:
3939
- onlyif: test -f {{ path }}
4040
- require:
4141
- pkg: postgresql-client-libs
42+
{%- if grains['saltversioninfo'] < [2018, 11, 0, 0] %}
4243
- retry:
4344
attempts: 2
4445
until: True
46+
{%- endif %}
4547
4648
{%- endfor %}
4749
{%- endif %}

postgres/dev/init.sls

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@ postgresql-{{ bin }}-altinstall:
2323
- link: {{ salt['file.join']('/usr/bin', bin) }}
2424
- path: {{ path }}
2525
- priority: {{ postgres.linux.altpriority }}
26-
{% if grains.os in ('Fedora', 'CentOS',) %} {# bypass bug #}
27-
- onlyif: alternatives --display {{ bin }}
28-
{% else %}
2926
- onlyif: test -f {{ path }}
27+
{%- if grains['saltversioninfo'] < [2018, 11, 0, 0] %}
3028
- retry:
3129
attempts: 2
3230
until: True
33-
{% endif %}
31+
{%- endif %}
3432
3533
{%- endfor %}
3634
{%- endif %}

postgres/server/init.sls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ postgresql-{{ bin }}-altinstall:
5454
- pkg: postgresql-server
5555
- require_in:
5656
- cmd: postgresql-cluster-prepared
57+
{%- if grains['saltversioninfo'] < [2018, 11, 0, 0] %}
5758
- retry:
5859
attempts: 2
5960
until: True
61+
{%- endif %}
6062
6163
{%- endfor %}
6264
{%- endif %}

0 commit comments

Comments
 (0)