blob: 5cf7d6cbe5e2861a653cec60fafd952dbfad7a7a [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
Sergey Kolekonov41ffdfa2018-10-30 19:47:23 +00008- system.salt.minion.cert.k8s_server
Ales Komarekc12dd412017-06-27 16:24:42 +02009- system.mysql.client
10- system.mysql.client.database.grafana
11- system.reclass.storage.salt
12- system.reclass.storage.system.kubernetes_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020013- cluster.sl-k8s-calico.stacklight.proxy
14- cluster.sl-k8s-calico
Ales Komarekc12dd412017-06-27 16:24:42 +020015parameters:
16 _param:
17 salt_master_base_environment: prd
18 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
19 reclass_data_revision: master
20 reclass_config_master: ${_param:infra_config_deploy_address}
21 single_address: ${_param:infra_config_address}
22 linux_system_codename: xenial
23 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
vitalygusev74db2b82018-03-20 19:16:08 +040024 salt_master_host: ${_param:infra_config_deploy_address}
Ildar Svetlovcac905c2018-08-07 18:37:17 +040025 deploy_address: ${_param:infra_config_deploy_address}
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000026 salt:
27 master:
28 reactor:
29 reclass/minion/classify:
30 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020031 reclass:
32 storage:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000033 class_mapping:
34 common_node:
35 expression: all
36 node_param:
37 single_address:
38 value_template: <<node_control_ip>>
39 linux_system_codename:
40 value_template: <<node_os>>
41 salt_master_host:
42 value_template: <<node_master_ip>>
Ildar Svetlovcac905c2018-08-07 18:37:17 +040043 deploy_address:
44 value_template: <<node_deploy_ip>>
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000045 infra_config:
vitalygusev74db2b82018-03-20 19:16:08 +040046 expression: <<node_hostname>>__equals__cfg01
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000047 cluster_param:
48 infra_config_address:
49 value_template: <<node_control_ip>>
50 infra_config_deploy_address:
51 value_template: <<node_deploy_ip>>
52 cluster_domain:
53 value_template: <<node_domain>>
54 infra_proxy:
55 expression: <<node_hostname>>__startswith__prx
56 node_class:
57 value_template:
58 - cluster.<<node_cluster>>.stacklight.proxy
59 kubernetes_control01:
60 expression: <<node_hostname>>__equals__ctl01
61 cluster_param:
62 kubernetes_control_node01_address:
63 value_template: <<node_control_ip>>
Ildar Svetlovcac905c2018-08-07 18:37:17 +040064 kubernetes_control_node01_deploy_address:
65 value_template: <<node_deploy_ip>>
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000066 kubernetes_control02:
67 expression: <<node_hostname>>__equals__ctl02
68 cluster_param:
69 kubernetes_control_node02_address:
70 value_template: <<node_control_ip>>
Ildar Svetlovcac905c2018-08-07 18:37:17 +040071 kubernetes_control_node02_deploy_address:
72 value_template: <<node_deploy_ip>>
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000073 kubernetes_control03:
74 expression: <<node_hostname>>__equals__ctl03
75 cluster_param:
76 kubernetes_control_node03_address:
77 value_template: <<node_control_ip>>
Ildar Svetlovcac905c2018-08-07 18:37:17 +040078 kubernetes_control_node03_deploy_address:
79 value_template: <<node_deploy_ip>>
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000080 kubernetes_compute:
81 expression: <<node_hostname>>__startswith__cmp
82 node_class:
83 value_template:
84 - cluster.<<node_cluster>>.kubernetes.compute
vitalygusev74db2b82018-03-20 19:16:08 +040085 node_param:
86 deploy_address:
87 value_template: <<node_deploy_ip>>
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000088 stacklight_monitor01:
89 expression: <<node_hostname>>__equals__mon01
90 cluster_param:
vitalygusev74db2b82018-03-20 19:16:08 +040091 stacklight_node01_address:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000092 value_template: <<node_control_ip>>
93 stacklight_monitor02:
94 expression: <<node_hostname>>__equals__mon02
95 cluster_param:
vitalygusev74db2b82018-03-20 19:16:08 +040096 stacklight_node02_address:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000097 value_template: <<node_control_ip>>
98 stacklight_monitor03:
99 expression: <<node_hostname>>__equals__mon03
100 cluster_param:
vitalygusev74db2b82018-03-20 19:16:08 +0400101 stacklight_node03_address:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +0000102 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +0200103 node:
vitalygusev74db2b82018-03-20 19:16:08 +0400104 prx_node:
105 name: ${_param:kubernetes_proxy_node01_hostname}
106 domain: ${_param:cluster_domain}
107 classes:
108 - cluster.${_param:cluster_name}.stacklight.proxy
109 params:
110 salt_master_host: ${_param:infra_config_deploy_address}
111 linux_system_codename: xenial
112 single_address: ${_param:kubernetes_proxy_node01_address}
113 stacklight_node01:
114 name: ${_param:stacklight_node01_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +0200115 domain: ${_param:cluster_domain}
116 classes:
Adam Tengler99446832017-07-11 12:43:05 +0000117 - service.galera.master.cluster
118 - system.docker.swarm.master
119 - cluster.${_param:cluster_name}.stacklight.client
120 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200121 params:
122 salt_master_host: ${_param:infra_config_deploy_address}
123 linux_system_codename: xenial
vitalygusev74db2b82018-03-20 19:16:08 +0400124 single_address: ${_param:stacklight_node01_address}
Adam Tengler99446832017-07-11 12:43:05 +0000125 keepalived_vip_priority: 100
126 mysql_cluster_role: master
vitalygusev74db2b82018-03-20 19:16:08 +0400127 stacklight_node02:
128 name: ${_param:stacklight_node02_hostname}
Adam Tengler99446832017-07-11 12:43:05 +0000129 domain: ${_param:cluster_domain}
130 classes:
131 - service.galera.slave.cluster
132 - system.docker.swarm.manager
133 - cluster.${_param:cluster_name}.stacklight.server
134 params:
135 salt_master_host: ${_param:infra_config_deploy_address}
136 linux_system_codename: xenial
vitalygusev74db2b82018-03-20 19:16:08 +0400137 single_address: ${_param:stacklight_node02_address}
Adam Tengler99446832017-07-11 12:43:05 +0000138 keepalived_vip_priority: 101
139 mysql_cluster_role: slave
vitalygusev74db2b82018-03-20 19:16:08 +0400140 stacklight_node03:
141 name: ${_param:stacklight_node03_hostname}
Adam Tengler99446832017-07-11 12:43:05 +0000142 domain: ${_param:cluster_domain}
143 classes:
144 - service.galera.slave.cluster
145 - system.docker.swarm.manager
146 - cluster.${_param:cluster_name}.stacklight.server
147 params:
148 salt_master_host: ${_param:infra_config_deploy_address}
149 linux_system_codename: xenial
vitalygusev74db2b82018-03-20 19:16:08 +0400150 single_address: ${_param:stacklight_node03_address}
Adam Tengler99446832017-07-11 12:43:05 +0000151 keepalived_vip_priority: 102
152 mysql_cluster_role: slave
Ildar Svetlovcac905c2018-08-07 18:37:17 +0400153 kubernetes_compute_node01:
154 name: ${_param:kubernetes_compute_node01_hostname}
155 domain: ${_param:cluster_domain}
156 classes:
157 - cluster.${_param:cluster_name}.kubernetes.compute
158 params:
159 salt_master_host: ${_param:infra_config_deploy_address}
160 linux_system_codename: xenial
161 single_address: ${_param:kubernetes_compute_node01_address}
162 deploy_address: ${_param:kubernetes_compute_node01_deploy_address}
163 kubernetes_compute_node02:
164 name: ${_param:kubernetes_compute_node02_hostname}
165 domain: ${_param:cluster_domain}
166 classes:
167 - cluster.${_param:cluster_name}.kubernetes.compute
168 params:
169 salt_master_host: ${_param:infra_config_deploy_address}
170 linux_system_codename: xenial
171 single_address: ${_param:kubernetes_compute_node02_address}
172 deploy_address: ${_param:kubernetes_compute_node02_deploy_address}