-
Notifications
You must be signed in to change notification settings - Fork 0
/
neutron-deploy.yml
190 lines (158 loc) · 4.96 KB
/
neutron-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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
#
# (c) Copyright 2015,2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
- hosts: localhost
roles:
- neutron-common
tasks:
- include: roles/neutron-common/tasks/_getkey.yml
- hosts: "NEU-DHCP:NEU-L3A:NEU-LBAV*:NEU-MDA:NEU-OVS:\
NEU-SVR:NEU-VPNA:NEU-L2GWA:NEU-IFBLXA:NEU-SRIOV:!NEU-OVSVAPP"
roles:
- neutron-common
tasks:
- include: roles/neutron-common/tasks/install.yml
- include: roles/neutron-common/tasks/configure.yml
- include: roles/neutron-common/tasks/start.yml
- hosts: NEU-OVSVAPP
serial: 3
roles:
- neutron-common
tasks:
- include: roles/neutron-common/tasks/install.yml
- include: roles/neutron-common/tasks/configure.yml
- include: roles/neutron-common/tasks/start.yml
- hosts: NEU-SVR
roles:
- neutron-server
tasks:
- include: roles/neutron-server/tasks/install.yml
- hosts: NEU-SVR--first-member
roles:
- neutron-post-configure
tasks:
- include: roles/neutron-post-configure/tasks/db_configure.yml
- include: roles/neutron-post-configure/tasks/ovsvapp_db_configure.yml
- hosts: NEU-SVR
roles:
- neutron-post-configure
tasks:
- include: roles/neutron-post-configure/tasks/keystone_conf.yml
ansible_python_interpreter:
"{{ KEY_CLI.vars.keystone_client_python_interpreter }}"
- hosts: NEU-SVR
roles:
- neutron-common
- neutron-server
tasks:
- include: roles/neutron-server/tasks/configure.yml
- include: roles/neutron-server/tasks/start.yml
- hosts: NEU-OVS
roles:
- neutron-common
- neutron-openvswitch-agent
tasks:
- include: roles/neutron-openvswitch-agent/tasks/install.yml
- include: roles/neutron-openvswitch-agent/tasks/configure.yml
- include: roles/neutron-openvswitch-agent/tasks/start.yml
- hosts: NEU-OVSVAPP
serial: 3
roles:
- neutron-common
- neutron-ovsvapp-agent
tasks:
- include: roles/neutron-ovsvapp-agent/tasks/install.yml
- include: roles/neutron-ovsvapp-agent/tasks/configure.yml
- include: roles/neutron-ovsvapp-agent/tasks/start.yml
- hosts: NEU-DHCP
roles:
- neutron-common
- neutron-dhcp-agent
tasks:
- include: roles/neutron-dhcp-agent/tasks/install.yml
- hosts: NEU-DHCP
roles:
- neutron-common
- neutron-dhcp-agent
tasks:
- include: roles/neutron-dhcp-agent/tasks/configure.yml
- include: roles/neutron-dhcp-agent/tasks/start.yml
- hosts: NEU-MDA
roles:
- neutron-common
- neutron-metadata-agent
tasks:
- include: roles/neutron-metadata-agent/tasks/configure.yml
- include: roles/neutron-metadata-agent/tasks/start.yml
- hosts: NEU-L3A:NEU-VPNA
roles:
- neutron-common
- neutron-l3-agent
tasks:
- include: roles/neutron-l3-agent/tasks/install.yml
- include: roles/neutron-l3-agent/tasks/configure.yml
- include: roles/neutron-l3-agent/tasks/start.yml
- hosts: NEU-LBAV2
roles:
- neutron-common
- neutron-lbaasv2-agent
tasks:
- include: roles/neutron-lbaasv2-agent/tasks/install.yml
- include: roles/neutron-lbaasv2-agent/tasks/configure.yml
- include: roles/neutron-lbaasv2-agent/tasks/start.yml
- hosts: NEU-LBAV1
roles:
- neutron-common
- neutron-lbaas-agent
tasks:
- include: roles/neutron-lbaas-agent/tasks/install.yml
- include: roles/neutron-lbaas-agent/tasks/configure.yml
- include: roles/neutron-lbaas-agent/tasks/start.yml
- hosts: NEU-L2GWA
roles:
- neutron-common
- neutron-l2gateway-agent
tasks:
- include: roles/neutron-l2gateway-agent/tasks/install.yml
- include: roles/neutron-l2gateway-agent/tasks/configure.yml
- include: roles/neutron-l2gateway-agent/tasks/start.yml
- hosts: NEU-SRIOV
roles:
- neutron-common
- neutron-sriov-nic-agent
tasks:
- include: roles/neutron-sriov-nic-agent/tasks/install.yml
when: network_pci_pt_sriov_interfaces is defined
- include: roles/neutron-sriov-nic-agent/tasks/configure.yml
when: network_pci_pt_sriov_interfaces is defined
- include: roles/neutron-sriov-nic-agent/tasks/start.yml
when: network_pci_pt_sriov_interfaces is defined
- hosts: NEU-IFBLXA
roles:
- neutron-common
- neutron-infoblox-ipam-agt
tasks:
- include: roles/neutron-infoblox-ipam-agt/tasks/install.yml
- include: roles/neutron-infoblox-ipam-agt/tasks/configure.yml
- include: roles/neutron-infoblox-ipam-agt/tasks/start.yml
- hosts: NEU-SVR--first-member
roles:
- neutron-common
tasks:
- include: roles/neutron-common/tasks/provider_net_create.yml
# after everything is running, turn on monitoring
- include: neutron-configure-monasca.yml