Skip to content

Commit

Permalink
Merge pull request #16 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 0f639c2 + 1b9d4da commit bf4b63c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sqlplus/linuxenv.sls
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,19 @@ sqlplus-home-alt-install:
- priority: {{ sqlplus.linux.altpriority }}
- require:
- file: sqlplus-home-alt-install
- retry:
attempts: 2
until: True
sqlplus-home-alt-set:
alternatives.set:
- name: sqlplus-home
- path: {{ sqlplus.oracle.realhome }}
- onchanges:
- alternatives: sqlplus-home-alt-install
- retry:
attempts: 2
until: True
# Add to alternatives system
sqlplus-alt-install:
Expand All @@ -92,13 +98,19 @@ sqlplus-alt-install:
- require:
- alternatives: sqlplus-home-alt-install
- alternatives: sqlplus-home-alt-set
- retry:
attempts: 2
until: True
sqlplus-alt-set:
alternatives.set:
- name: sqlplus
- path: {{ sqlplus.oracle.realcmd }}
- onchanges:
- alternatives: sqlplus-alt-install
- retry:
attempts: 2
until: True
{% endif %}
{% endif %}
Expand Down

0 comments on commit bf4b63c

Please sign in to comment.