blob: f6447541c2225ca0a5918fb4bf89b9338fbe7c5d [file] [log] [blame]
Artem Panchenkofce4c642017-05-22 16:59:03 +03001classes:
2- system.linux.system.repo.ubuntu
Richard Felkl04250022017-10-20 13:55:43 +02003- system.linux.system.repo.mcp.salt
Artem Panchenkofce4c642017-05-22 16:59:03 +03004- 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.reclass.storage.salt
10- system.reclass.storage.system.kubernetes_control_cluster
11- cluster.virtual-mcp11-k8s-calico-minimal
12parameters:
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}
19 linux_system_codename: xenial
20 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
21 salt_master_host: ${_param:infra_config_deploy_address}
22 salt:
23 master:
24 reactor:
25 reclass/minion/classify:
26 - salt://reclass/reactor/node_register.sls
27 reclass:
28 storage:
29 class_mapping:
30 common_node:
31 expression: all
32 node_param:
33 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000034 value_template: <<node_control_ip>>
Artem Panchenkofce4c642017-05-22 16:59:03 +030035 linux_system_codename:
36 value_template: <<node_os>>
37 salt_master_host:
38 value_template: <<node_master_ip>>
39 infra_config:
40 expression: <<node_hostname>>__equals__cfg01
41 cluster_param:
42 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000043 value_template: <<node_control_ip>>
Artem Panchenkofce4c642017-05-22 16:59:03 +030044 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000045 value_template: <<node_deploy_ip>>
Artem Panchenkofce4c642017-05-22 16:59:03 +030046 kubernetes_control01:
47 expression: <<node_hostname>>__equals__ctl01
48 cluster_param:
49 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000050 value_template: <<node_control_ip>>
Artem Panchenkofce4c642017-05-22 16:59:03 +030051 kubernetes_control02:
52 expression: <<node_hostname>>__equals__ctl02
53 cluster_param:
54 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000055 value_template: <<node_control_ip>>
Artem Panchenkofce4c642017-05-22 16:59:03 +030056 kubernetes_control03:
57 expression: <<node_hostname>>__equals__ctl03
58 cluster_param:
59 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000060 value_template: <<node_control_ip>>
Artem Panchenkofce4c642017-05-22 16:59:03 +030061 kubernetes_compute:
62 expression: <<node_hostname>>__startswith__cmp
63 node_class:
64 value_template:
65 - cluster.<<node_cluster>>.kubernetes.compute
66 node:
67 kubernetes_compute_node01:
68 name: ${_param:kubernetes_compute_node01_hostname}
69 domain: ${_param:cluster_domain}
70 classes:
71 - cluster.${_param:cluster_name}.kubernetes.compute
72 params:
73 salt_master_host: ${_param:infra_config_deploy_address}
74 linux_system_codename: xenial
75 single_address: ${_param:kubernetes_compute_node01_address}