blob: f2e007cee53ad8a6851dbb4c6d35ea95e041d377 [file] [log] [blame]
Adam Tenglerc1cd4d62017-07-25 11:19:37 +00001classes:
2- system.linux.system.repo.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
9- system.reclass.storage.salt
10- system.reclass.storage.system.kubernetes_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020011- cluster.k8s-ha-calico-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000012parameters:
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: 127.0.0.1
22 salt:
23 syndic:
24 enabled: true
25 master:
Adam Tenglerb05a0192017-07-25 12:07:15 +000026 host: ${_param:salt_syndic_master_address}
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000027 master:
Oleh Hryhorov3e998672018-01-09 10:27:17 +020028 worker_threads: 40
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000029 reactor:
30 reclass/minion/classify:
31 - salt://reclass/reactor/node_register.sls
32 reclass:
33 storage:
34 class_mapping:
35 common_node:
36 expression: all
37 node_param:
38 single_address:
39 value_template: <<node_control_ip>>
40 linux_system_codename:
41 value_template: <<node_os>>
42 salt_master_host:
43 value_template: <<node_master_ip>>
44 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
Adam Tengler1c3c15f2017-07-31 10:23:27 +000083