Skip to content

Commit

Permalink
Merge pull request #285 from rickettmwork/master
Browse files Browse the repository at this point in the history
Make deploy check retries configurable
  • Loading branch information
websterc87 authored Jul 31, 2023
2 parents 82ba1d1 + 9ee8102 commit ea4273d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions ansible/roles/fyrevm_provision/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ clusterName: "{{ stackName|default(clusterName_prefix+'-'+ (999999|random)|strin
ssh_public_key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/id_rsa.pub') }}"

# How many times to retry waiting for an ssh connection after provisioning
fyre_sshRetries: 250
# The check is performed every 5 seconds, so the default is 30 minutes
fyre_sshRetries: 360
# How many times to wait for a fyre request to complete
fyre_requestRetries: 999
# The check is performed every 5 seconds, so the default is 1 hour
fyre_requestRetries: 720
# How many times to check for deployed status after provisioning a cluster
# The check is performed every 20 seconds, so the default equates to 2 hours
fyre_deployCheckRetries: 360

#Default Specs
fyre_platform: "x"
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/fyrevm_provision/tasks/fyrevm_provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
changed_when: false
register: clusterStatus
until: (clusterStatus.status == 200) and clusterStatus.json is defined and (clusterStatus.json[clusterName][0].status == "deployed" or clusterStatus.json[clusterName][0].status == "error")
retries: 600
retries: "{{ fyre_deployCheckRetries }}"
delay: 20

- name: check for error status after loop check
Expand Down

0 comments on commit ea4273d

Please sign in to comment.