blob: f4b4adcf2b99a4b0959aabb392d12e9c9d3da750 [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>>
Adam Tengler4f23d962017-07-04 19:54:59 +000046 cluster_domain:
47 value_template: <<node_domain>>
Adam Tengler0963f862017-07-04 15:46:06 +000048 kubernetes_control01:
49 expression: <<node_hostname>>__equals__ctl01
50 cluster_param:
51 kubernetes_control_node01_address:
52 value_template: <<node_ip>>
53 kubernetes_control02:
54 expression: <<node_hostname>>__equals__ctl02
55 cluster_param:
56 kubernetes_control_node02_address:
57 value_template: <<node_ip>>
58 kubernetes_control03:
59 expression: <<node_hostname>>__equals__ctl03
60 cluster_param:
61 kubernetes_control_node03_address:
62 value_template: <<node_ip>>
63 opencontrail_control01:
64 expression: <<node_hostname>>__equals__ntw01
65 cluster_param:
66 opencontrail_control_node01_address:
67 value_template: <<node_ip>>
68 opencontrail_control02:
69 expression: <<node_hostname>>__equals__ntw02
70 cluster_param:
71 opencontrail_control_node02_address:
72 value_template: <<node_ip>>
73 opencontrail_control03:
74 expression: <<node_hostname>>__equals__ntw03
75 cluster_param:
76 opencontrail_control_node03_address:
77 value_template: <<node_ip>>
78 kubernetes_compute:
79 expression: <<node_hostname>>__startswith__cmp
80 node_class:
81 value_template:
82 - cluster.<<node_cluster>>.kubernetes.compute
Ales Komarekc12dd412017-06-27 16:24:42 +020083 node:
Ales Komarekc12dd412017-06-27 16:24:42 +020084 opencontrail_control_node01:
85 params:
86 rabbitmq_cluster_role: master
87 opencontrail_control_node02:
88 params:
89 rabbitmq_cluster_role: slave
90 opencontrail_control_node03:
91 params:
92 rabbitmq_cluster_role: slave