blob: c229379c2b84bdd03b4fecb32931a175f44f1d97 [file] [log] [blame]
Artem Panchenkofce4c642017-05-22 16:59:03 +03001classes:
2- system.linux.system.repo.ubuntu
3- system.openssh.client.lab
4- system.salt.master.pkg
5- system.salt.minion.ca.salt_master
6- system.salt.master.api
7- system.salt.minion.cert.k8s_server
8- system.reclass.storage.salt
9- system.reclass.storage.system.kubernetes_control_cluster
10- cluster.virtual-mcp11-k8s-calico-minimal
11parameters:
12 _param:
13 salt_master_base_environment: prd
14 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
15 reclass_data_revision: master
16 reclass_config_master: ${_param:infra_config_deploy_address}
17 single_address: ${_param:infra_config_address}
18 linux_system_codename: xenial
19 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
20 salt_master_host: ${_param:infra_config_deploy_address}
21 salt:
22 master:
23 reactor:
24 reclass/minion/classify:
25 - salt://reclass/reactor/node_register.sls
26 reclass:
27 storage:
28 class_mapping:
29 common_node:
30 expression: all
31 node_param:
32 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000033 value_template: <<node_control_ip>>
Artem Panchenkofce4c642017-05-22 16:59:03 +030034 linux_system_codename:
35 value_template: <<node_os>>
36 salt_master_host:
37 value_template: <<node_master_ip>>
38 infra_config:
39 expression: <<node_hostname>>__equals__cfg01
40 cluster_param:
41 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000042 value_template: <<node_control_ip>>
Artem Panchenkofce4c642017-05-22 16:59:03 +030043 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000044 value_template: <<node_deploy_ip>>
Artem Panchenkofce4c642017-05-22 16:59:03 +030045 kubernetes_control01:
46 expression: <<node_hostname>>__equals__ctl01
47 cluster_param:
48 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000049 value_template: <<node_control_ip>>
Artem Panchenkofce4c642017-05-22 16:59:03 +030050 kubernetes_control02:
51 expression: <<node_hostname>>__equals__ctl02
52 cluster_param:
53 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000054 value_template: <<node_control_ip>>
Artem Panchenkofce4c642017-05-22 16:59:03 +030055 kubernetes_control03:
56 expression: <<node_hostname>>__equals__ctl03
57 cluster_param:
58 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000059 value_template: <<node_control_ip>>
Artem Panchenkofce4c642017-05-22 16:59:03 +030060 kubernetes_compute:
61 expression: <<node_hostname>>__startswith__cmp
62 node_class:
63 value_template:
64 - cluster.<<node_cluster>>.kubernetes.compute
65 node:
66 kubernetes_compute_node01:
67 name: ${_param:kubernetes_compute_node01_hostname}
68 domain: ${_param:cluster_domain}
69 classes:
70 - cluster.${_param:cluster_name}.kubernetes.compute
71 params:
72 salt_master_host: ${_param:infra_config_deploy_address}
73 linux_system_codename: xenial
74 single_address: ${_param:kubernetes_compute_node01_address}