Skip to content

Commit bde1872

Browse files
committed
Add boot wait flag, define defaults
Specify 'influxdb1x_platform_skip_wait: true' to ignore configured timeout values
1 parent 589188f commit bde1872

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

roles/influxdb_1x_platform/defaults/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
# Whether this platform should be deployed (present/absent)
1212
influxdb1x_platform_state: "{{ platform_target_state | default('present') }}"
1313

14+
# Ensure that EC2 instances are set to this state
15+
# - Leave empty for default behavior
16+
influxdb1x_platform_desired_ec2_instance_state:
17+
18+
# Skip waiting for the platform to be ready
19+
influxdb1x_platform_skip_wait: false
20+
1421
# Molecule platform configuration (list of dictionaries)
1522
influxdb1x_platform_definition: >-
1623
{{

roles/influxdb_1x_platform/tasks/create_cluster.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@
189189
{{ __influxdb1x_platforms_pending }}
190190
when:
191191
- __influxdb1x_platforms_pending_timeout | length > 0
192+
- influxdb1x_platform_skip_wait | bool is false
192193
ansible.builtin.wait_for:
193194
timeout: "{{ __influxdb1x_platform_remaining_wait }}"
194195

@@ -198,7 +199,9 @@
198199
{{
199200
__influxdb1x_platforms | map(attribute='boot_wait_seconds') | max
200201
}}
201-
when: __influxdb1x_boot_timeout_max | int > 0
202+
when:
203+
- __influxdb1x_boot_timeout_max | int > 0
204+
- influxdb1x_platform_skip_wait | bool is false
202205
ansible.builtin.pause:
203206
seconds: "{{ __influxdb1x_boot_timeout_max | int }}"
204207

0 commit comments

Comments
 (0)