multi-host isolated heartbeat w tower-isolated check

* use tower-expect command to determine job status when running
  the isolated heartbeat playbook
* grok JSON output of playbook to obtain result information
* run playbook against multiple isolated hosts at the same time
  (addresses scalability concerns)
This commit is contained in:
AlanCoding
2017-06-19 12:13:03 -04:00
parent f371dd71b2
commit 40287d8e78
9 changed files with 84 additions and 110 deletions

View File

@@ -1,8 +1,4 @@
---
# The following variables will be set by the runner of this playbook:
# job_id_cutoff: <pk>
- hosts: all
gather_facts: false
@@ -10,11 +6,6 @@
- name: Get capacity of the instance
tower_capacity:
register: result
- name: Print capacity in escaped string to scrape
debug: msg="{{ start_delimiter|default('') }}{{ result['capacity'] }}{{ end_delimiter|default('') }}"
- name: Remove any stale temporary files
tower_isolated_cleanup:
cutoff_pk: "{{ cutoff_pk | default(0) }}"