Skip to content

Commit ee42287

Browse files
increase retries
1 parent 6428875 commit ee42287

File tree

13 files changed

+17
-17
lines changed

13 files changed

+17
-17
lines changed

playbooks/roles/bootstrap-console-deploy/tasks/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
shell: "curl -s console.lain/api/v1/apps/{{ app }}/ | python -c \"import json, sys; print json.load(sys.stdin)['app']['procs'][0]['pods'][0]['containerid']\""
2323
register: container_id
2424
until: container_id|success
25-
retries: 5
25+
retries: 50
2626
delay: 5
2727
changed_when: False
2828

playbooks/roles/bootstrap-registry-push/tasks/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
command: curl -m 2 http://registry.lain/v2/
33
register: result
44
until: "result.stdout.startswith('{')"
5-
retries: 5
5+
retries: 50
66
delay: 5
77
changed_when: False
88

playbooks/roles/bootstrap-webrouter-stop/tasks/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
shell: "curl -s registry.lain/v2/"
2424
register: result
2525
until: result|success
26-
retries: 5
26+
retries: 50
2727
delay: 5
2828
changed_when: False

playbooks/roles/console-deploy/tasks/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
shell: "curl -f http://console.lain/api/v1/repos/"
99
register: console_ready
1010
until: console_ready.rc == 0
11-
retries: 5
11+
retries: 50
1212
delay: 5
1313
changed_when: False
1414
when: result|failed
@@ -35,6 +35,6 @@
3535
shell: "curl -s -H \"access-token: {{ access_token|default('unknown') }}\" console.lain/api/v1/apps/{{ app }}/ | python -c \"import json, sys; print json.load(sys.stdin)['app']['procs'][0]['pods'][0]['containerid']\""
3636
register: container_id
3737
until: container_id|success
38-
retries: 5
38+
retries: 50
3939
delay: 5
4040
changed_when: False

playbooks/roles/docker-version/tasks/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
command: docker version -f "\{\{.Server.Version\}\}"
6666
register: current_docker_version
6767
until: current_docker_version.stdout
68-
retries: 5
68+
retries: 50
6969
delay: 5
7070
changed_when: False
7171

playbooks/roles/docker/tasks/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
command: docker version -f "\{\{.Server.Version\}\}"
5555
register: current_docker_version
5656
until: current_docker_version.stdout
57-
retries: 5
57+
retries: 50
5858
delay: 5
5959
changed_when: False
6060

playbooks/roles/etcd/tasks/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
shell: etcdctl cluster-health | grep "cluster is healthy"
3333
register: health_result
3434
until: health_result|success
35-
retries: 5
35+
retries: 50
3636
delay: 5
3737
changed_when: False
3838

3939
- name: wait for etcd is ready to write
4040
command: etcdctl set /lain/test test
4141
register: result
4242
until: result|success
43-
retries: 5
43+
retries: 50
4444
delay: 5
4545
changed_when: False
4646

playbooks/roles/moosefs/tasks/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
command: mount /mfs
2929
register: mount_result
3030
until: mount_result|success
31-
retries: 5
31+
retries: 50
3232
delay: 5
3333
when: result|failed

playbooks/roles/rebellion/tasks/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
shell: "docker ps | grep rebellion.service"
1616
register: result
1717
until: result|success
18-
retries: 5
18+
retries: 50
1919
delay: 5
2020
changed_when: False
2121

2222
- name: deploy rsyslog config
2323
template: src=10-docker-rsyslog.conf.j2 dest=/etc/rsyslog.d/10-docker-rsyslog.conf
2424
notify:
25-
- restart rsyslog
25+
- restart rsyslog

playbooks/roles/registry/tasks/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
command: curl -m 2 http://registry.lain/v2/
77
register: result
88
until: "result.stdout.startswith('{')"
9-
retries: 5
9+
retries: 50
1010
delay: 5
1111
changed_when: False
1212

0 commit comments

Comments
 (0)