blob: 596d18f93edbc2ca2486c9122d82fb3e14089bf5 [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
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.mysql.client
9- system.mysql.client.database.grafana
10- system.reclass.storage.salt
11- system.reclass.storage.system.kubernetes_control_cluster
12- cluster.sl_k8s_calico
13parameters:
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}
20 linux_system_codename: xenial
21 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
22 salt_master_host: 127.0.0.1
23 salt:
24 master:
25 reactor:
26 reclass/minion/classify:
27 - salt://reclass/reactor/node_register.sls
28 reclass:
29 storage:
30 class_mapping:
31 common_node:
32 expression: all
33 node_param:
34 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000035 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020036 linux_system_codename:
37 value_template: <<node_os>>
38 salt_master_host:
39 value_template: <<node_master_ip>>
40 infra_config:
41 expression: <<node_hostname>>__startswith__cfg
42 cluster_param:
43 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000044 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020045 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000046 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000047 cluster_domain:
48 value_template: <<node_domain>>
Ales Komarekc12dd412017-06-27 16:24:42 +020049 infra_proxy:
50 expression: <<node_hostname>>__startswith__prx
51 node_class:
52 value_template:
53 - cluster.<<node_cluster>>.stacklight.proxy
54 kubernetes_control01:
55 expression: <<node_hostname>>__equals__ctl01
56 cluster_param:
57 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000058 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020059 kubernetes_control02:
60 expression: <<node_hostname>>__equals__ctl02
61 cluster_param:
62 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000063 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020064 kubernetes_control03:
65 expression: <<node_hostname>>__equals__ctl03
66 cluster_param:
67 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000068 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020069 kubernetes_compute:
70 expression: <<node_hostname>>__startswith__cmp
71 node_class:
72 value_template:
73 - cluster.<<node_cluster>>.kubernetes.compute
74 stacklight_monitor01:
75 expression: <<node_hostname>>__equals__mon01
76 cluster_param:
77 stacklight_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000078 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020079 stacklight_monitor02:
80 expression: <<node_hostname>>__equals__mon02
81 cluster_param:
82 stacklight_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000083 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020084 stacklight_monitor03:
85 expression: <<node_hostname>>__equals__mon03
86 cluster_param:
87 stacklight_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000088 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020089 node:
90 prx_node:
91 name: ${_param:kubernetes_proxy_node01_hostname}
92 domain: ${_param:cluster_domain}
93 classes:
94 - cluster.${_param:cluster_name}.stacklight.proxy
95 params:
96 salt_master_host: ${_param:infra_config_deploy_address}
97 linux_system_codename: xenial
98 single_address: ${_param:kubernetes_proxy_node01_address}