Skip to content

Commit 589188f

Browse files
committed
Move 'boot wait' timeout to immediately after cluster creation
This timeout is more useful here, as additional 'service' instances take time to create
1 parent de9ab17 commit 589188f

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

roles/influxdb_1x_platform/tasks/create_cluster.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,16 @@
192192
ansible.builtin.wait_for:
193193
timeout: "{{ __influxdb1x_platform_remaining_wait }}"
194194

195+
- name: Create | Wait for boot process to finish
196+
vars:
197+
__influxdb1x_boot_timeout_max: >-
198+
{{
199+
__influxdb1x_platforms | map(attribute='boot_wait_seconds') | max
200+
}}
201+
when: __influxdb1x_boot_timeout_max | int > 0
202+
ansible.builtin.pause:
203+
seconds: "{{ __influxdb1x_boot_timeout_max | int }}"
204+
195205
- name: Create | Collect cluster instance EC2 data
196206
ansible.builtin.include_tasks: "{{ role_path }}/tasks/collect_ec2_data.yml"
197207

roles/influxdb_1x_platform/tasks/provision.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,3 @@
111111
ansible.builtin.async_status:
112112
jid: "{{ __influxdb1x_platform_async_job.ansible_job_id }}"
113113
mode: cleanup
114-
115-
# TODO: Add an actual check here instead of only waiting
116-
- name: Provision | Wait for boot process to finish
117-
vars:
118-
__influxdb1x_boot_timeout_max: >-
119-
{{
120-
__influxdb1x_platforms | map(attribute='boot_wait_seconds') | max
121-
}}
122-
when: __influxdb1x_boot_timeout_max | int > 0
123-
ansible.builtin.pause:
124-
seconds: "{{ __influxdb1x_boot_timeout_max | int }}"
125-

0 commit comments

Comments
 (0)