blob: 21e7656fea8a96adabbc821d58fcd31f45c5bc53 [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:
28 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>>
43 infra_config:
Adam Tengler500745f2017-07-27 15:51:10 +000044 expression:
45 - <<node_hostname>>__startswith__cfg
46 - <<node_cluster>>__equals__k8s_ha_calico_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000047 cluster_param:
48 infra_config_address:
49 value_template: <<node_control_ip>>
50 infra_config_deploy_address:
51 value_template: <<node_deploy_ip>>
52 cluster_domain:
53 value_template: <<node_domain>>
54 kubernetes_control01:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000055 expression:
56 - <<node_hostname>>__equals__ctl01
57 - <<node_cluster>>__equals__k8s_ha_calico_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000058 cluster_param:
59 kubernetes_control_node01_address:
60 value_template: <<node_control_ip>>
61 kubernetes_control02:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000062 expression:
63 - <<node_hostname>>__equals__ctl02
64 - <<node_cluster>>__equals__k8s_ha_calico_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000065 cluster_param:
66 kubernetes_control_node02_address:
67 value_template: <<node_control_ip>>
68 kubernetes_control03:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000069 expression:
70 - <<node_hostname>>__equals__ctl03
71 - <<node_cluster>>__equals__k8s_ha_calico_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000072 cluster_param:
73 kubernetes_control_node03_address:
74 value_template: <<node_control_ip>>
75 kubernetes_compute:
Adam Tengler1c3c15f2017-07-31 10:23:27 +000076 expression:
77 - <<node_hostname>>__startswith__cmp
78 - <<node_cluster>>__equals__k8s_ha_calico_syndic
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000079 node_class:
80 value_template:
81 - cluster.<<node_cluster>>.kubernetes.compute
Adam Tengler1c3c15f2017-07-31 10:23:27 +000082