-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.yml
62 lines (55 loc) · 1.74 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
- name: Test openstack with tempest
hosts: tester
gather_facts: yes
any_errors_fatal: true
vars:
deployer_input: "~/ir-tempest-deployer-input.conf"
tasks:
- name: Include virtual environment vars
include_vars: "vars/venv.yml"
tags:
- always
- include_role:
name: version-discovery
vars:
discovery_types:
- rhos_release_file
- nova
delegate_to: "{{ groups.controller[0] }}"
when: test.openstack.version is not defined
tags:
- always
- debug:
msg: "Overcloud's OpenStack version that has been auto discovered is {{ overcloud_version }}"
when: overcloud_version is defined
- name: Prepare tempest files
import_tasks: tasks/pre/main.yml
tags:
- pre
- name: Setup tempest
import_tasks: "tasks/setup/main.yml"
tags:
- setup
- name: Customize guest image
import_tasks: "tasks/image/main.yml"
tags: image
when:
- test.image is defined and test.image
- test.images is defined and test.images.packages
- name: Configure tempest
import_tasks: "tasks/configure/main.yml"
tags:
- configure
when: test.tempest.config
- name: Run tempest test suites
include_tasks: "tasks/run_suite.yml"
with_items: "{{ test.tests }}"
loop_control:
loop_var: test_suite_file
tags:
- run
- name: Collect Ansible facts
import_tasks: 'tasks/collect-ansible-facts.yml'
when: test.collect.ansible.facts|default(False)
tags: collect-ansible-facts
ignore_errors: True