blob: 580b4b222d385fe58ae8c55ca83a1e3f39e12f21 [file] [log] [blame]
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +02001classes:
Tatyana Leontovichc11c1b52018-01-26 13:58:39 +02002- system.linux.system.repo.mcp.apt_mirantis.ubuntu
3- system.linux.system.repo.mcp.apt_mirantis.saltstack_2016_3
Richard Felkl04250022017-10-20 13:55:43 +02004- system.linux.system.repo.mcp.salt
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +02005- system.openssh.client.lab
6- system.salt.master.pkg
7- system.salt.minion.ca.salt_master
8- system.salt.master.api
9- system.salt.minion.cert.k8s_server
Swann Croiset4e3e0842017-05-04 16:49:57 +020010- system.mysql.client
11- system.mysql.client.database.grafana
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020012- system.reclass.storage.salt
13- system.reclass.storage.system.kubernetes_control_cluster
Dmitry Kalashnik1085a992017-09-08 16:39:21 +040014- cluster.virtual-mcp11-k8s-calico.stacklight.proxy
15- 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}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020023 linux_system_codename: xenial
24 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
Simon Pasquiera4e38252017-04-28 11:14:29 +020025 salt_master_host: ${_param:infra_config_deploy_address}
Jiri Broulik432ae9c2017-08-17 10:24:23 +020026 salt:
27 master:
28 reactor:
29 reclass/minion/classify:
30 - salt://reclass/reactor/node_register.sls
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020031 reclass:
32 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020033 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>>
43 infra_config:
44 expression: <<node_hostname>>__equals__cfg01
45 cluster_param:
46 infra_config_address:
47 value_template: <<node_control_ip>>
48 infra_config_deploy_address:
49 value_template: <<node_deploy_ip>>
Dmitry Kalashnik1085a992017-09-08 16:39:21 +040050 cluster_domain:
51 value_template: <<node_domain>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020052 infra_proxy:
53 expression: <<node_hostname>>__startswith__prx
54 node_class:
55 value_template:
56 - cluster.<<node_cluster>>.stacklight.proxy
57 kubernetes_control01:
58 expression: <<node_hostname>>__equals__ctl01
59 cluster_param:
60 kubernetes_control_node01_address:
61 value_template: <<node_control_ip>>
62 kubernetes_control02:
63 expression: <<node_hostname>>__equals__ctl02
64 cluster_param:
65 kubernetes_control_node02_address:
66 value_template: <<node_control_ip>>
67 kubernetes_control03:
68 expression: <<node_hostname>>__equals__ctl03
69 cluster_param:
70 kubernetes_control_node03_address:
71 value_template: <<node_control_ip>>
72 kubernetes_compute:
73 expression: <<node_hostname>>__startswith__cmp
74 node_class:
75 value_template:
76 - cluster.<<node_cluster>>.kubernetes.compute
77 stacklight_monitor01:
78 expression: <<node_hostname>>__equals__mon01
79 cluster_param:
80 stacklight_node01_address:
81 value_template: <<node_control_ip>>
82 stacklight_monitor02:
83 expression: <<node_hostname>>__equals__mon02
84 cluster_param:
85 stacklight_node02_address:
86 value_template: <<node_control_ip>>
87 stacklight_monitor03:
88 expression: <<node_hostname>>__equals__mon03
89 cluster_param:
90 stacklight_node03_address:
91 value_template: <<node_control_ip>>
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020092 node:
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020093 prx_node:
94 name: ${_param:kubernetes_proxy_node01_hostname}
95 domain: ${_param:cluster_domain}
96 classes:
Simon Pasquiera7a449d2017-05-11 10:03:41 +020097 - cluster.${_param:cluster_name}.stacklight.proxy
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020098 params:
Simon Pasquiera4e38252017-04-28 11:14:29 +020099 salt_master_host: ${_param:infra_config_deploy_address}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +0200100 linux_system_codename: xenial
101 single_address: ${_param:kubernetes_proxy_node01_address}
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200102 stacklight_node01:
103 name: ${_param:stacklight_node01_hostname}
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200104 domain: ${_param:cluster_domain}
105 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200106 - service.galera.master.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200107 - system.docker.swarm.master
108 - cluster.${_param:cluster_name}.stacklight.client
109 - cluster.${_param:cluster_name}.stacklight.server
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200110 params:
Simon Pasquiera4e38252017-04-28 11:14:29 +0200111 salt_master_host: ${_param:infra_config_deploy_address}
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200112 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200113 single_address: ${_param:stacklight_node01_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200114 keepalived_vip_priority: 100
Swann Croiset4e3e0842017-05-04 16:49:57 +0200115 mysql_cluster_role: master
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200116 stacklight_node02:
117 name: ${_param:stacklight_node02_hostname}
Simon Pasquiera4e38252017-04-28 11:14:29 +0200118 domain: ${_param:cluster_domain}
119 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200120 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200121 - system.docker.swarm.manager
122 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquiera4e38252017-04-28 11:14:29 +0200123 params:
124 salt_master_host: ${_param:infra_config_deploy_address}
125 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200126 single_address: ${_param:stacklight_node02_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200127 keepalived_vip_priority: 101
Swann Croiset4e3e0842017-05-04 16:49:57 +0200128 mysql_cluster_role: slave
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200129 stacklight_node03:
130 name: ${_param:stacklight_node03_hostname}
Simon Pasquiera4e38252017-04-28 11:14:29 +0200131 domain: ${_param:cluster_domain}
132 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200133 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200134 - system.docker.swarm.manager
135 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquiera4e38252017-04-28 11:14:29 +0200136 params:
137 salt_master_host: ${_param:infra_config_deploy_address}
138 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200139 single_address: ${_param:stacklight_node03_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200140 keepalived_vip_priority: 102
Jiri Broulikd3a38672017-08-22 14:15:09 +0200141 mysql_cluster_role: slave
142 kubernetes_compute_node01:
143 name: ${_param:kubernetes_compute_node01_hostname}
144 domain: ${_param:cluster_domain}
145 classes:
146 - cluster.${_param:cluster_name}.kubernetes.compute
147 params:
148 salt_master_host: ${_param:infra_config_deploy_address}
149 linux_system_codename: xenial
150 single_address: ${_param:kubernetes_compute_node01_address}
151 kubernetes_compute_node02:
152 name: ${_param:kubernetes_compute_node02_hostname}
153 domain: ${_param:cluster_domain}
154 classes:
155 - cluster.${_param:cluster_name}.kubernetes.compute
156 params:
157 salt_master_host: ${_param:infra_config_deploy_address}
158 linux_system_codename: xenial
Dmitry Kalashnik1085a992017-09-08 16:39:21 +0400159 single_address: ${_param:kubernetes_compute_node02_address}