-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy.yml
74 lines (68 loc) · 1.76 KB
/
deploy.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
---
#
# Playbook for deploying Tripleo OpenStack for OpenShift in ScaleLab
#
# Do not gather facts for rebuilding undercloud
- name: Rebuild Undercloud
hosts: undercloud
gather_facts: false
remote_user: root
vars_files:
- vars/data.yml
- vars/deploy.yml
roles:
- validate_vars
- rebuild-undercloud
- name: Run initial setup tasks
hosts: undercloud
gather_facts: true
remote_user: root
vars_files:
- vars/data.yml
- vars/deploy.yml
pre_tasks:
- name: Get timestamp
command: date -u +%Y%m%d-%H%M%S
delegate_to: localhost
register: current_ts
- name: Set remote log directory
set_fact:
log_dir: /home/stack/alderaan-deploy/log/{{current_ts.stdout}}
- name: Set local Artifact Directory
set_fact:
artifact_dir: artifacts/{{version}}-alderaan-{{current_ts.stdout}}
- name: Ensure artifact directory exists
file:
path: "{{artifact_dir}}"
state: directory
delegate_to: localhost
roles:
- name: update-motd
vars:
update_motd: "Installing OpenStack {{rhos_release}} ({{build}}) Undercloud"
- undercloud-prepare-host
- name: Run OSP install
hosts: undercloud
gather_facts: false
remote_user: stack
vars_files:
- vars/data.yml
- vars/deploy.yml
roles:
- undercloud-install
- name: update-motd
vars:
update_motd: Performing introspection tasks
- undercloud-introspection
- overcloud-prepare-templates
- name: update-motd
vars:
update_motd: Deploying OpenStack Overcloud
- overcloud-deploy
- name: update-motd
vars:
update_motd: Applying post deploy modifications
- post-deploy
- name: update-motd
vars:
update_motd: OpenStack deploy complete