blob: ecb0b7f1a581118b581fdb4daa72ed6c957c4b27 [file] [log] [blame]
Ales Komarek6f7caae2017-05-17 16:30:06 +02001classes:
azvyagintsev2859f0e2018-06-11 17:45:47 +03002- 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 Komarek6f7caae2017-05-17 16:30:06 +02004- system.openssh.client.lab
5- system.salt.master.pkg
6- system.salt.minion.ca.salt_master
7- system.salt.master.api
8- system.salt.minion.cert.k8s_server
9- system.mysql.client
10- system.mysql.client.database.grafana
11- system.reclass.storage.salt
12- system.reclass.storage.system.kubernetes_control_cluster
Ales Komarekf2d1e392017-05-17 19:43:44 +020013- cluster.virtual-mcp11-k8s-calico-dyn
Ales Komarek6f7caae2017-05-17 16:30:06 +020014parameters:
15 _param:
16 salt_master_base_environment: prd
17 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
18 reclass_data_revision: master
19 reclass_config_master: ${_param:infra_config_deploy_address}
20 single_address: ${_param:infra_config_address}
21 linux_system_codename: xenial
22 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
Ales Komarekf2d1e392017-05-17 19:43:44 +020023 salt_master_host: 127.0.0.1
Ales Komarek6f7caae2017-05-17 16:30:06 +020024 salt:
25 master:
26 reactor:
27 reclass/minion/classify:
Ales Komarekf2d1e392017-05-17 19:43:44 +020028 - salt://reclass/reactor/node_register.sls
Ales Komarek6f7caae2017-05-17 16:30:06 +020029 reclass:
30 storage:
31 class_mapping:
32 common_node:
33 expression: all
34 node_param:
35 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000036 value_template: <<node_control_ip>>
Ales Komarek6f7caae2017-05-17 16:30:06 +020037 linux_system_codename:
38 value_template: <<node_os>>
39 salt_master_host:
40 value_template: <<node_master_ip>>
Ales Komarek80ad21c2017-05-19 11:26:49 +020041 infra_config:
Ales Komarek10629ca2017-05-17 20:30:38 +020042 expression: <<node_hostname>>__equals__cfg01
43 cluster_param:
44 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000045 value_template: <<node_control_ip>>
Ales Komarek10629ca2017-05-17 20:30:38 +020046 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000047 value_template: <<node_deploy_ip>>
Ales Komarek80ad21c2017-05-19 11:26:49 +020048 infra_proxy:
49 expression: <<node_hostname>>__startswith__prx
50 node_class:
51 value_template:
52 - cluster.<<node_cluster>>.stacklight.proxy
Ales Komarek6f7caae2017-05-17 16:30:06 +020053 kubernetes_control01:
54 expression: <<node_hostname>>__equals__ctl01
55 cluster_param:
56 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000057 value_template: <<node_control_ip>>
Ales Komarek6f7caae2017-05-17 16:30:06 +020058 kubernetes_control02:
59 expression: <<node_hostname>>__equals__ctl02
60 cluster_param:
Adam Tengler072f7782017-05-18 19:02:37 +020061 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000062 value_template: <<node_control_ip>>
Ales Komarek6f7caae2017-05-17 16:30:06 +020063 kubernetes_control03:
64 expression: <<node_hostname>>__equals__ctl03
65 cluster_param:
Adam Tengler072f7782017-05-18 19:02:37 +020066 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000067 value_template: <<node_control_ip>>
Ales Komarek6f7caae2017-05-17 16:30:06 +020068 kubernetes_compute:
69 expression: <<node_hostname>>__startswith__cmp
70 node_class:
71 value_template:
72 - cluster.<<node_cluster>>.kubernetes.compute
Ales Komarek80ad21c2017-05-19 11:26:49 +020073 stacklight_monitor01:
74 expression: <<node_hostname>>__equals__mon01
75 cluster_param:
76 stacklight_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000077 value_template: <<node_control_ip>>
Ales Komarek80ad21c2017-05-19 11:26:49 +020078 stacklight_monitor02:
79 expression: <<node_hostname>>__equals__mon02
80 cluster_param:
81 stacklight_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000082 value_template: <<node_control_ip>>
Ales Komarek80ad21c2017-05-19 11:26:49 +020083 stacklight_monitor03:
84 expression: <<node_hostname>>__equals__mon03
85 cluster_param:
86 stacklight_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000087 value_template: <<node_control_ip>>
Ales Komarek6f7caae2017-05-17 16:30:06 +020088 node:
89 prx_node:
90 name: ${_param:kubernetes_proxy_node01_hostname}
91 domain: ${_param:cluster_domain}
92 classes:
93 - cluster.${_param:cluster_name}.stacklight.proxy
94 params:
95 salt_master_host: ${_param:infra_config_deploy_address}
96 linux_system_codename: xenial
97 single_address: ${_param:kubernetes_proxy_node01_address}
98 stacklight_node01:
99 name: ${_param:stacklight_node01_hostname}
100 domain: ${_param:cluster_domain}
101 classes:
102 - service.galera.master.cluster
103 - system.docker.swarm.master
104 - cluster.${_param:cluster_name}.stacklight.client
105 - cluster.${_param:cluster_name}.stacklight.server
106 params:
107 salt_master_host: ${_param:infra_config_deploy_address}
108 linux_system_codename: xenial
109 single_address: ${_param:stacklight_node01_address}
110 keepalived_vip_priority: 100
111 mysql_cluster_role: master
112 stacklight_node02:
113 name: ${_param:stacklight_node02_hostname}
114 domain: ${_param:cluster_domain}
115 classes:
116 - service.galera.slave.cluster
117 - system.docker.swarm.manager
118 - cluster.${_param:cluster_name}.stacklight.server
119 params:
120 salt_master_host: ${_param:infra_config_deploy_address}
121 linux_system_codename: xenial
122 single_address: ${_param:stacklight_node02_address}
123 keepalived_vip_priority: 101
124 mysql_cluster_role: slave
125 stacklight_node03:
126 name: ${_param:stacklight_node03_hostname}
127 domain: ${_param:cluster_domain}
128 classes:
129 - service.galera.slave.cluster
130 - system.docker.swarm.manager
131 - cluster.${_param:cluster_name}.stacklight.server
132 params:
133 salt_master_host: ${_param:infra_config_deploy_address}
134 linux_system_codename: xenial
135 single_address: ${_param:stacklight_node03_address}
136 keepalived_vip_priority: 102
137 mysql_cluster_role: slave