blob: 13c3e13dc04ef48bd6d4dcde002d806118fa699a [file] [log] [blame]
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +02001{% from 'virtual-mcp-pike-dvr-ceph-rgw/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'virtual-mcp-pike-dvr-ceph-rgw/underlay.yaml' import HOSTNAME_CTL01 with context %}
3{% from 'virtual-mcp-pike-dvr-ceph-rgw/underlay.yaml' import HOSTNAME_CTL02 with context %}
4{% from 'virtual-mcp-pike-dvr-ceph-rgw/underlay.yaml' import HOSTNAME_CTL03 with context %}
5{% from 'virtual-mcp-pike-dvr-ceph-rgw/underlay.yaml' import HOSTNAME_GTW01 with context %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +02006{% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %}
7{% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %}
8
Oleksii Butenko5cd0a162018-06-14 18:18:10 +03009{% import 'shared-salt.yaml' as SHARED with context %}
Dennis Dmitriev4034db02018-08-26 21:50:13 +030010{% import 'shared-openstack.yaml' as SHARED_OPENSTACK with context %}
Oleksii Butenko5cd0a162018-06-14 18:18:10 +030011
Tatyana Leontovich8015f022018-07-04 11:57:51 +030012{% import 'shared-backup-restore.yaml' as BACKUP with context %}
13
Tatyana Leontovich56005da2017-12-11 13:16:51 +020014# Install OpenStack control services
15
sgudz62df2fc2018-10-09 12:26:19 +030016{{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE() }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020017
Dennis Dmitriev4034db02018-08-26 21:50:13 +030018{{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020019
Dennis Dmitriev4034db02018-08-26 21:50:13 +030020{{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020021
Dennis Dmitriev4034db02018-08-26 21:50:13 +030022{{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER() }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020023
Dennis Dmitriev4034db02018-08-26 21:50:13 +030024{{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON() }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020025
Dennis Dmitriev4034db02018-08-26 21:50:13 +030026{{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020027
28- description: Deploy horizon dashboard
29 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
30 -C 'I@horizon:server' state.sls horizon
31 node_name: {{ HOSTNAME_CFG01 }}
32 retry: {count: 1, delay: 5}
33 skip_fail: true
34
35- description: Deploy nginx proxy
36 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
37 -C 'I@nginx:server' state.sls nginx
38 node_name: {{ HOSTNAME_CFG01 }}
39 retry: {count: 1, delay: 5}
40 skip_fail: true
41
42
43# Install compute node
44
45- description: Apply formulas for compute node
46 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
47 node_name: {{ HOSTNAME_CFG01 }}
48 retry: {count: 1, delay: 5}
49 skip_fail: true
50
51- description: Re-apply(as in doc) formulas for compute node
52 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
53 node_name: {{ HOSTNAME_CFG01 }}
54 retry: {count: 1, delay: 5}
Oleksii Butenko9f2601c2018-02-08 15:13:21 +020055 skip_fail: false
Tatyana Leontovich56005da2017-12-11 13:16:51 +020056
57- description: Check IP on computes
58 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run
59 'ip a'
60 node_name: {{ HOSTNAME_CFG01 }}
61 retry: {count: 10, delay: 30}
62 skip_fail: false
63
Tatyana Leontovich92063ef2018-07-04 14:28:09 +030064{{ BACKUP.MACRO_WR_NGINX_MASTER() }}
Tatyana Leontovich8015f022018-07-04 11:57:51 +030065{{ BACKUP.MACRO_BACKUP_BACKUPNINJA() }}
66{{ BACKUP.MACRO_BACKUP_XTRABACKUP() }}