Skip to content

Commit

Permalink
Merge pull request #22 from noelmcloughlin/fixes
Browse files Browse the repository at this point in the history
 Always retry alternatives.install state
  • Loading branch information
aboe76 authored Apr 15, 2019
2 parents bdf90bf + 748d343 commit 3f8eaf6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sqldeveloper/linuxenv.sls
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,19 @@ sqldeveloper-home-alt-install:
- priority: {{ sqldeveloper.linux.altpriority }}
- require:
- file: sqldeveloper-home-alt-install
- retry:
attempts: 2
until: True
sqldeveloper-home-alt-set:
alternatives.set:
- name: sqldeveloper-home
- path: {{ sqldeveloper.oracle.realhome }}
- onchanges:
- alternatives: sqldeveloper-home-alt-install
- retry:
attempts: 2
until: True
# Add to alternatives system
sqldeveloper-alt-install:
Expand All @@ -67,13 +73,19 @@ sqldeveloper-alt-install:
- require:
- alternatives: sqldeveloper-home-alt-install
- alternatives: sqldeveloper-home-alt-set
- retry:
attempts: 2
until: True
sqldeveloper-alt-set:
alternatives.set:
- name: sqldeveloper
- path: {{ sqldeveloper.oracle.realcmd }}
- onchanges:
- alternatives: sqldeveloper-alt-install
- retry:
attempts: 2
until: True
{% endif %}
{% endif %}
Expand Down

0 comments on commit 3f8eaf6

Please sign in to comment.