blob: d582161b08b31aa9384de184468c028ec50eeda6 [file] [log] [blame]
Adam Tengler048f45d2017-07-10 11:06:20 +00001classes:
Ales Komarekc12dd412017-06-27 16:24:42 +02002- system.openssh.client.lab
3- system.salt.master.pkg
4- system.salt.minion.ca.salt_master
5- system.salt.master.api
Sergey Kolekonov41ffdfa2018-10-30 19:47:23 +00006- system.salt.minion.cert.k8s_server
Ales Komarekc12dd412017-06-27 16:24:42 +02007- system.reclass.storage.salt
8- system.reclass.storage.system.kubernetes_control_cluster
Victor Ryzhenkin4e9bf572018-12-20 00:43:16 +04009- cluster.k8s-ha-calico.infra
Ales Komarekc12dd412017-06-27 16:24:42 +020010parameters:
11 _param:
12 salt_master_base_environment: prd
13 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
14 reclass_data_revision: master
15 reclass_config_master: ${_param:infra_config_deploy_address}
16 single_address: ${_param:infra_config_address}
vrovachev30593852017-09-18 17:32:53 +040017 deploy_address: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020018 linux_system_codename: xenial
19 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
20 salt_master_host: 127.0.0.1
Petr Michalec87f39682017-08-17 06:54:05 +020021 salt_master_environment_revision: master
22 salt_master_environment_repository: 'https://github.com/salt-formulas'
Ales Komarekc12dd412017-06-27 16:24:42 +020023 salt:
24 master:
25 reactor:
26 reclass/minion/classify:
27 - salt://reclass/reactor/node_register.sls
28 reclass:
29 storage:
30 class_mapping:
31 common_node:
32 expression: all
33 node_param:
34 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000035 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020036 linux_system_codename:
37 value_template: <<node_os>>
38 salt_master_host:
39 value_template: <<node_master_ip>>
vrovachev30593852017-09-18 17:32:53 +040040 deploy_address:
41 value_template: <<node_deploy_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020042 infra_config:
43 expression: <<node_hostname>>__startswith__cfg
44 cluster_param:
45 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000046 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020047 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000048 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000049 cluster_domain:
50 value_template: <<node_domain>>
Ales Komarekc12dd412017-06-27 16:24:42 +020051 kubernetes_control01:
52 expression: <<node_hostname>>__equals__ctl01
53 cluster_param:
54 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000055 value_template: <<node_control_ip>>
vrovachev30593852017-09-18 17:32:53 +040056 kubernetes_control_node01_deploy_address:
57 value_template: <<node_deploy_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020058 kubernetes_control02:
59 expression: <<node_hostname>>__equals__ctl02
60 cluster_param:
61 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000062 value_template: <<node_control_ip>>
vrovachev30593852017-09-18 17:32:53 +040063 kubernetes_control_node02_deploy_address:
64 value_template: <<node_deploy_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020065 kubernetes_control03:
66 expression: <<node_hostname>>__equals__ctl03
67 cluster_param:
68 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000069 value_template: <<node_control_ip>>
vrovachev30593852017-09-18 17:32:53 +040070 kubernetes_control_node03_deploy_address:
71 value_template: <<node_deploy_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020072 kubernetes_compute:
73 expression: <<node_hostname>>__startswith__cmp
74 node_class:
75 value_template:
76 - cluster.<<node_cluster>>.kubernetes.compute
vrovachev30593852017-09-18 17:32:53 +040077 node_param:
78 deploy_address:
79 value_template: <<node_deploy_ip>>