
This commit splits the Browbeat CI out by workload by passing in different playbooks, mostly just makes a different playbook for yoda because why deploy an overcloud before testing yoda? makes no sense and adds another couple of hours to the test. We also add an integration test playbook but that doesn't seriously diverge from the normal testing playbook at the moment Change-Id: Ic83412cac668cbf7d2fb6d8d86c2c86eb354c9dd
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
---
|
|
#Collect and template Metadata about the deployment
|
|
|
|
- name: Get Overcloud Image Build date
|
|
shell: "curl -s -v -X HEAD {{ undercloud_image_url }} 2>&1 | grep '^< Date:'"
|
|
register: build
|
|
ignore_errors: true
|
|
|
|
- name: Determine if docker is running
|
|
shell: docker ps | wc -l
|
|
register: docker_ps
|
|
delegate_to: overcloud-controller-0
|
|
when: "'overcloud' in group_names"
|
|
ignore_errors: True
|
|
|
|
- name: Set var for container deployment
|
|
set_fact:
|
|
containers: True
|
|
when: docker_ps.stdout|int > 1
|
|
ignore_errors: True
|
|
|
|
- name: Set fact for non-container deployment
|
|
set_fact:
|
|
containers: False
|
|
when: docker_ps.stdout|int < 2
|
|
ignore_errors: True
|
|
|
|
- name: Count nodes in Instackenv.json
|
|
shell: "grep pm_addr {{instackenv}} | wc -l"
|
|
register: num_nodes
|
|
|
|
- name: Make sure the results directory exists
|
|
file: "path={{ ansible_env.HOME }}/browbeat/metadata state=directory"
|
|
|
|
- name: Template Deployment Metadata
|
|
template:
|
|
"src=version.json.j2 \
|
|
dest={{ ansible_env.HOME }}/browbeat/metadata/version.json"
|