blob: 61ab89585a210864f4bc3b4675ee94f4fedcabba [file] [log] [blame]
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +02001classes:
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +04002- system.linux.system.single
3- system.linux.system.single.debian
Martin Polreicha0addcc2018-06-25 11:32:52 +02004- system.linux.system.repo.mcp.apt_mirantis.saltstack
Tatyana Leontovichc11c1b52018-01-26 13:58:39 +02005- system.linux.system.repo.mcp.apt_mirantis.ubuntu
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +02006- system.openssh.client.lab
7- system.salt.master.pkg
8- system.salt.minion.ca.salt_master
9- system.salt.master.api
Sergey Kolekonov41ffdfa2018-10-30 19:47:23 +000010- system.salt.minion.cert.k8s_server
Swann Croiset4e3e0842017-05-04 16:49:57 +020011- system.mysql.client
12- system.mysql.client.database.grafana
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020013- system.reclass.storage.salt
14- system.reclass.storage.system.kubernetes_control_cluster
Dmitry Kalashnik1085a992017-09-08 16:39:21 +040015- cluster.virtual-mcp11-k8s-calico
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020016parameters:
17 _param:
18 salt_master_base_environment: prd
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +020019 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020020 reclass_data_revision: master
21 reclass_config_master: ${_param:infra_config_deploy_address}
22 single_address: ${_param:infra_config_address}
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040023 deploy_address: ${_param:infra_config_deploy_address}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020024 linux_system_codename: xenial
25 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
Simon Pasquiera4e38252017-04-28 11:14:29 +020026 salt_master_host: ${_param:infra_config_deploy_address}
Jiri Broulik432ae9c2017-08-17 10:24:23 +020027 salt:
28 master:
29 reactor:
30 reclass/minion/classify:
31 - salt://reclass/reactor/node_register.sls
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020032 reclass:
33 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020034 class_mapping:
35 common_node:
36 expression: all
37 node_param:
38 single_address:
39 value_template: <<node_control_ip>>
40 linux_system_codename:
41 value_template: <<node_os>>
42 salt_master_host:
43 value_template: <<node_master_ip>>
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040044 deploy_address:
45 value_template: <<node_deploy_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020046 infra_config:
47 expression: <<node_hostname>>__equals__cfg01
48 cluster_param:
49 infra_config_address:
50 value_template: <<node_control_ip>>
51 infra_config_deploy_address:
52 value_template: <<node_deploy_ip>>
Dmitry Kalashnik1085a992017-09-08 16:39:21 +040053 cluster_domain:
54 value_template: <<node_domain>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020055 infra_proxy:
56 expression: <<node_hostname>>__startswith__prx
57 node_class:
58 value_template:
59 - cluster.<<node_cluster>>.stacklight.proxy
60 kubernetes_control01:
61 expression: <<node_hostname>>__equals__ctl01
62 cluster_param:
63 kubernetes_control_node01_address:
64 value_template: <<node_control_ip>>
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040065 kubernetes_control_node01_deploy_address:
66 value_template: <<node_deploy_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020067 kubernetes_control02:
68 expression: <<node_hostname>>__equals__ctl02
69 cluster_param:
70 kubernetes_control_node02_address:
71 value_template: <<node_control_ip>>
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040072 kubernetes_control_node02_deploy_address:
73 value_template: <<node_deploy_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020074 kubernetes_control03:
75 expression: <<node_hostname>>__equals__ctl03
76 cluster_param:
77 kubernetes_control_node03_address:
78 value_template: <<node_control_ip>>
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040079 kubernetes_control_node03_deploy_address:
80 value_template: <<node_deploy_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020081 kubernetes_compute:
82 expression: <<node_hostname>>__startswith__cmp
83 node_class:
84 value_template:
85 - cluster.<<node_cluster>>.kubernetes.compute
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040086 node_param:
87 deploy_address:
88 value_template: <<node_deploy_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020089 stacklight_monitor01:
90 expression: <<node_hostname>>__equals__mon01
91 cluster_param:
92 stacklight_node01_address:
93 value_template: <<node_control_ip>>
94 stacklight_monitor02:
95 expression: <<node_hostname>>__equals__mon02
96 cluster_param:
97 stacklight_node02_address:
98 value_template: <<node_control_ip>>
99 stacklight_monitor03:
100 expression: <<node_hostname>>__equals__mon03
101 cluster_param:
102 stacklight_node03_address:
103 value_template: <<node_control_ip>>
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +0200104 node:
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +0200105 prx_node:
106 name: ${_param:kubernetes_proxy_node01_hostname}
107 domain: ${_param:cluster_domain}
108 classes:
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200109 - cluster.${_param:cluster_name}.stacklight.proxy
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +0200110 params:
Simon Pasquiera4e38252017-04-28 11:14:29 +0200111 salt_master_host: ${_param:infra_config_deploy_address}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +0200112 linux_system_codename: xenial
113 single_address: ${_param:kubernetes_proxy_node01_address}
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200114 stacklight_node01:
115 name: ${_param:stacklight_node01_hostname}
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200116 domain: ${_param:cluster_domain}
117 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200118 - service.galera.master.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200119 - system.docker.swarm.master
120 - cluster.${_param:cluster_name}.stacklight.client
121 - cluster.${_param:cluster_name}.stacklight.server
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200122 params:
Simon Pasquiera4e38252017-04-28 11:14:29 +0200123 salt_master_host: ${_param:infra_config_deploy_address}
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200124 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200125 single_address: ${_param:stacklight_node01_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200126 keepalived_vip_priority: 100
Swann Croiset4e3e0842017-05-04 16:49:57 +0200127 mysql_cluster_role: master
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200128 stacklight_node02:
129 name: ${_param:stacklight_node02_hostname}
Simon Pasquiera4e38252017-04-28 11:14:29 +0200130 domain: ${_param:cluster_domain}
131 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200132 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200133 - system.docker.swarm.manager
134 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquiera4e38252017-04-28 11:14:29 +0200135 params:
136 salt_master_host: ${_param:infra_config_deploy_address}
137 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200138 single_address: ${_param:stacklight_node02_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200139 keepalived_vip_priority: 101
Swann Croiset4e3e0842017-05-04 16:49:57 +0200140 mysql_cluster_role: slave
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200141 stacklight_node03:
142 name: ${_param:stacklight_node03_hostname}
Simon Pasquiera4e38252017-04-28 11:14:29 +0200143 domain: ${_param:cluster_domain}
144 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200145 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200146 - system.docker.swarm.manager
147 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquiera4e38252017-04-28 11:14:29 +0200148 params:
149 salt_master_host: ${_param:infra_config_deploy_address}
150 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200151 single_address: ${_param:stacklight_node03_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200152 keepalived_vip_priority: 102
Jiri Broulikd3a38672017-08-22 14:15:09 +0200153 mysql_cluster_role: slave
154 kubernetes_compute_node01:
155 name: ${_param:kubernetes_compute_node01_hostname}
156 domain: ${_param:cluster_domain}
157 classes:
158 - cluster.${_param:cluster_name}.kubernetes.compute
159 params:
160 salt_master_host: ${_param:infra_config_deploy_address}
161 linux_system_codename: xenial
162 single_address: ${_param:kubernetes_compute_node01_address}
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +0400163 deploy_address: ${_param:kubernetes_compute_node01_deploy_address}
Jiri Broulikd3a38672017-08-22 14:15:09 +0200164 kubernetes_compute_node02:
165 name: ${_param:kubernetes_compute_node02_hostname}
166 domain: ${_param:cluster_domain}
167 classes:
168 - cluster.${_param:cluster_name}.kubernetes.compute
169 params:
170 salt_master_host: ${_param:infra_config_deploy_address}
171 linux_system_codename: xenial
Dmitry Kalashnik1085a992017-09-08 16:39:21 +0400172 single_address: ${_param:kubernetes_compute_node02_address}
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +0400173 deploy_address: ${_param:kubernetes_compute_node02_deploy_address}