Skip to content

Commit 080bff7

Browse files
Always retry alternatives.install state
1 parent 58c36c5 commit 080bff7

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

postgres/client/init.sls

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ postgresql-{{ bin }}-altinstall:
3939
- onlyif: test -f {{ path }}
4040
- require:
4141
- pkg: postgresql-client-libs
42+
- retry:
43+
attempts: 2
44+
until: True
4245
4346
{%- endfor %}
4447
{%- endif %}

postgres/dev/init.sls

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ postgresql-{{ bin }}-altinstall:
2727
- onlyif: alternatives --display {{ bin }}
2828
{% else %}
2929
- onlyif: test -f {{ path }}
30+
- retry:
31+
attempts: 2
32+
until: True
3033
{% endif %}
3134
3235
{%- endfor %}

postgres/server/init.sls

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ postgresql-{{ bin }}-altinstall:
5454
- pkg: postgresql-server
5555
- require_in:
5656
- cmd: postgresql-cluster-prepared
57+
- retry:
58+
attempts: 2
59+
until: True
5760
5861
{%- endfor %}
5962
{%- endif %}

0 commit comments

Comments
 (0)