blob: c505d53e5bc472ee8b11960b2ccc4fff7b447c66 [file] [log] [blame]
Adam Tengler048f45d2017-07-10 11:06:20 +00001classes:
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 Komarekc12dd412017-06-27 16:24:42 +02004- system.openssh.client.lab
5- system.salt.master.pkg
6- system.salt.minion.ca.salt_master
7- system.salt.master.api
Sergey Kolekonov41ffdfa2018-10-30 19:47:23 +00008- system.salt.minion.cert.k8s_server
Ales Komarekc12dd412017-06-27 16:24:42 +02009- system.reclass.storage.salt
10- system.reclass.storage.system.kubernetes_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020011- cluster.k8s-ha-calico
Ales Komarekc12dd412017-06-27 16:24:42 +020012parameters:
13 _param:
14 salt_master_base_environment: prd
15 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
16 reclass_data_revision: master
17 reclass_config_master: ${_param:infra_config_deploy_address}
18 single_address: ${_param:infra_config_address}
vrovachev30593852017-09-18 17:32:53 +040019 deploy_address: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020020 linux_system_codename: xenial
21 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
22 salt_master_host: 127.0.0.1
Petr Michalec87f39682017-08-17 06:54:05 +020023 salt_master_environment_revision: master
24 salt_master_environment_repository: 'https://github.com/salt-formulas'
Ales Komarekc12dd412017-06-27 16:24:42 +020025 salt:
26 master:
27 reactor:
28 reclass/minion/classify:
29 - salt://reclass/reactor/node_register.sls
30 reclass:
31 storage:
32 class_mapping:
33 common_node:
34 expression: all
35 node_param:
36 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000037 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020038 linux_system_codename:
39 value_template: <<node_os>>
40 salt_master_host:
41 value_template: <<node_master_ip>>
vrovachev30593852017-09-18 17:32:53 +040042 deploy_address:
43 value_template: <<node_deploy_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020044 infra_config:
45 expression: <<node_hostname>>__startswith__cfg
46 cluster_param:
47 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000048 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020049 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000050 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000051 cluster_domain:
52 value_template: <<node_domain>>
Ales Komarekc12dd412017-06-27 16:24:42 +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>>
vrovachev30593852017-09-18 17:32:53 +040058 kubernetes_control_node01_deploy_address:
59 value_template: <<node_deploy_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020060 kubernetes_control02:
61 expression: <<node_hostname>>__equals__ctl02
62 cluster_param:
63 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000064 value_template: <<node_control_ip>>
vrovachev30593852017-09-18 17:32:53 +040065 kubernetes_control_node02_deploy_address:
66 value_template: <<node_deploy_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020067 kubernetes_control03:
68 expression: <<node_hostname>>__equals__ctl03
69 cluster_param:
70 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000071 value_template: <<node_control_ip>>
vrovachev30593852017-09-18 17:32:53 +040072 kubernetes_control_node03_deploy_address:
73 value_template: <<node_deploy_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020074 kubernetes_compute:
75 expression: <<node_hostname>>__startswith__cmp
76 node_class:
77 value_template:
78 - cluster.<<node_cluster>>.kubernetes.compute
vrovachev30593852017-09-18 17:32:53 +040079 node_param:
80 deploy_address:
81 value_template: <<node_deploy_ip>>