blob: f6604a7e3c5bbc1eae6b81ba5ddd48f6a2164a42 [file] [log] [blame]
Tomáš Kukrál328de802017-04-27 15:17:40 +02001classes:
Tomáš Kukrál328de802017-04-27 15:17:40 +02002- system.linux.system.repo.ubuntu
Richard Felkl04250022017-10-20 13:55:43 +02003- system.linux.system.repo.mcp.salt
Tomáš Kukrál328de802017-04-27 15:17:40 +02004- system.openssh.client.lab
5- system.salt.master.pkg
6- system.salt.minion.ca.salt_master
7- system.salt.master.api
8- system.reclass.storage.salt
9- system.salt.minion.cert.k8s_server
10- system.reclass.storage.system.kubernetes_control_cluster
11- system.reclass.storage.system.opencontrail_control_cluster
12- cluster.virtual-mcp11-k8s-contrail.infra
13parameters:
14 _param:
15 salt_master_base_environment: prd
16 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
17 reclass_data_revision: master
18 reclass_config_master: ${_param:infra_config_deploy_address}
19 single_address: ${_param:infra_config_address}
Tomáš Kukrál328de802017-04-27 15:17:40 +020020 linux_system_codename: xenial
21 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
Simon Pasquieref3efb52017-05-04 12:47:11 +020022 salt_master_host: ${_param:infra_config_deploy_address}
Marek Celoud9749b272017-07-10 17:47:42 +020023 linux:
24 network:
25 interface:
26 ens4:
27 enabled: true
28 type: eth
29 proto: static
30 address: ${_param:single_address}
31 netmask: 255.255.255.0
Jiri Broulik432ae9c2017-08-17 10:24:23 +020032 salt:
33 master:
34 reactor:
35 reclass/minion/classify:
36 - salt://reclass/reactor/node_register.sls
Tomáš Kukrál328de802017-04-27 15:17:40 +020037 reclass:
38 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020039 class_mapping:
40 common_node:
41 expression: all
42 node_param:
43 single_address:
44 value_template: <<node_control_ip>>
45 linux_system_codename:
46 value_template: <<node_os>>
47 salt_master_host:
48 value_template: <<node_master_ip>>
49 infra_config:
50 expression: <<node_hostname>>__equals__cfg01
51 cluster_param:
52 infra_config_address:
53 value_template: <<node_control_ip>>
54 infra_config_deploy_address:
55 value_template: <<node_deploy_ip>>
56 infra_proxy:
57 expression: <<node_hostname>>__startswith__prx
58 node_class:
59 value_template:
60 - cluster.<<node_cluster>>.stacklight.proxy
61 kubernetes_control01:
62 expression: <<node_hostname>>__equals__ctl01
63 cluster_param:
64 kubernetes_control_node01_address:
65 value_template: <<node_control_ip>>
66 kubernetes_control02:
67 expression: <<node_hostname>>__equals__ctl02
68 cluster_param:
69 kubernetes_control_node02_address:
70 value_template: <<node_control_ip>>
71 kubernetes_control03:
72 expression: <<node_hostname>>__equals__ctl03
73 cluster_param:
74 kubernetes_control_node03_address:
75 value_template: <<node_control_ip>>
76 kubernetes_compute:
77 expression: <<node_hostname>>__startswith__cmp
78 node_class:
79 value_template:
80 - cluster.<<node_cluster>>.kubernetes.compute
81 stacklight_monitor01:
82 expression: <<node_hostname>>__equals__mon01
83 cluster_param:
84 stacklight_node01_address:
85 value_template: <<node_control_ip>>
86 stacklight_monitor02:
87 expression: <<node_hostname>>__equals__mon02
88 cluster_param:
89 stacklight_node02_address:
90 value_template: <<node_control_ip>>
91 stacklight_monitor03:
92 expression: <<node_hostname>>__equals__mon03
93 cluster_param:
94 stacklight_node03_address:
95 value_template: <<node_control_ip>>
Tomáš Kukrál328de802017-04-27 15:17:40 +020096 node:
Tomáš Kukrál328de802017-04-27 15:17:40 +020097 prx_node:
98 name: ${_param:kubernetes_proxy_node01_hostname}
99 domain: ${_param:cluster_domain}
100 classes:
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200101 - cluster.${_param:cluster_name}.stacklight.proxy
Tomáš Kukrál328de802017-04-27 15:17:40 +0200102 params:
Simon Pasquieref3efb52017-05-04 12:47:11 +0200103 salt_master_host: ${_param:infra_config_deploy_address}
Tomáš Kukrál328de802017-04-27 15:17:40 +0200104 linux_system_codename: xenial
105 single_address: ${_param:kubernetes_proxy_node01_address}
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200106 stacklight_node01:
107 name: ${_param:stacklight_node01_hostname}
Tomáš Kukrál328de802017-04-27 15:17:40 +0200108 domain: ${_param:cluster_domain}
109 classes:
Simon Pasquier994b69d2017-06-08 15:58:53 +0200110 - service.galera.master.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200111 - system.docker.swarm.master
112 - cluster.${_param:cluster_name}.stacklight.client
113 - cluster.${_param:cluster_name}.stacklight.server
Tomáš Kukrál328de802017-04-27 15:17:40 +0200114 params:
Simon Pasquieref3efb52017-05-04 12:47:11 +0200115 salt_master_host: ${_param:infra_config_deploy_address}
Tomáš Kukrál328de802017-04-27 15:17:40 +0200116 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200117 single_address: ${_param:stacklight_node01_address}
Simon Pasquieref3efb52017-05-04 12:47:11 +0200118 keepalived_vip_priority: 100
Simon Pasquier994b69d2017-06-08 15:58:53 +0200119 mysql_cluster_role: master
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200120 stacklight_node02:
121 name: ${_param:stacklight_node02_hostname}
Simon Pasquieref3efb52017-05-04 12:47:11 +0200122 domain: ${_param:cluster_domain}
123 classes:
Simon Pasquier994b69d2017-06-08 15:58:53 +0200124 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200125 - system.docker.swarm.manager
126 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquieref3efb52017-05-04 12:47:11 +0200127 params:
128 salt_master_host: ${_param:infra_config_deploy_address}
129 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200130 single_address: ${_param:stacklight_node02_address}
Simon Pasquieref3efb52017-05-04 12:47:11 +0200131 keepalived_vip_priority: 101
Simon Pasquier994b69d2017-06-08 15:58:53 +0200132 mysql_cluster_role: slave
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200133 stacklight_node03:
134 name: ${_param:stacklight_node03_hostname}
Simon Pasquieref3efb52017-05-04 12:47:11 +0200135 domain: ${_param:cluster_domain}
136 classes:
Simon Pasquier994b69d2017-06-08 15:58:53 +0200137 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200138 - system.docker.swarm.manager
139 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquieref3efb52017-05-04 12:47:11 +0200140 params:
141 salt_master_host: ${_param:infra_config_deploy_address}
142 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200143 single_address: ${_param:stacklight_node03_address}
Simon Pasquieref3efb52017-05-04 12:47:11 +0200144 keepalived_vip_priority: 102
Simon Pasquier994b69d2017-06-08 15:58:53 +0200145 mysql_cluster_role: slave
Tomáš Kukrál328de802017-04-27 15:17:40 +0200146 opencontrail_control_node01:
147 params:
148 rabbitmq_cluster_role: master
149 opencontrail_control_node02:
150 params:
151 rabbitmq_cluster_role: slave
152 opencontrail_control_node03:
153 params:
154 rabbitmq_cluster_role: slave
Jiri Broulikd3a38672017-08-22 14:15:09 +0200155 kubernetes_compute_node01:
156 name: ${_param:kubernetes_compute_node01_hostname}
157 domain: ${_param:cluster_domain}
158 classes:
159 - cluster.${_param:cluster_name}.kubernetes.compute
160 params:
161 salt_master_host: ${_param:infra_config_deploy_address}
162 linux_system_codename: xenial
163 single_address: ${_param:kubernetes_compute_node01_address}
164 kubernetes_compute_node02:
165 name: ${_param:kubernetes_compute_node02_hostname}
166 domain: ${_param:cluster_domain}
167 classes:
168 - cluster.${_param:cluster_name}.kubernetes.compute
169 params:
170 salt_master_host: ${_param:infra_config_deploy_address}
171 linux_system_codename: xenial
172 single_address: ${_param:kubernetes_compute_node02_address}