blob: 4e98584b259d1058a425863bee4b028d3d25c6bb [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
vitalygusev74db2b82018-03-20 19:16:08 +04002- system.linux.system.repo.mcp.apt_mirantis.ubuntu
Martin Polreicha0addcc2018-06-25 11:32:52 +02003- system.linux.system.repo.mcp.apt_mirantis.saltstack
Ales Komarekc12dd412017-06-27 16:24:42 +02004- system.openssh.client.lab
5- system.salt.master.pkg
6- system.salt.minion.ca.salt_master
7- system.salt.master.api
Ales Komarekc12dd412017-06-27 16:24:42 +02008- system.mysql.client
9- system.mysql.client.database.grafana
10- system.reclass.storage.salt
11- system.reclass.storage.system.kubernetes_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020012- cluster.sl-k8s-calico.stacklight.proxy
13- cluster.sl-k8s-calico
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.git"
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
22 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
vitalygusev74db2b82018-03-20 19:16:08 +040023 salt_master_host: ${_param:infra_config_deploy_address}
Ildar Svetlovcac905c2018-08-07 18:37:17 +040024 deploy_address: ${_param:infra_config_deploy_address}
Martin Polreichd8dc1ed2017-08-16 13:24:26 +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:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000032 class_mapping:
33 common_node:
34 expression: all
35 node_param:
36 single_address:
37 value_template: <<node_control_ip>>
38 linux_system_codename:
39 value_template: <<node_os>>
40 salt_master_host:
41 value_template: <<node_master_ip>>
Ildar Svetlovcac905c2018-08-07 18:37:17 +040042 deploy_address:
43 value_template: <<node_deploy_ip>>
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000044 infra_config:
vitalygusev74db2b82018-03-20 19:16:08 +040045 expression: <<node_hostname>>__equals__cfg01
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000046 cluster_param:
47 infra_config_address:
48 value_template: <<node_control_ip>>
49 infra_config_deploy_address:
50 value_template: <<node_deploy_ip>>
51 cluster_domain:
52 value_template: <<node_domain>>
53 infra_proxy:
54 expression: <<node_hostname>>__startswith__prx
55 node_class:
56 value_template:
57 - cluster.<<node_cluster>>.stacklight.proxy
58 kubernetes_control01:
59 expression: <<node_hostname>>__equals__ctl01
60 cluster_param:
61 kubernetes_control_node01_address:
62 value_template: <<node_control_ip>>
Ildar Svetlovcac905c2018-08-07 18:37:17 +040063 kubernetes_control_node01_deploy_address:
64 value_template: <<node_deploy_ip>>
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000065 kubernetes_control02:
66 expression: <<node_hostname>>__equals__ctl02
67 cluster_param:
68 kubernetes_control_node02_address:
69 value_template: <<node_control_ip>>
Ildar Svetlovcac905c2018-08-07 18:37:17 +040070 kubernetes_control_node02_deploy_address:
71 value_template: <<node_deploy_ip>>
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000072 kubernetes_control03:
73 expression: <<node_hostname>>__equals__ctl03
74 cluster_param:
75 kubernetes_control_node03_address:
76 value_template: <<node_control_ip>>
Ildar Svetlovcac905c2018-08-07 18:37:17 +040077 kubernetes_control_node03_deploy_address:
78 value_template: <<node_deploy_ip>>
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000079 kubernetes_compute:
80 expression: <<node_hostname>>__startswith__cmp
81 node_class:
82 value_template:
83 - cluster.<<node_cluster>>.kubernetes.compute
vitalygusev74db2b82018-03-20 19:16:08 +040084 node_param:
85 deploy_address:
86 value_template: <<node_deploy_ip>>
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000087 stacklight_monitor01:
88 expression: <<node_hostname>>__equals__mon01
89 cluster_param:
vitalygusev74db2b82018-03-20 19:16:08 +040090 stacklight_node01_address:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000091 value_template: <<node_control_ip>>
92 stacklight_monitor02:
93 expression: <<node_hostname>>__equals__mon02
94 cluster_param:
vitalygusev74db2b82018-03-20 19:16:08 +040095 stacklight_node02_address:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000096 value_template: <<node_control_ip>>
97 stacklight_monitor03:
98 expression: <<node_hostname>>__equals__mon03
99 cluster_param:
vitalygusev74db2b82018-03-20 19:16:08 +0400100 stacklight_node03_address:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +0000101 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200102 node:
vitalygusev74db2b82018-03-20 19:16:08 +0400103 prx_node:
104 name: ${_param:kubernetes_proxy_node01_hostname}
105 domain: ${_param:cluster_domain}
106 classes:
107 - cluster.${_param:cluster_name}.stacklight.proxy
108 params:
109 salt_master_host: ${_param:infra_config_deploy_address}
110 linux_system_codename: xenial
111 single_address: ${_param:kubernetes_proxy_node01_address}
112 stacklight_node01:
113 name: ${_param:stacklight_node01_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +0200114 domain: ${_param:cluster_domain}
115 classes:
Adam Tengler99446832017-07-11 12:43:05 +0000116 - service.galera.master.cluster
117 - system.docker.swarm.master
118 - cluster.${_param:cluster_name}.stacklight.client
119 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200120 params:
121 salt_master_host: ${_param:infra_config_deploy_address}
122 linux_system_codename: xenial
vitalygusev74db2b82018-03-20 19:16:08 +0400123 single_address: ${_param:stacklight_node01_address}
Adam Tengler99446832017-07-11 12:43:05 +0000124 keepalived_vip_priority: 100
125 mysql_cluster_role: master
vitalygusev74db2b82018-03-20 19:16:08 +0400126 stacklight_node02:
127 name: ${_param:stacklight_node02_hostname}
Adam Tengler99446832017-07-11 12:43:05 +0000128 domain: ${_param:cluster_domain}
129 classes:
130 - service.galera.slave.cluster
131 - system.docker.swarm.manager
132 - cluster.${_param:cluster_name}.stacklight.server
133 params:
134 salt_master_host: ${_param:infra_config_deploy_address}
135 linux_system_codename: xenial
vitalygusev74db2b82018-03-20 19:16:08 +0400136 single_address: ${_param:stacklight_node02_address}
Adam Tengler99446832017-07-11 12:43:05 +0000137 keepalived_vip_priority: 101
138 mysql_cluster_role: slave
vitalygusev74db2b82018-03-20 19:16:08 +0400139 stacklight_node03:
140 name: ${_param:stacklight_node03_hostname}
Adam Tengler99446832017-07-11 12:43:05 +0000141 domain: ${_param:cluster_domain}
142 classes:
143 - service.galera.slave.cluster
144 - system.docker.swarm.manager
145 - cluster.${_param:cluster_name}.stacklight.server
146 params:
147 salt_master_host: ${_param:infra_config_deploy_address}
148 linux_system_codename: xenial
vitalygusev74db2b82018-03-20 19:16:08 +0400149 single_address: ${_param:stacklight_node03_address}
Adam Tengler99446832017-07-11 12:43:05 +0000150 keepalived_vip_priority: 102
151 mysql_cluster_role: slave
Ildar Svetlovcac905c2018-08-07 18:37:17 +0400152 kubernetes_compute_node01:
153 name: ${_param:kubernetes_compute_node01_hostname}
154 domain: ${_param:cluster_domain}
155 classes:
156 - cluster.${_param:cluster_name}.kubernetes.compute
157 params:
158 salt_master_host: ${_param:infra_config_deploy_address}
159 linux_system_codename: xenial
160 single_address: ${_param:kubernetes_compute_node01_address}
161 deploy_address: ${_param:kubernetes_compute_node01_deploy_address}
162 kubernetes_compute_node02:
163 name: ${_param:kubernetes_compute_node02_hostname}
164 domain: ${_param:cluster_domain}
165 classes:
166 - cluster.${_param:cluster_name}.kubernetes.compute
167 params:
168 salt_master_host: ${_param:infra_config_deploy_address}
169 linux_system_codename: xenial
170 single_address: ${_param:kubernetes_compute_node02_address}
171 deploy_address: ${_param:kubernetes_compute_node02_deploy_address}