blob: 50a4a9b01f186d64a58a6b3f31485d70b3c84ca5 [file] [log] [blame]
Adam Tenglerc1cd4d62017-07-25 11:19:37 +00001classes:
2- service.git.client
3- system.linux.system.single
Martin Polreicha0addcc2018-06-25 11:32:52 +02004- system.linux.system.repo.mcp.apt_mirantis.saltstack
Adam Tenglerc1cd4d62017-07-25 11:19:37 +00005- system.openssh.client.lab
Adam Tenglerc1cd4d62017-07-25 11:19:37 +00006- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02007- system.salt.master.api
Adam Tenglerc1cd4d62017-07-25 11:19:37 +00008- system.reclass.storage.salt
9- system.salt.minion.ca.salt_master
10- system.salt.minion.cert.proxy
Oleh Hryhorova54ba472018-06-15 17:05:36 +030011- system.salt.syndic.single
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000012- system.sphinx.server.doc.reclass
Petr Jediný3114a392017-08-02 15:21:09 +020013- system.keystone.client.core
Petr Jediný3114a392017-08-02 15:21:09 +020014- system.keystone.client.service.cinder
15- system.keystone.client.service.cinder2
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000016- system.keystone.client.service.cinder3
Petr Jediný3114a392017-08-02 15:21:09 +020017- system.keystone.client.service.glance
18- system.keystone.client.service.glare
19- system.keystone.client.service.heat
20- system.keystone.client.service.heat-cfn
21- system.keystone.client.service.keystone
22- system.keystone.client.service.neutron
23- system.keystone.client.service.nova-ec2
24- system.keystone.client.service.nova21
25- system.keystone.client.service.nova-placement
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000026- system.mysql.client
27- system.mysql.client.database.cinder
28- system.mysql.client.database.glance
29- system.mysql.client.database.heat
30- system.mysql.client.database.keystone
31- system.mysql.client.database.nova
32- system.mysql.client.database.nova_api
33- system.mysql.client.database.neutron
34- system.reclass.storage.system.openstack_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020035- cluster.os-ha-ovs-syndic.openstack.proxy
36- cluster.os-ha-ovs-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000037parameters:
38 _param:
39 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
40 reclass_data_revision: master
41 salt_master_environment_repository: "https://github.com/tcpcloud"
42 salt_master_environment_revision: master
43 reclass_config_master: ${_param:infra_config_deploy_address}
44 single_address: ${_param:infra_config_address}
45 salt_master_host: 127.0.0.1
46 salt_master_base_environment: prd
47 salt_minion_ca_host: ${linux:network:fqdn}
48 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
49 linux:
50 network:
51 interface:
52 ens4:
53 enabled: true
54 type: eth
55 proto: static
56 address: ${_param:single_address}
57 netmask: 255.255.255.0
58 nginx:
59 server:
60 site:
61 nginx_proxy_openstack_web:
62 proxy:
63 host: ${_param:openstack_control_address}
64 nginx_proxy_openstack_api_heat_cfn:
65 enabled: false
66 salt:
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000067 master:
68 reactor:
69 reclass/minion/classify:
70 - salt://reclass/reactor/node_register.sls
71 reclass:
72 storage:
73 class_mapping:
74 common_node:
75 expression: all
76 node_param:
77 single_address:
78 value_template: <<node_control_ip>>
79 linux_system_codename:
80 value_template: <<node_os>>
81 salt_master_host:
82 value_template: <<node_master_ip>>
83 infra_config:
Adam Tengler500745f2017-07-27 15:51:10 +000084 expression:
85 - <<node_hostname>>__startswith__cfg
Oleh Hryhorova54ba472018-06-15 17:05:36 +030086 - <<node_cluster>>__equals__os-ha-ovs-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000087 cluster_param:
88 infra_config_address:
89 value_template: <<node_control_ip>>
90 infra_config_deploy_address:
91 value_template: <<node_deploy_ip>>
92 cluster_domain:
93 value_template: <<node_domain>>
94 openstack_control01:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000095 expression:
96 - <<node_hostname>>__equals__ctl01
Oleh Hryhorova54ba472018-06-15 17:05:36 +030097 - <<node_cluster>>__equals__os-ha-ovs-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000098 cluster_param:
99 openstack_control_node01_address:
100 value_template: <<node_control_ip>>
101 openstack_control02:
Adam Tengler1c3c15f2017-07-31 10:23:27 +0000102 expression:
103 - <<node_hostname>>__equals__ctl02
Oleh Hryhorova54ba472018-06-15 17:05:36 +0300104 - <<node_cluster>>__equals__os-ha-ovs-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +0000105 cluster_param:
106 openstack_control_node02_address:
107 value_template: <<node_control_ip>>
108 openstack_control03:
Adam Tengler1c3c15f2017-07-31 10:23:27 +0000109 expression:
110 - <<node_hostname>>__equals__ctl03
Oleh Hryhorova54ba472018-06-15 17:05:36 +0300111 - <<node_cluster>>__equals__os-ha-ovs-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +0000112 cluster_param:
113 openstack_control_node03_address:
114 value_template: <<node_control_ip>>
115 openstack_compute:
Adam Tengler1c3c15f2017-07-31 10:23:27 +0000116 expression:
117 - <<node_hostname>>__startswith__cmp
Oleh Hryhorova54ba472018-06-15 17:05:36 +0300118 - <<node_cluster>>__equals__os-ha-ovs-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +0000119 node_class:
120 value_template:
121 - cluster.<<node_cluster>>.openstack.compute
122 node_param:
123 tenant_address:
124 value_template: <<node_tenant_ip>>
125 external_address:
126 value_template: <<node_external_ip>>
127 openstack_gateway:
Adam Tengler1c3c15f2017-07-31 10:23:27 +0000128 expression:
129 - <<node_hostname>>__startswith__gtw
Oleh Hryhorova54ba472018-06-15 17:05:36 +0300130 - <<node_cluster>>__equals__os-ha-ovs-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +0000131 node_class:
132 value_template:
133 - cluster.<<node_cluster>>.openstack.gateway
134 node_param:
135 tenant_address:
136 value_template: <<node_tenant_ip>>
137 external_address:
138 value_template: <<node_external_ip>>
139 cluster_param:
140 openstack_gateway_node01_address:
141 value_template: <<node_control_ip>>
142 node:
143 openstack_control_node01:
144 classes:
145 - service.galera.master.cluster
146 params:
147 mysql_cluster_role: master
148 linux_system_codename: xenial
149 openstack_control_node02:
150 classes:
151 - service.galera.slave.cluster
152 params:
153 mysql_cluster_role: slave
154 linux_system_codename: xenial
155 openstack_control_node03:
156 classes:
157 - service.galera.slave.cluster
158 params:
159 mysql_cluster_role: slave
160 linux_system_codename: xenial