-
Notifications
You must be signed in to change notification settings - Fork 105
/
deploy-edpm.yml
89 lines (74 loc) · 2.51 KB
/
deploy-edpm.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
# Entry point for the CI Framework tool.
# Running by this playbook, and providing the needed information, you will
# be able to deploy various scenarios based on EDPM.
# Note that this playbook *must* be called from within
# openstack-k8s-operators/install_yaml repository in order to leverage its
# own methods.
- name: Remove status flag
hosts: "{{ cifmw_target_host | default('localhost') }}"
tasks:
- name: Delete success flag if exists
ansible.builtin.file:
path: "{{ ansible_user_dir }}/cifmw-success"
state: absent
- name: Inherit from parent scenarios if needed
ansible.builtin.include_tasks:
file: "ci/playbooks/tasks/inherit_parent_scenario.yml"
- name: Bootstrap step
ansible.builtin.import_playbook: playbooks/01-bootstrap.yml
- name: Import infra entrypoint playbook
ansible.builtin.import_playbook: playbooks/02-infra.yml
tags:
- infra
- name: Import package build playbook
ansible.builtin.import_playbook: playbooks/03-build-packages.yml
tags:
- build-packages
- name: Import containers build playbook
ansible.builtin.import_playbook: playbooks/04-build-containers.yml
tags:
- build-containers
- name: Import operators build playbook
ansible.builtin.import_playbook: playbooks/05-build-operators.yml
tags:
- build-operators
- name: Import deploy edpm playbook
ansible.builtin.import_playbook: playbooks/06-deploy-edpm.yml
tags:
- edpm
- name: Import VA deployment playbook
ansible.builtin.import_playbook: playbooks/06-deploy-architecture.yml
tags:
- edpm
- name: Import admin setup related playbook
ansible.builtin.import_playbook: playbooks/07-admin-setup.yml
tags:
- admin-setup
- name: Import run test playbook
ansible.builtin.import_playbook: playbooks/08-run-tests.yml
vars:
pre_tests: "{{ (lookup('vars', 'pre_tempest', default=[])) }}"
post_tests: "{{ (lookup('vars', 'post_tempest', default=[])) }}"
tags:
- run-tests
- name: Run compliance tests
ansible.builtin.import_playbook: playbooks/09-compliance.yml
tags:
- compliance
- name: Run log related tasks
ansible.builtin.import_playbook: playbooks/98-pre-end.yml
tags:
- pre-end
- name: Inject status flag
hosts: "{{ cifmw_target_host | default('localhost') }}"
tasks:
- name: Inject success flag
ansible.builtin.file:
path: "{{ ansible_user_dir }}/cifmw-success"
state: touch
mode: "0644"
- name: Run log related tasks
ansible.builtin.import_playbook: playbooks/99-logs.yml
tags:
- logs