forked from feli5/ocp-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3_add.yml
49 lines (43 loc) · 928 Bytes
/
3_add.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
---
# This playbook add OpenStack Nodes in this site.
# Apply common configuration to all hosts
- hosts: all
roles:
- common
- hosts: controller1
tasks:
- name: get service tenant
keystone_user:
endpoint: "{{ keystone_admin_url_protocol }}://{{ keystone_admin_url_vip }}:{{ keystone_admin_url_port }}/v2.0"
token: "{{ keystone_admin_token }}"
tenant: services
tenant_description: "Services Tenant"
state: present
register: service_tenant_id
# Install Controller Nodes
# Not supported
# TBD
#- hosts: haproxy
# roles:
# - haproxy
#- hosts: controller
# roles:
# - keystone
# - glance
# - nova_controller
# - neutron_controller
# - horizon
# Install Network Nodes
#- hosts: network
# roles:
# - neutron_network
# Install Compute Nodes
- hosts: compute
roles:
- nova_compute
- neutron_compute
- patch_compute
# Patch
#- hosts: controller
# roles:
# - patch