blob: 69599713d44b39d215b0791fc39796525460d487 [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
10- 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
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040015- system.sphinx.server.doc.reclass
Dmitry Kalashnik1085a992017-09-08 16:39:21 +040016- cluster.virtual-mcp11-k8s-calico.stacklight.proxy
17- cluster.virtual-mcp11-k8s-calico
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020018parameters:
19 _param:
20 salt_master_base_environment: prd
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +020021 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020022 reclass_data_revision: master
23 reclass_config_master: ${_param:infra_config_deploy_address}
24 single_address: ${_param:infra_config_address}
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040025 deploy_address: ${_param:infra_config_deploy_address}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020026 linux_system_codename: xenial
27 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
Simon Pasquiera4e38252017-04-28 11:14:29 +020028 salt_master_host: ${_param:infra_config_deploy_address}
Jiri Broulik432ae9c2017-08-17 10:24:23 +020029 salt:
30 master:
31 reactor:
32 reclass/minion/classify:
33 - salt://reclass/reactor/node_register.sls
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020034 reclass:
35 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020036 class_mapping:
37 common_node:
38 expression: all
39 node_param:
40 single_address:
41 value_template: <<node_control_ip>>
42 linux_system_codename:
43 value_template: <<node_os>>
44 salt_master_host:
45 value_template: <<node_master_ip>>
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040046 deploy_address:
47 value_template: <<node_deploy_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020048 infra_config:
49 expression: <<node_hostname>>__equals__cfg01
50 cluster_param:
51 infra_config_address:
52 value_template: <<node_control_ip>>
53 infra_config_deploy_address:
54 value_template: <<node_deploy_ip>>
Dmitry Kalashnik1085a992017-09-08 16:39:21 +040055 cluster_domain:
56 value_template: <<node_domain>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020057 infra_proxy:
58 expression: <<node_hostname>>__startswith__prx
59 node_class:
60 value_template:
61 - cluster.<<node_cluster>>.stacklight.proxy
62 kubernetes_control01:
63 expression: <<node_hostname>>__equals__ctl01
64 cluster_param:
65 kubernetes_control_node01_address:
66 value_template: <<node_control_ip>>
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040067 kubernetes_control_node01_deploy_address:
68 value_template: <<node_deploy_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020069 kubernetes_control02:
70 expression: <<node_hostname>>__equals__ctl02
71 cluster_param:
72 kubernetes_control_node02_address:
73 value_template: <<node_control_ip>>
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040074 kubernetes_control_node02_deploy_address:
75 value_template: <<node_deploy_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020076 kubernetes_control03:
77 expression: <<node_hostname>>__equals__ctl03
78 cluster_param:
79 kubernetes_control_node03_address:
80 value_template: <<node_control_ip>>
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040081 kubernetes_control_node03_deploy_address:
82 value_template: <<node_deploy_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020083 kubernetes_compute:
84 expression: <<node_hostname>>__startswith__cmp
85 node_class:
86 value_template:
87 - cluster.<<node_cluster>>.kubernetes.compute
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040088 node_param:
89 deploy_address:
90 value_template: <<node_deploy_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020091 stacklight_monitor01:
92 expression: <<node_hostname>>__equals__mon01
93 cluster_param:
94 stacklight_node01_address:
95 value_template: <<node_control_ip>>
96 stacklight_monitor02:
97 expression: <<node_hostname>>__equals__mon02
98 cluster_param:
99 stacklight_node02_address:
100 value_template: <<node_control_ip>>
101 stacklight_monitor03:
102 expression: <<node_hostname>>__equals__mon03
103 cluster_param:
104 stacklight_node03_address:
105 value_template: <<node_control_ip>>
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +0200106 node:
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +0200107 prx_node:
108 name: ${_param:kubernetes_proxy_node01_hostname}
109 domain: ${_param:cluster_domain}
110 classes:
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200111 - cluster.${_param:cluster_name}.stacklight.proxy
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +0200112 params:
Simon Pasquiera4e38252017-04-28 11:14:29 +0200113 salt_master_host: ${_param:infra_config_deploy_address}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +0200114 linux_system_codename: xenial
115 single_address: ${_param:kubernetes_proxy_node01_address}
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200116 stacklight_node01:
117 name: ${_param:stacklight_node01_hostname}
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200118 domain: ${_param:cluster_domain}
119 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200120 - service.galera.master.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200121 - system.docker.swarm.master
122 - cluster.${_param:cluster_name}.stacklight.client
123 - cluster.${_param:cluster_name}.stacklight.server
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200124 params:
Simon Pasquiera4e38252017-04-28 11:14:29 +0200125 salt_master_host: ${_param:infra_config_deploy_address}
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200126 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200127 single_address: ${_param:stacklight_node01_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200128 keepalived_vip_priority: 100
Swann Croiset4e3e0842017-05-04 16:49:57 +0200129 mysql_cluster_role: master
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200130 stacklight_node02:
131 name: ${_param:stacklight_node02_hostname}
Simon Pasquiera4e38252017-04-28 11:14:29 +0200132 domain: ${_param:cluster_domain}
133 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200134 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200135 - system.docker.swarm.manager
136 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquiera4e38252017-04-28 11:14:29 +0200137 params:
138 salt_master_host: ${_param:infra_config_deploy_address}
139 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200140 single_address: ${_param:stacklight_node02_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200141 keepalived_vip_priority: 101
Swann Croiset4e3e0842017-05-04 16:49:57 +0200142 mysql_cluster_role: slave
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200143 stacklight_node03:
144 name: ${_param:stacklight_node03_hostname}
Simon Pasquiera4e38252017-04-28 11:14:29 +0200145 domain: ${_param:cluster_domain}
146 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200147 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200148 - system.docker.swarm.manager
149 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquiera4e38252017-04-28 11:14:29 +0200150 params:
151 salt_master_host: ${_param:infra_config_deploy_address}
152 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200153 single_address: ${_param:stacklight_node03_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200154 keepalived_vip_priority: 102
Jiri Broulikd3a38672017-08-22 14:15:09 +0200155 mysql_cluster_role: slave
156 kubernetes_compute_node01:
157 name: ${_param:kubernetes_compute_node01_hostname}
158 domain: ${_param:cluster_domain}
159 classes:
160 - cluster.${_param:cluster_name}.kubernetes.compute
161 params:
162 salt_master_host: ${_param:infra_config_deploy_address}
163 linux_system_codename: xenial
164 single_address: ${_param:kubernetes_compute_node01_address}
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +0400165 deploy_address: ${_param:kubernetes_compute_node01_deploy_address}
Jiri Broulikd3a38672017-08-22 14:15:09 +0200166 kubernetes_compute_node02:
167 name: ${_param:kubernetes_compute_node02_hostname}
168 domain: ${_param:cluster_domain}
169 classes:
170 - cluster.${_param:cluster_name}.kubernetes.compute
171 params:
172 salt_master_host: ${_param:infra_config_deploy_address}
173 linux_system_codename: xenial
Dmitry Kalashnik1085a992017-09-08 16:39:21 +0400174 single_address: ${_param:kubernetes_compute_node02_address}
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +0400175 deploy_address: ${_param:kubernetes_compute_node02_deploy_address}