Skip to content

Commit

Permalink
Implement review comment (conditional)
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Apr 15, 2019
1 parent 080bff7 commit f3d8830
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions postgres/client/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ postgresql-{{ bin }}-altinstall:
- onlyif: test -f {{ path }}
- require:
- pkg: postgresql-client-libs
{%- if grains['saltversioninfo'] < [2018, 11, 0, 0] %}
- retry:
attempts: 2
until: True
{%- endif %}
{%- endfor %}
{%- endif %}
6 changes: 2 additions & 4 deletions postgres/dev/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ postgresql-{{ bin }}-altinstall:
- link: {{ salt['file.join']('/usr/bin', bin) }}
- path: {{ path }}
- priority: {{ postgres.linux.altpriority }}
{% if grains.os in ('Fedora', 'CentOS',) %} {# bypass bug #}
- onlyif: alternatives --display {{ bin }}
{% else %}
- onlyif: test -f {{ path }}
{%- if grains['saltversioninfo'] < [2018, 11, 0, 0] %}
- retry:
attempts: 2
until: True
{% endif %}
{%- endif %}
{%- endfor %}
{%- endif %}
Expand Down
2 changes: 2 additions & 0 deletions postgres/server/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ postgresql-{{ bin }}-altinstall:
- pkg: postgresql-server
- require_in:
- cmd: postgresql-cluster-prepared
{%- if grains['saltversioninfo'] < [2018, 11, 0, 0] %}
- retry:
attempts: 2
until: True
{%- endif %}
{%- endfor %}
{%- endif %}
Expand Down

0 comments on commit f3d8830

Please sign in to comment.