-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yml
51 lines (46 loc) · 1.43 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
- name: Run rally tester
hosts: tester
gather_facts: yes
any_errors_fatal: yes
vars_files:
- "vars/setup/{{ test.setup }}.yml"
- "{{ test.image }}"
vars:
default_config:
bin: "rally"
dir: "{{ ansible_user_dir }}/rally_repo"
path: "{{ ansible_user_dir }}/rally"
outputdir: /tmp/rally_output
git:
plugins:
dir: "{{ ansible_user_dir }}/.rally/plugins"
revision: HEAD
python_ver: "{{ (overcloud_version|openstack_release >= 15) | ternary('python3', 'python') }}"
rally: "{{ default_config | combine(config, recursive=True) }}"
tasks:
- include_role:
name: version-discovery
vars:
discovery_types:
- rhos_release_file
- nova
delegate_to: "{{ groups.controller[0] }}"
- debug:
msg: "Overcloud's OpenStack version that has been auto discovered is {{ overcloud_version }}"
when: overcloud_version is defined
- name: Prepare rally files
include_tasks: tasks/pre/main.yml
tags:
- pre
- name: Setup rally
include_tasks: tasks/setup/main.yml
tags:
- setup
- name: Run rally
include_tasks: tasks/run.yml
tags:
- run
- name: Generate report
include_tasks: tasks/post/report.yml
tags:
- post