blob: 0d9f4ea1a358921736624eb01403b353ba719812 [file] [log] [blame]
Adam Tengler048f45d2017-07-10 11:06:20 +00001classes:
Ales Komarekc12dd412017-06-27 16:24:42 +02002- 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
Ales Komarekc12dd412017-06-27 16:24:42 +02008- system.reclass.storage.salt
9- system.reclass.storage.system.kubernetes_control_cluster
10- cluster.k8s_ha_calico
11parameters:
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 master:
23 reactor:
24 reclass/minion/classify:
25 - salt://reclass/reactor/node_register.sls
Petr Michalec95e25432017-08-15 17:53:23 +020026 environment:
27 # TODO: remove formulas in development once they are stable and part of shared the system-level reclass
28 dev:
29 formula:
30 helm:
31 source: git
32 address: '${_param:salt_master_environment_repository}/salt-formula-helm.git'
33 revision: ${_param:salt_master_environment_revision}
Ales Komarekc12dd412017-06-27 16:24:42 +020034 reclass:
35 storage:
36 class_mapping:
37 common_node:
38 expression: all
39 node_param:
40 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000041 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020042 linux_system_codename:
43 value_template: <<node_os>>
44 salt_master_host:
45 value_template: <<node_master_ip>>
46 infra_config:
47 expression: <<node_hostname>>__startswith__cfg
48 cluster_param:
49 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000050 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020051 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000052 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000053 cluster_domain:
54 value_template: <<node_domain>>
Ales Komarekc12dd412017-06-27 16:24:42 +020055 kubernetes_control01:
56 expression: <<node_hostname>>__equals__ctl01
57 cluster_param:
58 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000059 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020060 kubernetes_control02:
61 expression: <<node_hostname>>__equals__ctl02
62 cluster_param:
63 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000064 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020065 kubernetes_control03:
66 expression: <<node_hostname>>__equals__ctl03
67 cluster_param:
68 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000069 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020070 kubernetes_compute:
71 expression: <<node_hostname>>__startswith__cmp
72 node_class:
73 value_template:
74 - cluster.<<node_cluster>>.kubernetes.compute