blob: 23bdbb9fa2c9b816598f19dbf5b8df251a29b977 [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
Petr Michalec87f39682017-08-17 06:54:05 +020021 salt_master_environment_revision: master
22 salt_master_environment_repository: 'https://github.com/salt-formulas'
Ales Komarekc12dd412017-06-27 16:24:42 +020023 salt:
24 master:
25 reactor:
26 reclass/minion/classify:
27 - salt://reclass/reactor/node_register.sls
Petr Michalec95e25432017-08-15 17:53:23 +020028 environment:
29 # TODO: remove formulas in development once they are stable and part of shared the system-level reclass
Petr Michalec87f39682017-08-17 06:54:05 +020030 prd:
Petr Michalec95e25432017-08-15 17:53:23 +020031 formula:
32 helm:
Petr Michalec87f39682017-08-17 06:54:05 +020033 source: pkg
34 name: salt-formula-helm
35 #source: git
36 #address: '${_param:salt_master_environment_repository}/salt-formula-helm.git'
37 #revision: ${_param:salt_master_environment_revision}
Ales Komarekc12dd412017-06-27 16:24:42 +020038 reclass:
39 storage:
40 class_mapping:
41 common_node:
42 expression: all
43 node_param:
44 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000045 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020046 linux_system_codename:
47 value_template: <<node_os>>
48 salt_master_host:
49 value_template: <<node_master_ip>>
50 infra_config:
51 expression: <<node_hostname>>__startswith__cfg
52 cluster_param:
53 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000054 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020055 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000056 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000057 cluster_domain:
58 value_template: <<node_domain>>
Ales Komarekc12dd412017-06-27 16:24:42 +020059 kubernetes_control01:
60 expression: <<node_hostname>>__equals__ctl01
61 cluster_param:
62 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000063 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020064 kubernetes_control02:
65 expression: <<node_hostname>>__equals__ctl02
66 cluster_param:
67 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000068 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020069 kubernetes_control03:
70 expression: <<node_hostname>>__equals__ctl03
71 cluster_param:
72 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000073 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020074 kubernetes_compute:
75 expression: <<node_hostname>>__startswith__cmp
76 node_class:
77 value_template:
78 - cluster.<<node_cluster>>.kubernetes.compute