blob: 37f614a2f729c6a111e2570941fd85f250f0e8bf [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
Martin Polreicha0addcc2018-06-25 11:32:52 +02003- system.linux.system.repo.mcp.apt_mirantis.saltstack
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
24 salt:
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000025 master:
Oleh Hryhorov3e998672018-01-09 10:27:17 +020026 worker_threads: 40
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000027 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:
37 value_template: <<node_control_ip>>
38 linux_system_codename:
39 value_template: <<node_os>>
40 salt_master_host:
41 value_template: <<node_master_ip>>
Oleh Hryhorov691ae592018-06-18 16:34:14 +030042 deploy_address:
43 value_template: <<node_deploy_ip>>
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000044 infra_config:
Adam Tengler500745f2017-07-27 15:51:10 +000045 expression:
46 - <<node_hostname>>__startswith__cfg
Oleh Hryhorov3e998672018-01-09 10:27:17 +020047 - <<node_cluster>>__equals__k8s-ha-calico-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000048 cluster_param:
49 infra_config_address:
50 value_template: <<node_control_ip>>
51 infra_config_deploy_address:
52 value_template: <<node_deploy_ip>>
53 cluster_domain:
54 value_template: <<node_domain>>
55 kubernetes_control01:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000056 expression:
57 - <<node_hostname>>__equals__ctl01
Oleh Hryhorov3e998672018-01-09 10:27:17 +020058 - <<node_cluster>>__equals__k8s-ha-calico-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000059 cluster_param:
60 kubernetes_control_node01_address:
61 value_template: <<node_control_ip>>
62 kubernetes_control02:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000063 expression:
64 - <<node_hostname>>__equals__ctl02
Oleh Hryhorov3e998672018-01-09 10:27:17 +020065 - <<node_cluster>>__equals__k8s-ha-calico-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000066 cluster_param:
67 kubernetes_control_node02_address:
68 value_template: <<node_control_ip>>
69 kubernetes_control03:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000070 expression:
71 - <<node_hostname>>__equals__ctl03
Oleh Hryhorov3e998672018-01-09 10:27:17 +020072 - <<node_cluster>>__equals__k8s-ha-calico-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000073 cluster_param:
74 kubernetes_control_node03_address:
75 value_template: <<node_control_ip>>
76 kubernetes_compute:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000077 expression:
78 - <<node_hostname>>__startswith__cmp
Oleh Hryhorov3e998672018-01-09 10:27:17 +020079 - <<node_cluster>>__equals__k8s-ha-calico-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000080 node_class:
81 value_template:
82 - cluster.<<node_cluster>>.kubernetes.compute
Oleh Hryhorov691ae592018-06-18 16:34:14 +030083 node_param:
84 deploy_address:
85 value_template: <<node_deploy_ip>>