forked from openstack-k8s-operators/ci-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-edpm.yml
52 lines (41 loc) · 1.87 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
---
# 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: Bootstrap step
ansible.builtin.import_playbook: ci_framework/playbooks/01-bootstrap.yml
- name: Import infra entrypoint playbook
ansible.builtin.import_playbook: ci_framework/playbooks/02-infra.yml
- name: Import package build playbook
ansible.builtin.import_playbook: ci_framework/playbooks/03-build-packages.yml
- name: Import containers build playbook
ansible.builtin.import_playbook: ci_framework/playbooks/04-build-containers.yml
- name: Import operators build playbook
ansible.builtin.import_playbook: ci_framework/playbooks/05-build-operators.yml
- name: Import deploy edpm playbook
ansible.builtin.import_playbook: ci_framework/playbooks/06-deploy-edpm.yml
- name: Import admin setup related playbook
ansible.builtin.import_playbook: ci_framework/playbooks/07-admin-setup.yml
- name: Import run test playbook
ansible.builtin.import_playbook: ci_framework/playbooks/08-run-tests.yml
when: cifmw_run_tests | default('false') | bool
- 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
- name: Run log related tasks
ansible.builtin.import_playbook: ci_framework/playbooks/99-logs.yml
when: not zuul_log_collection | default ('false') | bool