Skip to content

Commit

Permalink
Updating healthcheck syntax and making retries NOT configurable
Browse files Browse the repository at this point in the history
due to ansible bug ansible/ansible#5865
  • Loading branch information
Rafe Colton committed Dec 10, 2014
1 parent 7a39ba4 commit ebb684e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ modcloth_app_healthcheck_host: "{{ ansible_fqdn }}"
modcloth_app_healthcheck_url: "{{ modcloth_app_healthcheck_scheme }}://{{ modcloth_app_healthcheck_host }}:{{ modcloth_app_healthcheck_port }}/{{ modcloth_app_healthcheck_path }}"
modcloth_app_healthcheck_timeout: 1
modcloth_app_healthcheck_delay: 1
modcloth_app_healthcheck_retries: 30
# modcloth_app_healthcheck_retries: 30 # currently not configurable due to https://github.com/ansible/ansible/issues/5865
```

## External Dependency Variables
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ modcloth_app_healthcheck_host: "{{ ansible_fqdn }}"
modcloth_app_healthcheck_url: "{{ modcloth_app_healthcheck_scheme }}://{{ modcloth_app_healthcheck_host }}:{{ modcloth_app_healthcheck_port }}/{{ modcloth_app_healthcheck_path }}"
modcloth_app_healthcheck_timeout: 1
modcloth_app_healthcheck_delay: 1
modcloth_app_healthcheck_retries: 30
# modcloth_app_healthcheck_retries: 30 # currently not configurable due to https://github.com/ansible/ansible/issues/5865

# External dependency variables

Expand Down
6 changes: 3 additions & 3 deletions tasks/wait-healthcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
url: "{{ modcloth_app_healthcheck_url }}"
timeout: "{{ modcloth_app_healthcheck_timeout }}"
register: result
retries: "{{ modcloth_app_healthcheck_retries }}"
delay: "{{ modcloth_app_healthcheck_delay }}"
until: result.status < 400 and result.status >= 200
retries: 30 # currently not configurable due to https://github.com/ansible/ansible/issues/5865
delay: "{{ modcloth_app_healthcheck_delay|int }}"
until: result.status is defined and result.status < 400 and result.status >= 200
when: modcloth_app_healthcheck_enabled|bool

0 comments on commit ebb684e

Please sign in to comment.