-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.yml
114 lines (111 loc) · 3.17 KB
/
main.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
- name: openstack
hosts: openstack
become: true
pre_tasks:
- name: check ansible version
assert:
that:
- ansible_version.full >= "{{ansible_version_min}}"
fail_msg: "ansible version {{ansible_version.full}} must be {{ansible_version_min}} or newer"
success_msg: "ansible version is compatible"
run_once: true
tags:
- always
- name: set management_ipv4
set_fact:
management_ipv4: "{{hostvars[inventory_hostname]['ansible_' + management_interface].ipv4}}"
tags:
- always
roles:
# environment services
- role: bootstrap
tags: environment,bootstrap
- role: ca
tags: environment,ca
- role: ntp
tags: environment,ntp
- role: mariadb
tags: environment,db,mariadb,mysql
when: is_controller_node
- role: memcached
tags: environment,memcached
when: is_controller_node
# - role: etcd
# tags: environment,etcd
# when: is_controller_node
- role: httpd
tags: environment,httpd
when: is_controller_node
- role: rabbitmq
tags: environment,rabbit,rabbitmq
when: is_controller_node
- role: traefik
tags: environment,traefik,lb
when: is_controller_node
and traefik_enabled | default(false)
# openstack services
- role: keystone
tags: openstack,keystone
when: is_controller_node
- role: glance
tags: openstack,glance
when: is_controller_node
- role: placement
tags: openstack,placement
when: is_controller_node
- role: nova
tags: openstack,nova
when: is_controller_node
or is_compute_node
- role: neutron
tags: openstack,neutron
when: is_controller_node
or is_network_node
or is_compute_node
- role: cinder
tags: openstack,cinder
when: is_controller_node
or is_compute_node
or is_block_storage_node
- role: heat
tags: openstack,heat
when: is_controller_node
- role: horizon
tags: openstack,horizon
when: is_controller_node
# optional openstack services
- role: magnum
tags: openstack,magnum
when: is_controller_node
and magnum_enabled | default(false)
- role: designate
tags: openstack,designate
when: is_controller_node
and designate_enabled | default(false)
- role: octavia
tags: openstack,octavia
when: (is_controller_node
or is_network_node)
and octavia_enabled | default(false)
- role: trove
tags: openstack,trove
when: is_controller_node
and trove_enabled | default(false)
- role: swift-ceph
tags: openstack,swift-ceph
when: is_controller_node
and swift_ceph_enabled | default(false)
# logging services
- role: loki
tags: logging,loki
when: is_controller_node
- role: fluentd
tags: logging,fluentd
- role: prometheus
tags: monitoring,prometheus
when: is_controller_node
- role: node-exporter
tags: monitoring,node-exporter
- role: grafana
tags: monitoring,grafana
when: is_controller_node