blob: 4e96666e84bc94a7fa414b7a6e5544514d280468 [file] [log] [blame]
Adam Tenglerc1cd4d62017-07-25 11:19:37 +00001classes:
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
Petr Michalecf05e3ea2017-08-21 17:33:16 +020010- cluster.k8s-ha-calico-syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000011parameters:
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: 127.0.0.1
21 salt:
22 syndic:
23 enabled: true
24 master:
Adam Tenglerb05a0192017-07-25 12:07:15 +000025 host: ${_param:salt_syndic_master_address}
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000026 master:
27 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>>
42 infra_config:
Adam Tengler500745f2017-07-27 15:51:10 +000043 expression:
44 - <<node_hostname>>__startswith__cfg
45 - <<node_cluster>>__equals__k8s_ha_calico_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000046 cluster_param:
47 infra_config_address:
48 value_template: <<node_control_ip>>
49 infra_config_deploy_address:
50 value_template: <<node_deploy_ip>>
51 cluster_domain:
52 value_template: <<node_domain>>
53 kubernetes_control01:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000054 expression:
55 - <<node_hostname>>__equals__ctl01
56 - <<node_cluster>>__equals__k8s_ha_calico_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000057 cluster_param:
58 kubernetes_control_node01_address:
59 value_template: <<node_control_ip>>
60 kubernetes_control02:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000061 expression:
62 - <<node_hostname>>__equals__ctl02
63 - <<node_cluster>>__equals__k8s_ha_calico_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000064 cluster_param:
65 kubernetes_control_node02_address:
66 value_template: <<node_control_ip>>
67 kubernetes_control03:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000068 expression:
69 - <<node_hostname>>__equals__ctl03
70 - <<node_cluster>>__equals__k8s_ha_calico_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000071 cluster_param:
72 kubernetes_control_node03_address:
73 value_template: <<node_control_ip>>
74 kubernetes_compute:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000075 expression:
76 - <<node_hostname>>__startswith__cmp
77 - <<node_cluster>>__equals__k8s_ha_calico_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000078 node_class:
79 value_template:
80 - cluster.<<node_cluster>>.kubernetes.compute
Adam Tengler1c3c15f2017-07-31 10:23:27 +000081