blob: 0f1055264f3827d47b5e1e62d49ad290416ad732 [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
2- service.git.client
Martin Polreich1ee2e092017-08-10 16:06:57 +02003- system.docker.client
4- system.docker.host
Ales Komarekc12dd412017-06-27 16:24:42 +02005- system.linux.system.single
6- system.linux.system.repo.mcp.salt
Richard Felkl04250022017-10-20 13:55:43 +02007- system.linux.system.repo.docker
Ales Komarekc12dd412017-06-27 16:24:42 +02008- system.openssh.client.lab
Ales Komarekc12dd412017-06-27 16:24:42 +02009- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +020010- system.salt.master.api
Ales Komarekc12dd412017-06-27 16:24:42 +020011- system.reclass.storage.salt
12- system.salt.minion.ca.salt_master
13- system.salt.minion.cert.proxy
14- system.sphinx.server.doc.reclass
Petr Jediný3114a392017-08-02 15:21:09 +020015- system.keystone.client.core
16- system.keystone.client.service.aodh
17- system.keystone.client.service.ceilometer
18- system.keystone.client.service.designate
19- system.keystone.client.service.cinder
20- system.keystone.client.service.cinder2
Ales Komarekc12dd412017-06-27 16:24:42 +020021- system.keystone.client.service.cinder3
Petr Jediný3114a392017-08-02 15:21:09 +020022- system.keystone.client.service.glance
23- system.keystone.client.service.glare
24- system.keystone.client.service.heat
25- system.keystone.client.service.heat-cfn
26- system.keystone.client.service.keystone
27- system.keystone.client.service.neutron
28- system.keystone.client.service.nova-ec2
29- system.keystone.client.service.nova21
30- system.keystone.client.service.nova-placement
Adam Tengler2b36a762017-07-13 14:34:47 +000031- system.mysql.client
32- system.mysql.client.database.cinder
33- system.mysql.client.database.glance
34- system.mysql.client.database.heat
35- system.mysql.client.database.keystone
36- system.mysql.client.database.nova
37- system.mysql.client.database.nova_api
38- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020039- system.reclass.storage.system.openstack_control_cluster
Ales Komarekc12dd412017-06-27 16:24:42 +020040- system.reclass.storage.system.stacklight_server_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020041- cluster.sl-os-ovs.openstack.proxy
42- cluster.sl-os-ovs.stacklight.proxy
43- cluster.sl-os-ovs.openstack.dashboard
44- cluster.sl-os-ovs
Ales Komarekc12dd412017-06-27 16:24:42 +020045parameters:
46 _param:
47 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
48 reclass_data_revision: master
49 salt_master_environment_repository: "https://github.com/tcpcloud"
50 salt_master_environment_revision: master
Adam Tengler250d5bb2017-06-29 15:59:02 +000051 reclass_config_master: ${_param:infra_config_deploy_address}
Michal Kobusaab8a402018-03-21 18:55:36 +010052 reclass_config_master_gateway: ${_param:infra_config_gateway_address}
Adam Tengler250d5bb2017-06-29 15:59:02 +000053 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020054 salt_master_host: 127.0.0.1
55 salt_master_base_environment: prd
56 salt_minion_ca_host: ${linux:network:fqdn}
57 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
Daniel Ceche78ed372017-10-25 18:54:24 +020058 openstack_control_system_codename: xenial
Ales Komarekc12dd412017-06-27 16:24:42 +020059 linux:
60 network:
61 interface:
Michal Kobusaab8a402018-03-21 18:55:36 +010062 ens3:
63 enabled: true
64 type: eth
65 proto: static
66 address: ${_param:reclass_config_master}
67 gateway: ${_param:reclass_config_master_gateway}
68 netmask: 255.255.255.0
Ales Komarekc12dd412017-06-27 16:24:42 +020069 ens4:
70 enabled: true
71 type: eth
72 proto: static
73 address: ${_param:single_address}
74 netmask: 255.255.255.0
75 nginx:
76 server:
77 site:
78 nginx_proxy_openstack_web:
79 proxy:
Simon Pasquieraa8d0e62017-09-28 13:12:01 +020080 host: prx01
Ales Komarekc12dd412017-06-27 16:24:42 +020081 nginx_proxy_openstack_api_heat_cfn:
82 enabled: false
Adam Tengler250d5bb2017-06-29 15:59:02 +000083 salt:
84 master:
85 reactor:
86 reclass/minion/classify:
87 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020088 reclass:
89 storage:
Adam Tengler250d5bb2017-06-29 15:59:02 +000090 class_mapping:
91 common_node:
92 expression: all
93 node_param:
94 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000095 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000096 linux_system_codename:
97 value_template: <<node_os>>
98 salt_master_host:
99 value_template: <<node_master_ip>>
100 infra_config:
101 expression: <<node_hostname>>__startswith__cfg
102 cluster_param:
103 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000104 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000105 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000106 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000107 cluster_domain:
108 value_template: <<node_domain>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000109 openstack_control01:
110 expression: <<node_hostname>>__equals__ctl01
111 cluster_param:
112 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000113 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000114 openstack_control02:
115 expression: <<node_hostname>>__equals__ctl02
116 cluster_param:
117 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000118 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000119 openstack_control03:
120 expression: <<node_hostname>>__equals__ctl03
121 cluster_param:
122 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000123 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000124 openstack_compute:
125 expression: <<node_hostname>>__startswith__cmp
126 node_class:
127 value_template:
128 - cluster.<<node_cluster>>.openstack.compute
Adam Tengler8b254412017-06-29 18:30:32 +0000129 node_param:
130 tenant_address:
131 value_template: <<node_tenant_ip>>
132 external_address:
133 value_template: <<node_external_ip>>
Martin Polreich602483f2017-10-30 14:22:00 +0100134 openstack_gateway:
135 expression: <<node_hostname>>__startswith__gtw
136 node_class:
137 value_template:
138 - cluster.<<node_cluster>>.openstack.gateway
139 node_param:
140 tenant_address:
141 value_template: <<node_tenant_ip>>
142 external_address:
143 value_template: <<node_external_ip>>
144 cluster_param:
145 openstack_gateway_node01_address:
146 value_template: <<node_control_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200147 stacklight_monitor_node01:
Adam Tengler250d5bb2017-06-29 15:59:02 +0000148 expression: <<node_hostname>>__equals__mon01
149 cluster_param:
Martin Polreichcaffe5a2017-08-23 12:07:01 +0200150 stacklight_monitor_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000151 value_template: <<node_control_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200152 stacklight_monitor_node02:
Adam Tengler250d5bb2017-06-29 15:59:02 +0000153 expression: <<node_hostname>>__equals__mon02
154 cluster_param:
Martin Polreichcaffe5a2017-08-23 12:07:01 +0200155 stacklight_monitor_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000156 value_template: <<node_control_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200157 stacklight_monitor_node03:
Adam Tengler250d5bb2017-06-29 15:59:02 +0000158 expression: <<node_hostname>>__equals__mon03
159 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000160 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000161 value_template: <<node_control_ip>>
Ales Komarek7d91e632017-10-09 10:56:03 +0200162 node:
Martin Polreich253cedb2017-08-10 12:46:22 +0200163 prx_node:
164 name: ${_param:openstack_proxy_node01_hostname}
165 domain: ${_param:cluster_domain}
166 classes:
167 - cluster.${_param:cluster_name}.stacklight.proxy
168 params:
169 salt_master_host: ${_param:infra_config_deploy_address}
170 linux_system_codename: xenial
171 single_address: ${_param:openstack_proxy_node01_address}
Adam Tengler106a9b72017-09-27 14:21:30 +0200172 stacklight_server_node01:
Martin Polreich253cedb2017-08-10 12:46:22 +0200173 name: ${_param:stacklight_monitor_node01_hostname}
174 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200175 classes:
176 - service.galera.master.cluster
Martin Polreich253cedb2017-08-10 12:46:22 +0200177 - system.docker.swarm.master
178 - cluster.${_param:cluster_name}.stacklight.client
179 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200180 params:
Martin Polreich253cedb2017-08-10 12:46:22 +0200181 salt_master_host: ${_param:infra_config_deploy_address}
182 linux_system_codename: xenial
183 single_address: ${_param:stacklight_monitor_node01_address}
184 keepalived_vip_priority: 100
Ales Komarekc12dd412017-06-27 16:24:42 +0200185 mysql_cluster_role: master
Adam Tengler106a9b72017-09-27 14:21:30 +0200186 stacklight_server_node02:
Martin Polreich253cedb2017-08-10 12:46:22 +0200187 name: ${_param:stacklight_monitor_node02_hostname}
188 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200189 classes:
190 - service.galera.slave.cluster
Martin Polreich253cedb2017-08-10 12:46:22 +0200191 - system.docker.swarm.manager
192 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200193 params:
Martin Polreich253cedb2017-08-10 12:46:22 +0200194 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200195 linux_system_codename: xenial
Martin Polreich253cedb2017-08-10 12:46:22 +0200196 single_address: ${_param:stacklight_monitor_node02_address}
197 keepalived_vip_priority: 101
198 mysql_cluster_role: slave
Adam Tengler106a9b72017-09-27 14:21:30 +0200199 stacklight_server_node03:
Martin Polreich253cedb2017-08-10 12:46:22 +0200200 name: ${_param:stacklight_monitor_node03_hostname}
201 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200202 classes:
203 - service.galera.slave.cluster
Martin Polreich253cedb2017-08-10 12:46:22 +0200204 - system.docker.swarm.manager
205 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200206 params:
Martin Polreich253cedb2017-08-10 12:46:22 +0200207 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200208 linux_system_codename: xenial
Martin Polreich253cedb2017-08-10 12:46:22 +0200209 single_address: ${_param:stacklight_monitor_node03_address}
210 keepalived_vip_priority: 102
211 mysql_cluster_role: slave