Merge pull request #258 from noelmcloughlin/fixes
Always retry alternatives.install state
This commit is contained in:
@@ -39,6 +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 %}
|
||||
|
||||
@@ -23,11 +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 }}
|
||||
{% endif %}
|
||||
{%- if grains['saltversioninfo'] < [2018, 11, 0, 0] %}
|
||||
- retry:
|
||||
attempts: 2
|
||||
until: True
|
||||
{%- endif %}
|
||||
|
||||
{%- endfor %}
|
||||
{%- endif %}
|
||||
|
||||
@@ -54,6 +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 %}
|
||||
|
||||
Reference in New Issue
Block a user