Skip to content

Commit

Permalink
Merge pull request #3 from hpcloud-mon/feature/cluster-issue
Browse files Browse the repository at this point in the history
Added a 2nd restart as sometimes workers don't join the cluster
  • Loading branch information
mhoppal committed Mar 18, 2015
2 parents b40d818 + b66c943 commit 2cc756d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@

- name: wait for influxdb port
wait_for: port={{influxdb_client_port}} host={{influxdb_bind_address |replace('0.0.0.0', '127.0.0.1')}} state=started timeout=30
ignore_errors: yes
register: first_wait

- name: restart if clustering failed to connect
service: name=influxdb state=restarted
when: first_wait|failed

- name: 2nd wait for influxdb port
wait_for: port={{influxdb_client_port}} host={{influxdb_bind_address |replace('0.0.0.0', '127.0.0.1')}} state=started timeout=30
when: first_wait|failed

0 comments on commit 2cc756d

Please sign in to comment.