blob: 2cc72db1e39ccb0e200cf1708ed4a43d77ee8da1 [file] [log] [blame]
Matthew Mosesohn0e8bc582017-09-01 16:26:03 +03001classes:
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.reclass.storage.salt
9- system.reclass.storage.system.kubernetes_control_cluster
10- cluster.k8s-ha-calico-cloudprovider
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_master_environment_revision: master
22 salt_master_environment_repository: 'https://github.com/salt-formulas'
23 salt:
24 master:
25 reactor:
26 reclass/minion/classify:
27 - salt://reclass/reactor/node_register.sls
28 environment:
29 # TODO: remove formulas in development once they are stable and part of shared the system-level reclass
30 prd:
31 formula:
32 helm:
33 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}
38 reclass:
39 storage:
40 class_mapping:
41 common_node:
42 expression: all
43 node_param:
44 single_address:
45 value_template: <<node_control_ip>>
46 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:
54 value_template: <<node_control_ip>>
55 infra_config_deploy_address:
56 value_template: <<node_deploy_ip>>
57 cluster_domain:
58 value_template: <<node_domain>>
59 kubernetes_control01:
60 expression: <<node_hostname>>__equals__ctl01
61 cluster_param:
62 kubernetes_control_node01_address:
63 value_template: <<node_control_ip>>
64 kubernetes_control02:
65 expression: <<node_hostname>>__equals__ctl02
66 cluster_param:
67 kubernetes_control_node02_address:
68 value_template: <<node_control_ip>>
69 kubernetes_control03:
70 expression: <<node_hostname>>__equals__ctl03
71 cluster_param:
72 kubernetes_control_node03_address:
73 value_template: <<node_control_ip>>
74 kubernetes_compute:
75 expression: <<node_hostname>>__startswith__cmp
76 node_class:
77 value_template:
78 - cluster.<<node_cluster>>.kubernetes.compute