blob: eb03f23e55ab1aab38b0794fd2e7a60e6d0ab25a [file] [log] [blame]
Tatyana Leontovichd34f4102018-04-03 17:49:24 +03001{% from 'virtual-offline-pike-ovs-dpdk/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'virtual-offline-pike-ovs-dpdk/underlay.yaml' import HOSTNAME_CTL01 with context %}
3{% from 'virtual-offline-pike-ovs-dpdk/underlay.yaml' import HOSTNAME_CTL02 with context %}
4{% from 'virtual-offline-pike-ovs-dpdk/underlay.yaml' import HOSTNAME_CTL03 with context %}
5{% from 'virtual-offline-pike-ovs-dpdk/underlay.yaml' import HOSTNAME_GTW01 with context %}
6{% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %}
7{% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %}
Tatyana Leontovicheae32052018-10-24 22:28:18 +03008{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'proposed') %}
Tatyana Leontovichd34f4102018-04-03 17:49:24 +03009# Install OpenStack control services
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +030010{% set DOMAIN_NAME = os_env('DOMAIN_NAME', 'virtual-offline-pike-ovs-dpdk') %}
Tatyana Leontovichbb29d1d2018-06-19 13:23:04 +030011{% import 'shared-backup-restore.yaml' as BACKUP with context %}
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +030012{% import 'shared-salt.yaml' as SHARED with context %}
Dennis Dmitriev4034db02018-08-26 21:50:13 +030013{% import 'shared-openstack.yaml' as SHARED_OPENSTACK with context %}
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +030014
sgudz62df2fc2018-10-09 12:26:19 +030015{{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE() }}
Tatyana Leontovichbb29d1d2018-06-19 13:23:04 +030016
Dennis Dmitriev4034db02018-08-26 21:50:13 +030017{{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }}
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030018
Dennis Dmitriev4034db02018-08-26 21:50:13 +030019{{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }}
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030020
Dennis Dmitriev4034db02018-08-26 21:50:13 +030021{{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER() }}
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030022
Dennis Dmitriev4034db02018-08-26 21:50:13 +030023{{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON() }}
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030024
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +030025# isntall designate
26- description: Install powerdns
27 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
28 -C 'I@powerdns:server' state.sls powerdns.server
29 node_name: {{ HOSTNAME_CFG01 }}
30 retry: {count: 1, delay: 5}
31 skip_fail: false
32
33- description: Install designate
34 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
35 -C 'I@designate:server' state.sls designate -b 1
36 node_name: {{ HOSTNAME_CFG01 }}
37 retry: {count: 5, delay: 10}
38 skip_fail: false
39
Dennis Dmitriev4034db02018-08-26 21:50:13 +030040{{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }}
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030041
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +030042# Install Telemetry services (mdb nodes)
43- description: Install redis service
44 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@redis:cluster:role:master' state.sls redis &&
45 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@redis:server' state.sls redis
46 node_name: {{ HOSTNAME_CFG01 }}
47 retry: {count: 1, delay: 5}
48 skip_fail: false
49
50- description: Install gnocchi server
51 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:server and *01*' state.sls gnocchi.server &&
52 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:server' state.sls gnocchi.server
53 node_name: {{ HOSTNAME_CFG01 }}
54 retry: {count: 1, delay: 5}
55 skip_fail: false
56
Dennis Dmitriev85145a62018-08-03 19:22:08 +030057- description: Setup gnocchi client
58 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:client and *01*' state.sls gnocchi.client &&
59 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:client' state.sls gnocchi.client
60 node_name: {{ HOSTNAME_CFG01 }}
61 retry: {count: 1, delay: 5}
62 skip_fail: false
63
Tatyana Leontovich5fb5ea52018-07-27 19:35:36 +030064- description: Install panko server
65 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@panko:server and *01*' state.sls panko &&
66 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@panko:server' state.sls panko
67 node_name: {{ HOSTNAME_CFG01 }}
68 retry: {count: 1, delay: 5}
69 skip_fail: false
70
71- description: Install ceilometer server on first node
72 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@ceilometer:server and *01*' state.sls ceilometer
73 node_name: {{ HOSTNAME_CFG01 }}
74 retry: {count: 2, delay: 5}
75 skip_fail: false
76
77- description: Install ceilometer server on other nodes
78 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@ceilometer:server' state.sls ceilometer
79 node_name: {{ HOSTNAME_CFG01 }}
80 retry: {count: 2, delay: 5}
81 skip_fail: false
82
83- description: Install aodh server
84 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@aodh:server and *01*' state.sls aodh &&
85 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@aodh:server' state.sls aodh
86 node_name: {{ HOSTNAME_CFG01 }}
87 retry: {count: 1, delay: 5}
88 skip_fail: false
Tatyana Leontovichd34f4102018-04-03 17:49:24 +030089
90- description: Deploy horizon dashboard
91 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
92 -C 'I@horizon:server' state.sls horizon
93 node_name: {{ HOSTNAME_CFG01 }}
94 retry: {count: 1, delay: 5}
95 skip_fail: true
96
97- description: Deploy nginx proxy
98 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
99 -C 'I@nginx:server' state.sls nginx
100 node_name: {{ HOSTNAME_CFG01 }}
101 retry: {count: 1, delay: 5}
102 skip_fail: true
103
104
105# Install compute node
106
107- description: Apply formulas for compute node
108 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
109 node_name: {{ HOSTNAME_CFG01 }}
110 retry: {count: 1, delay: 5}
111 skip_fail: true
112
113- description: Re-apply(as in doc) formulas for compute node
114 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
115 node_name: {{ HOSTNAME_CFG01 }}
116 retry: {count: 1, delay: 5}
117 skip_fail: false
118
119- description: Check IP on computes
120 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run
121 'ip a'
122 node_name: {{ HOSTNAME_CFG01 }}
123 retry: {count: 10, delay: 30}
124 skip_fail: false
125
Tatyana Leontovichd34f4102018-04-03 17:49:24 +0300126- description: sync time
127 cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' cmd.run
128 'service ntp stop; ntpd -gq; service ntp start'
129 node_name: {{ HOSTNAME_CFG01 }}
130 retry: {count: 1, delay: 30}
131 skip_fail: false
132
Tatyana Leontoviche1d16192018-07-18 15:07:51 +0300133{{ BACKUP.MACRO_WR_NGINX_MASTER() }}
Tatyana Leontovichbb29d1d2018-06-19 13:23:04 +0300134{{ BACKUP.MACRO_BACKUP_BACKUPNINJA() }}
sgudz62df2fc2018-10-09 12:26:19 +0300135{{ BACKUP.MACRO_BACKUP_XTRABACKUP() }}