blob: bb5ad1fcf204fa8c9a14d4700f9a4c66520f08df [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
azvyagintsev2859f0e2018-06-11 17:45:47 +03004- system.linux.system.repo.mcp.apt_mirantis.ubuntu
Martin Polreicha0addcc2018-06-25 11:32:52 +02005- system.linux.system.repo.mcp.apt_mirantis.saltstack
Richard Felkl04250022017-10-20 13:55:43 +02006- system.linux.system.repo.docker
Ales Komarekc12dd412017-06-27 16:24:42 +02007- system.openssh.client.lab
8- system.salt.master.pkg
9- system.salt.minion.ca.salt_master
10- system.salt.master.api
11- system.reclass.storage.salt
Sergey Kolekonov41ffdfa2018-10-30 19:47:23 +000012- system.salt.minion.cert.k8s_server
Ales Komarekc12dd412017-06-27 16:24:42 +020013- system.reclass.storage.system.kubernetes_control_cluster
Petr Michalec4d366372017-09-18 13:54:53 +020014#- system.reclass.storage.system.opencontrail_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020015- cluster.sl-k8s-contrail
Ales Komarekc12dd412017-06-27 16:24:42 +020016parameters:
17 _param:
18 salt_master_base_environment: prd
19 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
20 reclass_data_revision: master
21 reclass_config_master: ${_param:infra_config_deploy_address}
22 single_address: ${_param:infra_config_address}
23 linux_system_codename: xenial
Petr Michalec4d366372017-09-18 13:54:53 +020024 opencontrail_control_system_codename: trusty
Ales Komarekc12dd412017-06-27 16:24:42 +020025 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
26 salt_master_host: ${_param:infra_config_deploy_address}
Adam Tengler0963f862017-07-04 15:46:06 +000027 salt:
28 master:
29 reactor:
30 reclass/minion/classify:
31 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020032 reclass:
33 storage:
Adam Tengler0963f862017-07-04 15:46:06 +000034 class_mapping:
35 common_node:
36 expression: all
37 node_param:
38 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000039 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000040 linux_system_codename:
41 value_template: <<node_os>>
42 salt_master_host:
43 value_template: <<node_master_ip>>
44 infra_config:
45 expression: <<node_hostname>>__startswith__cfg
46 cluster_param:
47 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000048 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000049 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000050 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000051 cluster_domain:
52 value_template: <<node_domain>>
Adam Tengler0963f862017-07-04 15:46:06 +000053 kubernetes_control01:
54 expression: <<node_hostname>>__equals__ctl01
55 cluster_param:
56 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000057 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000058 kubernetes_control02:
59 expression: <<node_hostname>>__equals__ctl02
60 cluster_param:
61 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000062 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000063 kubernetes_control03:
64 expression: <<node_hostname>>__equals__ctl03
65 cluster_param:
66 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000067 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000068 opencontrail_control01:
69 expression: <<node_hostname>>__equals__ntw01
70 cluster_param:
71 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000072 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000073 opencontrail_control02:
74 expression: <<node_hostname>>__equals__ntw02
75 cluster_param:
76 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000077 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000078 opencontrail_control03:
79 expression: <<node_hostname>>__equals__ntw03
80 cluster_param:
81 opencontrail_control_node03_address:
82 value_template: <<node_ip>
83 kubernetes_proxy:
84 expression: <<node_hostname>>__equals__prx01
85 cluster_param:
86 kubernetes_proxy_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000087 value_template: <<node_control_ip>>
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000088 stacklight_monitor_node01:
Adam Tengler0963f862017-07-04 15:46:06 +000089 expression: <<node_hostname>>__equals__mon01
90 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +020091 stacklight_monitor_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000092 value_template: <<node_control_ip>>
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000093 stacklight_monitor_node02:
Adam Tengler0963f862017-07-04 15:46:06 +000094 expression: <<node_hostname>>__equals__mon02
95 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +020096 stacklight_monitor_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000097 value_template: <<node_control_ip>>
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +000098 stacklight_monitor_node03:
Adam Tengler0963f862017-07-04 15:46:06 +000099 expression: <<node_hostname>>__equals__mon03
100 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000101 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000102 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +0000103 kubernetes_compute:
104 expression: <<node_hostname>>__startswith__cmp
105 node_class:
106 value_template:
107 - cluster.<<node_cluster>>.kubernetes.compute
Ales Komarekc12dd412017-06-27 16:24:42 +0200108 prx_node:
109 name: ${_param:kubernetes_proxy_node01_hostname}
110 domain: ${_param:cluster_domain}
111 classes:
112 - cluster.${_param:cluster_name}.stacklight.proxy
113 params:
114 salt_master_host: ${_param:infra_config_deploy_address}
115 linux_system_codename: xenial
116 single_address: ${_param:kubernetes_proxy_node01_address}
Adam Tengler106a9b72017-09-27 14:21:30 +0200117 stacklight_server_node01:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000118 name: ${_param:stacklight_monitor_node01_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +0200119 domain: ${_param:cluster_domain}
120 classes:
121 - service.galera.master.cluster
122 - system.docker.swarm.master
123 - cluster.${_param:cluster_name}.stacklight.client
124 - cluster.${_param:cluster_name}.stacklight.server
125 params:
126 salt_master_host: ${_param:infra_config_deploy_address}
127 linux_system_codename: xenial
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000128 single_address: ${_param:stacklight_monitor_node01_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200129 keepalived_vip_priority: 100
130 mysql_cluster_role: master
Adam Tengler106a9b72017-09-27 14:21:30 +0200131 stacklight_server_node02:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000132 name: ${_param:stacklight_monitor_node02_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +0200133 domain: ${_param:cluster_domain}
134 classes:
135 - service.galera.slave.cluster
136 - system.docker.swarm.manager
137 - cluster.${_param:cluster_name}.stacklight.server
138 params:
139 salt_master_host: ${_param:infra_config_deploy_address}
140 linux_system_codename: xenial
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000141 single_address: ${_param:stacklight_monitor_node02_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200142 keepalived_vip_priority: 101
143 mysql_cluster_role: slave
Adam Tengler106a9b72017-09-27 14:21:30 +0200144 stacklight_server_node03:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000145 name: ${_param:stacklight_monitor_node03_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +0200146 domain: ${_param:cluster_domain}
147 classes:
148 - service.galera.slave.cluster
149 - system.docker.swarm.manager
150 - cluster.${_param:cluster_name}.stacklight.server
151 params:
152 salt_master_host: ${_param:infra_config_deploy_address}
153 linux_system_codename: xenial
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000154 single_address: ${_param:stacklight_monitor_node03_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200155 keepalived_vip_priority: 102
156 mysql_cluster_role: slave
157 opencontrail_control_node01:
Petr Michalec4d366372017-09-18 13:54:53 +0200158 name: ${_param:opencontrail_control_node01_hostname}
159 domain: ${_param:cluster_domain}
160 classes:
161 - cluster.${_param:cluster_name}.opencontrail.control
Ales Komarekc12dd412017-06-27 16:24:42 +0200162 params:
Petr Michalec4d366372017-09-18 13:54:53 +0200163 salt_master_host: ${_param:reclass_config_master}
164 linux_system_codename: ${_param:opencontrail_control_system_codename}
165 single_address: ${_param:opencontrail_control_node01_address}
166 keepalived_vip_priority: 103
167 opencontrail_database_id: 1
Ales Komarekc12dd412017-06-27 16:24:42 +0200168 rabbitmq_cluster_role: master
169 opencontrail_control_node02:
Petr Michalec4d366372017-09-18 13:54:53 +0200170 name: ${_param:opencontrail_control_node02_hostname}
171 domain: ${_param:cluster_domain}
172 classes:
173 - cluster.${_param:cluster_name}.opencontrail.control
Ales Komarekc12dd412017-06-27 16:24:42 +0200174 params:
Petr Michalec4d366372017-09-18 13:54:53 +0200175 salt_master_host: ${_param:reclass_config_master}
176 linux_system_codename: ${_param:opencontrail_control_system_codename}
177 single_address: ${_param:opencontrail_control_node02_address}
178 keepalived_vip_priority: 102
179 opencontrail_database_id: 2
Ales Komarekc12dd412017-06-27 16:24:42 +0200180 rabbitmq_cluster_role: slave
181 opencontrail_control_node03:
Petr Michalec4d366372017-09-18 13:54:53 +0200182 name: ${_param:opencontrail_control_node03_hostname}
183 domain: ${_param:cluster_domain}
184 classes:
185 - cluster.${_param:cluster_name}.opencontrail.control
Ales Komarekc12dd412017-06-27 16:24:42 +0200186 params:
Petr Michalec4d366372017-09-18 13:54:53 +0200187 salt_master_host: ${_param:reclass_config_master}
188 linux_system_codename: ${_param:opencontrail_control_system_codename}
189 single_address: ${_param:opencontrail_control_node03_address}
190 keepalived_vip_priority: 101
191 opencontrail_database_id: 3
Ales Komarekc12dd412017-06-27 16:24:42 +0200192 rabbitmq_cluster_role: slave