blob: 29f3b3fcd28e1b7dedeea9edad35d13f4649b56b [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
4- system.linux.system.repo.mcp.salt
Tatyana Leontovichc11c1b52018-01-26 13:58:39 +02005- system.linux.system.repo.mcp.apt_mirantis.ubuntu
6- system.linux.system.repo.mcp.apt_mirantis.saltstack_2016_3
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +02007- system.openssh.client.lab
8- system.salt.master.pkg
9- system.salt.minion.ca.salt_master
10- system.salt.master.api
11- system.salt.minion.cert.k8s_server
Swann Croiset4e3e0842017-05-04 16:49:57 +020012- system.mysql.client
13- system.mysql.client.database.grafana
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020014- system.reclass.storage.salt
15- system.reclass.storage.system.kubernetes_control_cluster
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040016- system.sphinx.server.doc.reclass
Dmitry Kalashnik1085a992017-09-08 16:39:21 +040017- cluster.virtual-mcp11-k8s-calico.stacklight.proxy
18- cluster.virtual-mcp11-k8s-calico
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020019parameters:
20 _param:
21 salt_master_base_environment: prd
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +020022 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020023 reclass_data_revision: master
24 reclass_config_master: ${_param:infra_config_deploy_address}
25 single_address: ${_param:infra_config_address}
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040026 deploy_address: ${_param:infra_config_deploy_address}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020027 linux_system_codename: xenial
28 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
Simon Pasquiera4e38252017-04-28 11:14:29 +020029 salt_master_host: ${_param:infra_config_deploy_address}
Jiri Broulik432ae9c2017-08-17 10:24:23 +020030 salt:
31 master:
32 reactor:
33 reclass/minion/classify:
34 - salt://reclass/reactor/node_register.sls
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020035 reclass:
36 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020037 class_mapping:
38 common_node:
39 expression: all
40 node_param:
41 single_address:
42 value_template: <<node_control_ip>>
43 linux_system_codename:
44 value_template: <<node_os>>
45 salt_master_host:
46 value_template: <<node_master_ip>>
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040047 deploy_address:
48 value_template: <<node_deploy_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020049 infra_config:
50 expression: <<node_hostname>>__equals__cfg01
51 cluster_param:
52 infra_config_address:
53 value_template: <<node_control_ip>>
54 infra_config_deploy_address:
55 value_template: <<node_deploy_ip>>
Dmitry Kalashnik1085a992017-09-08 16:39:21 +040056 cluster_domain:
57 value_template: <<node_domain>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020058 infra_proxy:
59 expression: <<node_hostname>>__startswith__prx
60 node_class:
61 value_template:
62 - cluster.<<node_cluster>>.stacklight.proxy
63 kubernetes_control01:
64 expression: <<node_hostname>>__equals__ctl01
65 cluster_param:
66 kubernetes_control_node01_address:
67 value_template: <<node_control_ip>>
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040068 kubernetes_control_node01_deploy_address:
69 value_template: <<node_deploy_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020070 kubernetes_control02:
71 expression: <<node_hostname>>__equals__ctl02
72 cluster_param:
73 kubernetes_control_node02_address:
74 value_template: <<node_control_ip>>
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040075 kubernetes_control_node02_deploy_address:
76 value_template: <<node_deploy_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020077 kubernetes_control03:
78 expression: <<node_hostname>>__equals__ctl03
79 cluster_param:
80 kubernetes_control_node03_address:
81 value_template: <<node_control_ip>>
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040082 kubernetes_control_node03_deploy_address:
83 value_template: <<node_deploy_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020084 kubernetes_compute:
85 expression: <<node_hostname>>__startswith__cmp
86 node_class:
87 value_template:
88 - cluster.<<node_cluster>>.kubernetes.compute
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040089 node_param:
90 deploy_address:
91 value_template: <<node_deploy_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020092 stacklight_monitor01:
93 expression: <<node_hostname>>__equals__mon01
94 cluster_param:
95 stacklight_node01_address:
96 value_template: <<node_control_ip>>
97 stacklight_monitor02:
98 expression: <<node_hostname>>__equals__mon02
99 cluster_param:
100 stacklight_node02_address:
101 value_template: <<node_control_ip>>
102 stacklight_monitor03:
103 expression: <<node_hostname>>__equals__mon03
104 cluster_param:
105 stacklight_node03_address:
106 value_template: <<node_control_ip>>
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +0200107 node:
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +0200108 prx_node:
109 name: ${_param:kubernetes_proxy_node01_hostname}
110 domain: ${_param:cluster_domain}
111 classes:
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200112 - cluster.${_param:cluster_name}.stacklight.proxy
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +0200113 params:
Simon Pasquiera4e38252017-04-28 11:14:29 +0200114 salt_master_host: ${_param:infra_config_deploy_address}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +0200115 linux_system_codename: xenial
116 single_address: ${_param:kubernetes_proxy_node01_address}
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200117 stacklight_node01:
118 name: ${_param:stacklight_node01_hostname}
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200119 domain: ${_param:cluster_domain}
120 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200121 - service.galera.master.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200122 - system.docker.swarm.master
123 - cluster.${_param:cluster_name}.stacklight.client
124 - cluster.${_param:cluster_name}.stacklight.server
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200125 params:
Simon Pasquiera4e38252017-04-28 11:14:29 +0200126 salt_master_host: ${_param:infra_config_deploy_address}
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200127 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200128 single_address: ${_param:stacklight_node01_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200129 keepalived_vip_priority: 100
Swann Croiset4e3e0842017-05-04 16:49:57 +0200130 mysql_cluster_role: master
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200131 stacklight_node02:
132 name: ${_param:stacklight_node02_hostname}
Simon Pasquiera4e38252017-04-28 11:14:29 +0200133 domain: ${_param:cluster_domain}
134 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200135 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200136 - system.docker.swarm.manager
137 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquiera4e38252017-04-28 11:14:29 +0200138 params:
139 salt_master_host: ${_param:infra_config_deploy_address}
140 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200141 single_address: ${_param:stacklight_node02_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200142 keepalived_vip_priority: 101
Swann Croiset4e3e0842017-05-04 16:49:57 +0200143 mysql_cluster_role: slave
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200144 stacklight_node03:
145 name: ${_param:stacklight_node03_hostname}
Simon Pasquiera4e38252017-04-28 11:14:29 +0200146 domain: ${_param:cluster_domain}
147 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200148 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200149 - system.docker.swarm.manager
150 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquiera4e38252017-04-28 11:14:29 +0200151 params:
152 salt_master_host: ${_param:infra_config_deploy_address}
153 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200154 single_address: ${_param:stacklight_node03_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200155 keepalived_vip_priority: 102
Jiri Broulikd3a38672017-08-22 14:15:09 +0200156 mysql_cluster_role: slave
157 kubernetes_compute_node01:
158 name: ${_param:kubernetes_compute_node01_hostname}
159 domain: ${_param:cluster_domain}
160 classes:
161 - cluster.${_param:cluster_name}.kubernetes.compute
162 params:
163 salt_master_host: ${_param:infra_config_deploy_address}
164 linux_system_codename: xenial
165 single_address: ${_param:kubernetes_compute_node01_address}
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +0400166 deploy_address: ${_param:kubernetes_compute_node01_deploy_address}
Jiri Broulikd3a38672017-08-22 14:15:09 +0200167 kubernetes_compute_node02:
168 name: ${_param:kubernetes_compute_node02_hostname}
169 domain: ${_param:cluster_domain}
170 classes:
171 - cluster.${_param:cluster_name}.kubernetes.compute
172 params:
173 salt_master_host: ${_param:infra_config_deploy_address}
174 linux_system_codename: xenial
Dmitry Kalashnik1085a992017-09-08 16:39:21 +0400175 single_address: ${_param:kubernetes_compute_node02_address}
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +0400176 deploy_address: ${_param:kubernetes_compute_node02_deploy_address}