blob: 6e66f64eed9d6e53eb50a388716cc56d71b8e37d [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
Martin Polreich1ee2e092017-08-10 16:06:57 +02002- system.docker.client
3- system.docker.host
Ales Komarekc12dd412017-06-27 16:24:42 +02004- system.linux.system.repo.ubuntu
5- system.openssh.client.lab
6- system.salt.master.pkg
7- system.salt.minion.ca.salt_master
8- system.salt.master.api
9- system.reclass.storage.salt
10- system.salt.minion.cert.k8s_server
11- system.reclass.storage.system.kubernetes_control_cluster
Petr Michalec4d366372017-09-18 13:54:53 +020012#- system.reclass.storage.system.opencontrail_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020013- cluster.sl-k8s-contrail
Ales Komarekc12dd412017-06-27 16:24:42 +020014parameters:
15 _param:
16 salt_master_base_environment: prd
17 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
18 reclass_data_revision: master
19 reclass_config_master: ${_param:infra_config_deploy_address}
20 single_address: ${_param:infra_config_address}
21 linux_system_codename: xenial
Petr Michalec4d366372017-09-18 13:54:53 +020022 opencontrail_control_system_codename: trusty
Ales Komarekc12dd412017-06-27 16:24:42 +020023 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
24 salt_master_host: ${_param:infra_config_deploy_address}
Adam Tengler0963f862017-07-04 15:46:06 +000025 salt:
26 master:
27 reactor:
28 reclass/minion/classify:
29 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020030 reclass:
31 storage:
Adam Tengler0963f862017-07-04 15:46:06 +000032 class_mapping:
33 common_node:
34 expression: all
35 node_param:
36 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000037 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000038 linux_system_codename:
39 value_template: <<node_os>>
40 salt_master_host:
41 value_template: <<node_master_ip>>
42 infra_config:
43 expression: <<node_hostname>>__startswith__cfg
44 cluster_param:
45 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000046 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000047 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000048 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000049 cluster_domain:
50 value_template: <<node_domain>>
Adam Tengler0963f862017-07-04 15:46:06 +000051 kubernetes_control01:
52 expression: <<node_hostname>>__equals__ctl01
53 cluster_param:
54 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000055 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000056 kubernetes_control02:
57 expression: <<node_hostname>>__equals__ctl02
58 cluster_param:
59 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000060 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000061 kubernetes_control03:
62 expression: <<node_hostname>>__equals__ctl03
63 cluster_param:
64 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000065 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000066 opencontrail_control01:
67 expression: <<node_hostname>>__equals__ntw01
68 cluster_param:
69 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000070 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000071 opencontrail_control02:
72 expression: <<node_hostname>>__equals__ntw02
73 cluster_param:
74 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000075 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000076 opencontrail_control03:
77 expression: <<node_hostname>>__equals__ntw03
78 cluster_param:
79 opencontrail_control_node03_address:
80 value_template: <<node_ip>
81 kubernetes_proxy:
82 expression: <<node_hostname>>__equals__prx01
83 cluster_param:
84 kubernetes_proxy_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000085 value_template: <<node_control_ip>>
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000086 stacklight_monitor_node01:
Adam Tengler0963f862017-07-04 15:46:06 +000087 expression: <<node_hostname>>__equals__mon01
88 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +020089 stacklight_monitor_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000090 value_template: <<node_control_ip>>
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000091 stacklight_monitor_node02:
Adam Tengler0963f862017-07-04 15:46:06 +000092 expression: <<node_hostname>>__equals__mon02
93 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +020094 stacklight_monitor_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000095 value_template: <<node_control_ip>>
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000096 stacklight_monitor_node03:
Adam Tengler0963f862017-07-04 15:46:06 +000097 expression: <<node_hostname>>__equals__mon03
98 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000099 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000100 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +0000101 kubernetes_compute:
102 expression: <<node_hostname>>__startswith__cmp
103 node_class:
104 value_template:
105 - cluster.<<node_cluster>>.kubernetes.compute
Ales Komarekc12dd412017-06-27 16:24:42 +0200106 prx_node:
107 name: ${_param:kubernetes_proxy_node01_hostname}
108 domain: ${_param:cluster_domain}
109 classes:
110 - cluster.${_param:cluster_name}.stacklight.proxy
111 params:
112 salt_master_host: ${_param:infra_config_deploy_address}
113 linux_system_codename: xenial
114 single_address: ${_param:kubernetes_proxy_node01_address}
Adam Tengler106a9b72017-09-27 14:21:30 +0200115 stacklight_server_node01:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000116 name: ${_param:stacklight_monitor_node01_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +0200117 domain: ${_param:cluster_domain}
118 classes:
119 - service.galera.master.cluster
120 - system.docker.swarm.master
121 - cluster.${_param:cluster_name}.stacklight.client
122 - cluster.${_param:cluster_name}.stacklight.server
123 params:
124 salt_master_host: ${_param:infra_config_deploy_address}
125 linux_system_codename: xenial
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000126 single_address: ${_param:stacklight_monitor_node01_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200127 keepalived_vip_priority: 100
128 mysql_cluster_role: master
Adam Tengler106a9b72017-09-27 14:21:30 +0200129 stacklight_server_node02:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000130 name: ${_param:stacklight_monitor_node02_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +0200131 domain: ${_param:cluster_domain}
132 classes:
133 - service.galera.slave.cluster
134 - system.docker.swarm.manager
135 - cluster.${_param:cluster_name}.stacklight.server
136 params:
137 salt_master_host: ${_param:infra_config_deploy_address}
138 linux_system_codename: xenial
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000139 single_address: ${_param:stacklight_monitor_node02_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200140 keepalived_vip_priority: 101
141 mysql_cluster_role: slave
Adam Tengler106a9b72017-09-27 14:21:30 +0200142 stacklight_server_node03:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000143 name: ${_param:stacklight_monitor_node03_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +0200144 domain: ${_param:cluster_domain}
145 classes:
146 - service.galera.slave.cluster
147 - system.docker.swarm.manager
148 - cluster.${_param:cluster_name}.stacklight.server
149 params:
150 salt_master_host: ${_param:infra_config_deploy_address}
151 linux_system_codename: xenial
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000152 single_address: ${_param:stacklight_monitor_node03_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200153 keepalived_vip_priority: 102
154 mysql_cluster_role: slave
155 opencontrail_control_node01:
Petr Michalec4d366372017-09-18 13:54:53 +0200156 name: ${_param:opencontrail_control_node01_hostname}
157 domain: ${_param:cluster_domain}
158 classes:
159 - cluster.${_param:cluster_name}.opencontrail.control
Ales Komarekc12dd412017-06-27 16:24:42 +0200160 params:
Petr Michalec4d366372017-09-18 13:54:53 +0200161 salt_master_host: ${_param:reclass_config_master}
162 linux_system_codename: ${_param:opencontrail_control_system_codename}
163 single_address: ${_param:opencontrail_control_node01_address}
164 keepalived_vip_priority: 103
165 opencontrail_database_id: 1
Ales Komarekc12dd412017-06-27 16:24:42 +0200166 rabbitmq_cluster_role: master
167 opencontrail_control_node02:
Petr Michalec4d366372017-09-18 13:54:53 +0200168 name: ${_param:opencontrail_control_node02_hostname}
169 domain: ${_param:cluster_domain}
170 classes:
171 - cluster.${_param:cluster_name}.opencontrail.control
Ales Komarekc12dd412017-06-27 16:24:42 +0200172 params:
Petr Michalec4d366372017-09-18 13:54:53 +0200173 salt_master_host: ${_param:reclass_config_master}
174 linux_system_codename: ${_param:opencontrail_control_system_codename}
175 single_address: ${_param:opencontrail_control_node02_address}
176 keepalived_vip_priority: 102
177 opencontrail_database_id: 2
Ales Komarekc12dd412017-06-27 16:24:42 +0200178 rabbitmq_cluster_role: slave
179 opencontrail_control_node03:
Petr Michalec4d366372017-09-18 13:54:53 +0200180 name: ${_param:opencontrail_control_node03_hostname}
181 domain: ${_param:cluster_domain}
182 classes:
183 - cluster.${_param:cluster_name}.opencontrail.control
Ales Komarekc12dd412017-06-27 16:24:42 +0200184 params:
Petr Michalec4d366372017-09-18 13:54:53 +0200185 salt_master_host: ${_param:reclass_config_master}
186 linux_system_codename: ${_param:opencontrail_control_system_codename}
187 single_address: ${_param:opencontrail_control_node03_address}
188 keepalived_vip_priority: 101
189 opencontrail_database_id: 3
Ales Komarekc12dd412017-06-27 16:24:42 +0200190 rabbitmq_cluster_role: slave