blob: 8c305745539b64aa8db6e0e363ebb42b8e3a9ead [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.reclass.storage.salt
8- system.salt.minion.cert.k8s_server
9- system.reclass.storage.system.kubernetes_control_cluster
10- system.reclass.storage.system.opencontrail_control_cluster
11- cluster.k8s_ha_contrail
12parameters:
13 _param:
14 salt_master_base_environment: prd
15 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
16 reclass_data_revision: master
17 reclass_config_master: ${_param:infra_config_deploy_address}
18 single_address: ${_param:infra_config_address}
19 linux_system_codename: xenial
20 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
21 salt_master_host: ${_param:infra_config_deploy_address}
Adam Tengler0963f862017-07-04 15:46:06 +000022 salt:
23 master:
24 reactor:
25 reclass/minion/classify:
26 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020027 reclass:
28 storage:
Adam Tengler0963f862017-07-04 15:46:06 +000029 class_mapping:
30 common_node:
31 expression: all
32 node_param:
33 single_address:
34 value_template: <<node_ip>>
35 linux_system_codename:
36 value_template: <<node_os>>
37 salt_master_host:
38 value_template: <<node_master_ip>>
39 infra_config:
40 expression: <<node_hostname>>__startswith__cfg
41 cluster_param:
42 infra_config_address:
43 value_template: <<node_ip>>
44 infra_config_deploy_address:
45 value_template: <<node_ip>>
46 kubernetes_control01:
47 expression: <<node_hostname>>__equals__ctl01
48 cluster_param:
49 kubernetes_control_node01_address:
50 value_template: <<node_ip>>
51 kubernetes_control02:
52 expression: <<node_hostname>>__equals__ctl02
53 cluster_param:
54 kubernetes_control_node02_address:
55 value_template: <<node_ip>>
56 kubernetes_control03:
57 expression: <<node_hostname>>__equals__ctl03
58 cluster_param:
59 kubernetes_control_node03_address:
60 value_template: <<node_ip>>
61 opencontrail_control01:
62 expression: <<node_hostname>>__equals__ntw01
63 cluster_param:
64 opencontrail_control_node01_address:
65 value_template: <<node_ip>>
66 opencontrail_control02:
67 expression: <<node_hostname>>__equals__ntw02
68 cluster_param:
69 opencontrail_control_node02_address:
70 value_template: <<node_ip>>
71 opencontrail_control03:
72 expression: <<node_hostname>>__equals__ntw03
73 cluster_param:
74 opencontrail_control_node03_address:
75 value_template: <<node_ip>>
76 kubernetes_compute:
77 expression: <<node_hostname>>__startswith__cmp
78 node_class:
79 value_template:
80 - cluster.<<node_cluster>>.kubernetes.compute
Ales Komarekc12dd412017-06-27 16:24:42 +020081 node:
Ales Komarekc12dd412017-06-27 16:24:42 +020082 opencontrail_control_node01:
83 params:
84 rabbitmq_cluster_role: master
85 opencontrail_control_node02:
86 params:
87 rabbitmq_cluster_role: slave
88 opencontrail_control_node03:
89 params:
90 rabbitmq_cluster_role: slave