blob: c957e6c4edd0fcf5616fb6e71ebed91f02c7349b [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:
35 value_template: <<node_ip>>
36 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:
44 value_template: <<node_ip>>
45 infra_config_deploy_address:
46 value_template: <<node_ip>>
47 infra_proxy:
48 expression: <<node_hostname>>__startswith__prx
49 node_class:
50 value_template:
51 - cluster.<<node_cluster>>.stacklight.proxy
52 kubernetes_control01:
53 expression: <<node_hostname>>__equals__ctl01
54 cluster_param:
55 kubernetes_control_node01_address:
56 value_template: <<node_ip>>
57 kubernetes_control02:
58 expression: <<node_hostname>>__equals__ctl02
59 cluster_param:
60 kubernetes_control_node02_address:
61 value_template: <<node_ip>>
62 kubernetes_control03:
63 expression: <<node_hostname>>__equals__ctl03
64 cluster_param:
65 kubernetes_control_node03_address:
66 value_template: <<node_ip>>
67 kubernetes_compute:
68 expression: <<node_hostname>>__startswith__cmp
69 node_class:
70 value_template:
71 - cluster.<<node_cluster>>.kubernetes.compute
72 stacklight_monitor01:
73 expression: <<node_hostname>>__equals__mon01
74 cluster_param:
75 stacklight_node01_address:
76 value_template: <<node_ip>>
77 stacklight_monitor02:
78 expression: <<node_hostname>>__equals__mon02
79 cluster_param:
80 stacklight_node02_address:
81 value_template: <<node_ip>>
82 stacklight_monitor03:
83 expression: <<node_hostname>>__equals__mon03
84 cluster_param:
85 stacklight_node03_address:
86 value_template: <<node_ip>>
87 node:
88 prx_node:
89 name: ${_param:kubernetes_proxy_node01_hostname}
90 domain: ${_param:cluster_domain}
91 classes:
92 - cluster.${_param:cluster_name}.stacklight.proxy
93 params:
94 salt_master_host: ${_param:infra_config_deploy_address}
95 linux_system_codename: xenial
96 single_address: ${_param:kubernetes_proxy_node01_address}