-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsite.yml
136 lines (118 loc) · 2.81 KB
/
site.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
- name: prepare
hosts: all
tags: prepare
roles:
- prepare
environment: "{{ openstack_env }}"
- name: ha
hosts: controller
tags: ha
roles:
- { role: ha, when: "{{ groups['controller']|count > 1 }}" }
environment: "{{ openstack_env }}"
- name: install database
hosts: database
tags: database
roles:
- database
environment: "{{ openstack_env }}"
- name: install keystone identity service
hosts: keystone
tags: keystone
roles:
- keystone
environment: "{{ openstack_env }}"
- name: install glance image service
hosts: glance
tags: glance
roles:
- glance
environment: "{{ openstack_env }}"
- name: install cinder controller service
hosts: cinder-controller
tags: cinder-controller
roles:
- { role: cinder, controller: true }
environment: "{{ openstack_env }}"
- name: install cinder storage service
hosts: cinder
tags: cinder
roles:
- cinder
environment: "{{ openstack_env }}"
- name: install nova controller service
hosts: nova-controller
tags: nova-controller
roles:
- { role: nova, controller: true }
environment: "{{ openstack_env }}"
- name: install nova compute service
hosts: nova
tags: nova
roles:
- nova
environment: "{{ openstack_env }}"
- name: discover compute hosts
hosts: nova-controller
tags: nova-controller
tasks:
- command: nova-manage cell_v2 discover_hosts --verbose
become_user: nova
become: true
run_once: true
when: not ansible_check_mode
environment: "{{ openstack_env }}"
- name: install ceilometer controller service
hosts: ceilometer-controller
tags: ceilometer-controller
roles:
- { role: ceilometer, controller: true }
environment: "{{ openstack_env }}"
- name: install ceilometer service
hosts: ceilometer-nova
tags: ceilometer-nova
roles:
- ceilometer
environment: "{{ openstack_env }}"
- name: install neutron controller service
hosts: neutron-controller
tags: neutron-controller
roles:
- { role: neutron, controller: true }
environment: "{{ openstack_env }}"
- name: install neutron service
hosts: neutron
tags: neutron
roles:
- neutron
environment: "{{ openstack_env }}"
- name: install heat orchestration service
hosts: heat
tags: heat
roles:
- heat
environment: "{{ openstack_env }}"
- name: install swift controller storage
hosts: swift-controller
tags: swift-controller
roles:
- { role: swift, controller: true }
environment: "{{ openstack_env }}"
- name: install swift object storage
hosts: swift
tags: swift
roles:
- swift
environment: "{{ openstack_env }}"
- name: install horizon dashboard
hosts: horizon
tags: horizon
roles:
- horizon
environment: "{{ openstack_env }}"
- name: run tests
hosts: controller
tags: test
roles:
- tests
environment: "{{ openstack_env }}"