blob: 992394a55a1bb418447efc9df7a34af5b966840b [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
7- system.openssh.client.lab
8- system.salt.master.api
9- system.salt.master.pkg
10- system.reclass.storage.salt
11- system.salt.minion.ca.salt_master
12- system.salt.minion.cert.proxy
13- system.sphinx.server.doc.reclass
Petr Jediný3114a392017-08-02 15:21:09 +020014- system.keystone.client.core
15- system.keystone.client.service.aodh
16- system.keystone.client.service.ceilometer
17- system.keystone.client.service.designate
18- system.keystone.client.service.cinder
19- system.keystone.client.service.cinder2
Ales Komarekc12dd412017-06-27 16:24:42 +020020- system.keystone.client.service.cinder3
Petr Jediný3114a392017-08-02 15:21:09 +020021- system.keystone.client.service.glance
22- system.keystone.client.service.glare
23- system.keystone.client.service.heat
24- system.keystone.client.service.heat-cfn
25- system.keystone.client.service.keystone
26- system.keystone.client.service.neutron
27- system.keystone.client.service.nova-ec2
28- system.keystone.client.service.nova21
29- system.keystone.client.service.nova-placement
Adam Tengler2b36a762017-07-13 14:34:47 +000030- system.mysql.client
31- system.mysql.client.database.cinder
32- system.mysql.client.database.glance
33- system.mysql.client.database.heat
34- system.mysql.client.database.keystone
35- system.mysql.client.database.nova
36- system.mysql.client.database.nova_api
37- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020038- system.reclass.storage.system.openstack_control_cluster
Ales Komarekc12dd412017-06-27 16:24:42 +020039- system.reclass.storage.system.stacklight_server_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020040- cluster.sl-os-ovs.openstack.proxy
41- cluster.sl-os-ovs.stacklight.proxy
42- cluster.sl-os-ovs.openstack.dashboard
43- cluster.sl-os-ovs
Ales Komarekc12dd412017-06-27 16:24:42 +020044parameters:
45 _param:
46 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
47 reclass_data_revision: master
48 salt_master_environment_repository: "https://github.com/tcpcloud"
49 salt_master_environment_revision: master
Adam Tengler250d5bb2017-06-29 15:59:02 +000050 reclass_config_master: ${_param:infra_config_deploy_address}
51 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020052 salt_master_host: 127.0.0.1
53 salt_master_base_environment: prd
54 salt_minion_ca_host: ${linux:network:fqdn}
55 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
Daniel Ceche78ed372017-10-25 18:54:24 +020056 openstack_control_system_codename: xenial
Ales Komarekc12dd412017-06-27 16:24:42 +020057 linux:
58 network:
59 interface:
60 ens4:
61 enabled: true
62 type: eth
63 proto: static
64 address: ${_param:single_address}
65 netmask: 255.255.255.0
66 nginx:
67 server:
68 site:
69 nginx_proxy_openstack_web:
70 proxy:
Simon Pasquieraa8d0e62017-09-28 13:12:01 +020071 host: prx01
Ales Komarekc12dd412017-06-27 16:24:42 +020072 nginx_proxy_openstack_api_heat_cfn:
73 enabled: false
Adam Tengler250d5bb2017-06-29 15:59:02 +000074 salt:
75 master:
76 reactor:
77 reclass/minion/classify:
78 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020079 reclass:
80 storage:
Adam Tengler250d5bb2017-06-29 15:59:02 +000081 class_mapping:
82 common_node:
83 expression: all
84 node_param:
85 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000086 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000087 linux_system_codename:
88 value_template: <<node_os>>
89 salt_master_host:
90 value_template: <<node_master_ip>>
91 infra_config:
92 expression: <<node_hostname>>__startswith__cfg
93 cluster_param:
94 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000095 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +000096 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000097 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000098 cluster_domain:
99 value_template: <<node_domain>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000100 openstack_control01:
101 expression: <<node_hostname>>__equals__ctl01
102 cluster_param:
103 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000104 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000105 openstack_control02:
106 expression: <<node_hostname>>__equals__ctl02
107 cluster_param:
108 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000109 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000110 openstack_control03:
111 expression: <<node_hostname>>__equals__ctl03
112 cluster_param:
113 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000114 value_template: <<node_control_ip>>
Adam Tengler250d5bb2017-06-29 15:59:02 +0000115 openstack_compute:
116 expression: <<node_hostname>>__startswith__cmp
117 node_class:
118 value_template:
119 - cluster.<<node_cluster>>.openstack.compute
Adam Tengler8b254412017-06-29 18:30:32 +0000120 node_param:
121 tenant_address:
122 value_template: <<node_tenant_ip>>
123 external_address:
124 value_template: <<node_external_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200125 stacklight_monitor_node01:
Adam Tengler250d5bb2017-06-29 15:59:02 +0000126 expression: <<node_hostname>>__equals__mon01
127 cluster_param:
Martin Polreichcaffe5a2017-08-23 12:07:01 +0200128 stacklight_monitor_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000129 value_template: <<node_control_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200130 stacklight_monitor_node02:
Adam Tengler250d5bb2017-06-29 15:59:02 +0000131 expression: <<node_hostname>>__equals__mon02
132 cluster_param:
Martin Polreichcaffe5a2017-08-23 12:07:01 +0200133 stacklight_monitor_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000134 value_template: <<node_control_ip>>
Martin Polreich253cedb2017-08-10 12:46:22 +0200135 stacklight_monitor_node03:
Adam Tengler250d5bb2017-06-29 15:59:02 +0000136 expression: <<node_hostname>>__equals__mon03
137 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000138 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000139 value_template: <<node_control_ip>>
Ales Komarek7d91e632017-10-09 10:56:03 +0200140 node:
Martin Polreich253cedb2017-08-10 12:46:22 +0200141 prx_node:
142 name: ${_param:openstack_proxy_node01_hostname}
143 domain: ${_param:cluster_domain}
144 classes:
145 - cluster.${_param:cluster_name}.stacklight.proxy
146 params:
147 salt_master_host: ${_param:infra_config_deploy_address}
148 linux_system_codename: xenial
149 single_address: ${_param:openstack_proxy_node01_address}
Adam Tengler106a9b72017-09-27 14:21:30 +0200150 stacklight_server_node01:
Martin Polreich253cedb2017-08-10 12:46:22 +0200151 name: ${_param:stacklight_monitor_node01_hostname}
152 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200153 classes:
154 - service.galera.master.cluster
Martin Polreich253cedb2017-08-10 12:46:22 +0200155 - system.docker.swarm.master
156 - cluster.${_param:cluster_name}.stacklight.client
157 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200158 params:
Martin Polreich253cedb2017-08-10 12:46:22 +0200159 salt_master_host: ${_param:infra_config_deploy_address}
160 linux_system_codename: xenial
161 single_address: ${_param:stacklight_monitor_node01_address}
162 keepalived_vip_priority: 100
Ales Komarekc12dd412017-06-27 16:24:42 +0200163 mysql_cluster_role: master
Adam Tengler106a9b72017-09-27 14:21:30 +0200164 stacklight_server_node02:
Martin Polreich253cedb2017-08-10 12:46:22 +0200165 name: ${_param:stacklight_monitor_node02_hostname}
166 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200167 classes:
168 - service.galera.slave.cluster
Martin Polreich253cedb2017-08-10 12:46:22 +0200169 - system.docker.swarm.manager
170 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200171 params:
Martin Polreich253cedb2017-08-10 12:46:22 +0200172 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200173 linux_system_codename: xenial
Martin Polreich253cedb2017-08-10 12:46:22 +0200174 single_address: ${_param:stacklight_monitor_node02_address}
175 keepalived_vip_priority: 101
176 mysql_cluster_role: slave
Adam Tengler106a9b72017-09-27 14:21:30 +0200177 stacklight_server_node03:
Martin Polreich253cedb2017-08-10 12:46:22 +0200178 name: ${_param:stacklight_monitor_node03_hostname}
179 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200180 classes:
181 - service.galera.slave.cluster
Martin Polreich253cedb2017-08-10 12:46:22 +0200182 - system.docker.swarm.manager
183 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200184 params:
Martin Polreich253cedb2017-08-10 12:46:22 +0200185 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200186 linux_system_codename: xenial
Martin Polreich253cedb2017-08-10 12:46:22 +0200187 single_address: ${_param:stacklight_monitor_node03_address}
188 keepalived_vip_priority: 102
189 mysql_cluster_role: slave