blob: c250b443bfe0ee98562bdbf0162d033d83fd2339 [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
Marek Celoud9749b272017-07-10 17:47:42 +020027 linux:
28 network:
29 interface:
30 ens4:
31 enabled: true
32 type: eth
33 proto: static
34 address: ${_param:single_address}
35 netmask: 255.255.255.0
Ales Komarekc12dd412017-06-27 16:24:42 +020036 reclass:
37 storage:
Adam Tengler0963f862017-07-04 15:46:06 +000038 class_mapping:
39 common_node:
40 expression: all
41 node_param:
42 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000043 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000044 linux_system_codename:
45 value_template: <<node_os>>
46 salt_master_host:
47 value_template: <<node_master_ip>>
Tomáš Kukrál075ec9a2017-07-27 11:35:51 +020048 node_deploy_ip:
49 value_template: <<node_deploy_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000050 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>>
Adam Tengler0963f862017-07-04 15:46:06 +000055 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>>
Adam Tengler0963f862017-07-04 15:46:06 +000059 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>>
Adam Tengler0963f862017-07-04 15:46:06 +000064 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>>
Adam Tengler0963f862017-07-04 15:46:06 +000069 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>>
Tomáš Kukrál81fd9a32017-07-26 16:24:52 +020074 etcd_control01:
75 expression: <<node_hostname>>__equals__ctl01
76 cluster_param:
77 etcd_control_node01_address:
78 value_template: <<node_deploy_ip>>
79 etcd_control02:
80 expression: <<node_hostname>>__equals__ctl02
81 cluster_param:
82 etcd_control_node02_address:
83 value_template: <<node_deploy_ip>>
84 etcd_control03:
85 expression: <<node_hostname>>__equals__ctl03
86 cluster_param:
87 etcd_control_node03_address:
88 value_template: <<node_deploy_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000089 opencontrail_control01:
90 expression: <<node_hostname>>__equals__ntw01
91 cluster_param:
92 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000093 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000094 opencontrail_control02:
95 expression: <<node_hostname>>__equals__ntw02
96 cluster_param:
97 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000098 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000099 opencontrail_control03:
100 expression: <<node_hostname>>__equals__ntw03
101 cluster_param:
102 opencontrail_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000103 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +0000104 kubernetes_compute:
105 expression: <<node_hostname>>__startswith__cmp
106 node_class:
107 value_template:
108 - cluster.<<node_cluster>>.kubernetes.compute
Ales Komarekc12dd412017-06-27 16:24:42 +0200109 node:
Ales Komarekc12dd412017-06-27 16:24:42 +0200110 opencontrail_control_node01:
111 params:
112 rabbitmq_cluster_role: master
113 opencontrail_control_node02:
114 params:
115 rabbitmq_cluster_role: slave
116 opencontrail_control_node03:
117 params:
118 rabbitmq_cluster_role: slave