blob: d452b0add56c30b30cb50d4f3bb1a84bfb222a6c [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
Petr Michalecf05e3ea2017-08-21 17:33:16 +020010- cluster.k8s-ha-calico
Ales Komarekc12dd412017-06-27 16:24:42 +020011parameters:
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}
vrovachev30593852017-09-18 17:32:53 +040018 deploy_address: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020019 linux_system_codename: xenial
20 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
21 salt_master_host: 127.0.0.1
Petr Michalec87f39682017-08-17 06:54:05 +020022 salt_master_environment_revision: master
23 salt_master_environment_repository: 'https://github.com/salt-formulas'
Ales Komarekc12dd412017-06-27 16:24:42 +020024 salt:
25 master:
26 reactor:
27 reclass/minion/classify:
28 - salt://reclass/reactor/node_register.sls
29 reclass:
30 storage:
31 class_mapping:
32 common_node:
33 expression: all
34 node_param:
35 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000036 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020037 linux_system_codename:
38 value_template: <<node_os>>
39 salt_master_host:
40 value_template: <<node_master_ip>>
vrovachev30593852017-09-18 17:32:53 +040041 deploy_address:
42 value_template: <<node_deploy_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020043 infra_config:
44 expression: <<node_hostname>>__startswith__cfg
45 cluster_param:
46 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000047 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020048 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000049 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000050 cluster_domain:
51 value_template: <<node_domain>>
Ales Komarekc12dd412017-06-27 16:24:42 +020052 kubernetes_control01:
53 expression: <<node_hostname>>__equals__ctl01
54 cluster_param:
55 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000056 value_template: <<node_control_ip>>
vrovachev30593852017-09-18 17:32:53 +040057 kubernetes_control_node01_deploy_address:
58 value_template: <<node_deploy_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>>
vrovachev30593852017-09-18 17:32:53 +040064 kubernetes_control_node02_deploy_address:
65 value_template: <<node_deploy_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020066 kubernetes_control03:
67 expression: <<node_hostname>>__equals__ctl03
68 cluster_param:
69 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000070 value_template: <<node_control_ip>>
vrovachev30593852017-09-18 17:32:53 +040071 kubernetes_control_node03_deploy_address:
72 value_template: <<node_deploy_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020073 kubernetes_compute:
74 expression: <<node_hostname>>__startswith__cmp
75 node_class:
76 value_template:
77 - cluster.<<node_cluster>>.kubernetes.compute
vrovachev30593852017-09-18 17:32:53 +040078 node_param:
79 deploy_address:
80 value_template: <<node_deploy_ip>>