blob: eac6a06a27a4498f3e2f5c918d32be00f9cf162e [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
9- system.salt.master.api
10- system.salt.master.pkg
11- 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}
52 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020053 salt_master_host: 127.0.0.1
54 salt_master_base_environment: prd
55 salt_minion_ca_host: ${linux:network:fqdn}
56 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
Daniel Ceche78ed372017-10-25 18:54:24 +020057 openstack_control_system_codename: xenial
Ales Komarekc12dd412017-06-27 16:24:42 +020058 linux:
59 network:
60 interface:
61 ens4:
62 enabled: true
63 type: eth
64 proto: static
65 address: ${_param:single_address}
66 netmask: 255.255.255.0
67 nginx:
68 server:
69 site:
70 nginx_proxy_openstack_web:
71 proxy:
Simon Pasquieraa8d0e62017-09-28 13:12:01 +020072 host: prx01
Ales Komarekc12dd412017-06-27 16:24:42 +020073 nginx_proxy_openstack_api_heat_cfn:
74 enabled: false
Adam Tengler250d5bb2017-06-29 15:59:02 +000075 salt:
76 master:
77 reactor:
78 reclass/minion/classify:
79 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020080 reclass:
81 storage:
Adam Tengler250d5bb2017-06-29 15:59:02 +000082 class_mapping:
83 common_node:
84 expression: all
85 node_param:
86 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000087 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000088 linux_system_codename:
89 value_template: <<node_os>>
90 salt_master_host:
91 value_template: <<node_master_ip>>
92 infra_config:
93 expression: <<node_hostname>>__startswith__cfg
94 cluster_param:
95 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000096 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000097 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000098 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000099 cluster_domain:
100 value_template: <<node_domain>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000101 openstack_control01:
102 expression: <<node_hostname>>__equals__ctl01
103 cluster_param:
104 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000105 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000106 openstack_control02:
107 expression: <<node_hostname>>__equals__ctl02
108 cluster_param:
109 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000110 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000111 openstack_control03:
112 expression: <<node_hostname>>__equals__ctl03
113 cluster_param:
114 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000115 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000116 openstack_compute:
117 expression: <<node_hostname>>__startswith__cmp
118 node_class:
119 value_template:
120 - cluster.<<node_cluster>>.openstack.compute
Adam Tengler8b254412017-06-29 18:30:32 +0000121 node_param:
122 tenant_address:
123 value_template: <<node_tenant_ip>>
124 external_address:
125 value_template: <<node_external_ip>>
Martin Polreich602483f2017-10-30 14:22:00 +0100126 openstack_gateway:
127 expression: <<node_hostname>>__startswith__gtw
128 node_class:
129 value_template:
130 - cluster.<<node_cluster>>.openstack.gateway
131 node_param:
132 tenant_address:
133 value_template: <<node_tenant_ip>>
134 external_address:
135 value_template: <<node_external_ip>>
136 cluster_param:
137 openstack_gateway_node01_address:
138 value_template: <<node_control_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200139 stacklight_monitor_node01:
Adam Tengler250d5bb2017-06-29 15:59:02 +0000140 expression: <<node_hostname>>__equals__mon01
141 cluster_param:
Martin Polreichcaffe5a2017-08-23 12:07:01 +0200142 stacklight_monitor_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000143 value_template: <<node_control_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200144 stacklight_monitor_node02:
Adam Tengler250d5bb2017-06-29 15:59:02 +0000145 expression: <<node_hostname>>__equals__mon02
146 cluster_param:
Martin Polreichcaffe5a2017-08-23 12:07:01 +0200147 stacklight_monitor_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000148 value_template: <<node_control_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200149 stacklight_monitor_node03:
Adam Tengler250d5bb2017-06-29 15:59:02 +0000150 expression: <<node_hostname>>__equals__mon03
151 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000152 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000153 value_template: <<node_control_ip>>
Ales Komarek7d91e632017-10-09 10:56:03 +0200154 node:
Martin Polreich253cedb2017-08-10 12:46:22 +0200155 prx_node:
156 name: ${_param:openstack_proxy_node01_hostname}
157 domain: ${_param:cluster_domain}
158 classes:
159 - cluster.${_param:cluster_name}.stacklight.proxy
160 params:
161 salt_master_host: ${_param:infra_config_deploy_address}
162 linux_system_codename: xenial
163 single_address: ${_param:openstack_proxy_node01_address}
Adam Tengler106a9b72017-09-27 14:21:30 +0200164 stacklight_server_node01:
Martin Polreich253cedb2017-08-10 12:46:22 +0200165 name: ${_param:stacklight_monitor_node01_hostname}
166 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200167 classes:
168 - service.galera.master.cluster
Martin Polreich253cedb2017-08-10 12:46:22 +0200169 - system.docker.swarm.master
170 - cluster.${_param:cluster_name}.stacklight.client
171 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200172 params:
Martin Polreich253cedb2017-08-10 12:46:22 +0200173 salt_master_host: ${_param:infra_config_deploy_address}
174 linux_system_codename: xenial
175 single_address: ${_param:stacklight_monitor_node01_address}
176 keepalived_vip_priority: 100
Ales Komarekc12dd412017-06-27 16:24:42 +0200177 mysql_cluster_role: master
Adam Tengler106a9b72017-09-27 14:21:30 +0200178 stacklight_server_node02:
Martin Polreich253cedb2017-08-10 12:46:22 +0200179 name: ${_param:stacklight_monitor_node02_hostname}
180 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200181 classes:
182 - service.galera.slave.cluster
Martin Polreich253cedb2017-08-10 12:46:22 +0200183 - system.docker.swarm.manager
184 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200185 params:
Martin Polreich253cedb2017-08-10 12:46:22 +0200186 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200187 linux_system_codename: xenial
Martin Polreich253cedb2017-08-10 12:46:22 +0200188 single_address: ${_param:stacklight_monitor_node02_address}
189 keepalived_vip_priority: 101
190 mysql_cluster_role: slave
Adam Tengler106a9b72017-09-27 14:21:30 +0200191 stacklight_server_node03:
Martin Polreich253cedb2017-08-10 12:46:22 +0200192 name: ${_param:stacklight_monitor_node03_hostname}
193 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200194 classes:
195 - service.galera.slave.cluster
Martin Polreich253cedb2017-08-10 12:46:22 +0200196 - system.docker.swarm.manager
197 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200198 params:
Martin Polreich253cedb2017-08-10 12:46:22 +0200199 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200200 linux_system_codename: xenial
Martin Polreich253cedb2017-08-10 12:46:22 +0200201 single_address: ${_param:stacklight_monitor_node03_address}
202 keepalived_vip_priority: 102
203 mysql_cluster_role: slave