blob: ce7924ac0c0d1c824b989c91ea1e60b0e6da3c44 [file] [log] [blame]
Adam Tenglerc1cd4d62017-07-25 11:19:37 +00001classes:
azvyagintsev2859f0e2018-06-11 17:45:47 +03002- system.linux.system.repo.mcp.apt_mirantis.ubuntu
Richard Felkl04250022017-10-20 13:55:43 +02003- system.linux.system.repo.mcp.salt
Adam Tenglerc1cd4d62017-07-25 11:19:37 +00004- 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
Oleh Hryhorov691ae592018-06-18 16:34:14 +03009- system.salt.syndic.single
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000010- system.reclass.storage.salt
11- system.reclass.storage.system.kubernetes_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020012- cluster.k8s-ha-calico-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000013parameters:
14 _param:
15 salt_master_base_environment: prd
16 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
17 reclass_data_revision: master
18 reclass_config_master: ${_param:infra_config_deploy_address}
19 single_address: ${_param:infra_config_address}
Oleh Hryhorov691ae592018-06-18 16:34:14 +030020 deploy_address: ${_param:infra_config_deploy_address}
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000021 linux_system_codename: xenial
22 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
23 salt_master_host: 127.0.0.1
Oleh Hryhorov691ae592018-06-18 16:34:14 +030024 salt_syndic_enabled: false
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000025 salt:
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000026 master:
Oleh Hryhorov3e998672018-01-09 10:27:17 +020027 worker_threads: 40
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000028 reactor:
29 reclass/minion/classify:
30 - salt://reclass/reactor/node_register.sls
31 reclass:
32 storage:
33 class_mapping:
34 common_node:
35 expression: all
36 node_param:
37 single_address:
38 value_template: <<node_control_ip>>
39 linux_system_codename:
40 value_template: <<node_os>>
41 salt_master_host:
42 value_template: <<node_master_ip>>
Oleh Hryhorov691ae592018-06-18 16:34:14 +030043 deploy_address:
44 value_template: <<node_deploy_ip>>
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000045 infra_config:
Adam Tengler500745f2017-07-27 15:51:10 +000046 expression:
47 - <<node_hostname>>__startswith__cfg
Oleh Hryhorov3e998672018-01-09 10:27:17 +020048 - <<node_cluster>>__equals__k8s-ha-calico-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000049 cluster_param:
50 infra_config_address:
51 value_template: <<node_control_ip>>
52 infra_config_deploy_address:
53 value_template: <<node_deploy_ip>>
54 cluster_domain:
55 value_template: <<node_domain>>
56 kubernetes_control01:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000057 expression:
58 - <<node_hostname>>__equals__ctl01
Oleh Hryhorov3e998672018-01-09 10:27:17 +020059 - <<node_cluster>>__equals__k8s-ha-calico-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000060 cluster_param:
61 kubernetes_control_node01_address:
62 value_template: <<node_control_ip>>
63 kubernetes_control02:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000064 expression:
65 - <<node_hostname>>__equals__ctl02
Oleh Hryhorov3e998672018-01-09 10:27:17 +020066 - <<node_cluster>>__equals__k8s-ha-calico-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000067 cluster_param:
68 kubernetes_control_node02_address:
69 value_template: <<node_control_ip>>
70 kubernetes_control03:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000071 expression:
72 - <<node_hostname>>__equals__ctl03
Oleh Hryhorov3e998672018-01-09 10:27:17 +020073 - <<node_cluster>>__equals__k8s-ha-calico-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000074 cluster_param:
75 kubernetes_control_node03_address:
76 value_template: <<node_control_ip>>
77 kubernetes_compute:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000078 expression:
79 - <<node_hostname>>__startswith__cmp
Oleh Hryhorov3e998672018-01-09 10:27:17 +020080 - <<node_cluster>>__equals__k8s-ha-calico-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000081 node_class:
82 value_template:
83 - cluster.<<node_cluster>>.kubernetes.compute
Oleh Hryhorov691ae592018-06-18 16:34:14 +030084 node_param:
85 deploy_address:
86 value_template: <<node_deploy_ip>>