Skip to content

Commit

Permalink
Always retry alternatives.install state
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Apr 14, 2019
1 parent 58c36c5 commit 080bff7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions postgres/client/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ postgresql-{{ bin }}-altinstall:
- onlyif: test -f {{ path }}
- require:
- pkg: postgresql-client-libs
- retry:
attempts: 2
until: True
{%- endfor %}
{%- endif %}
3 changes: 3 additions & 0 deletions postgres/dev/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ postgresql-{{ bin }}-altinstall:
- onlyif: alternatives --display {{ bin }}
{% else %}
- onlyif: test -f {{ path }}
- retry:
attempts: 2
until: True
{% endif %}
{%- endfor %}
Expand Down
3 changes: 3 additions & 0 deletions postgres/server/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ postgresql-{{ bin }}-altinstall:
- pkg: postgresql-server
- require_in:
- cmd: postgresql-cluster-prepared
- retry:
attempts: 2
until: True
{%- endfor %}
{%- endif %}
Expand Down

0 comments on commit 080bff7

Please sign in to comment.