blob: 22ba7e30c68622a6b13d786a5c53fb823c6ea761 [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
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.virtual-mcp11-k8s-contrail.infra
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}
Tomáš Kukrál328de802017-04-27 15:17:40 +020019 linux_system_codename: xenial
20 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
Simon Pasquieref3efb52017-05-04 12:47:11 +020021 salt_master_host: ${_param:infra_config_deploy_address}
Marek Celoud9749b272017-07-10 17:47:42 +020022 linux:
23 network:
24 interface:
25 ens4:
26 enabled: true
27 type: eth
28 proto: static
29 address: ${_param:single_address}
30 netmask: 255.255.255.0
Jiri Broulik432ae9c2017-08-17 10:24:23 +020031 salt:
32 master:
33 reactor:
34 reclass/minion/classify:
35 - salt://reclass/reactor/node_register.sls
Tomáš Kukrál328de802017-04-27 15:17:40 +020036 reclass:
37 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020038 class_mapping:
39 common_node:
40 expression: all
41 node_param:
42 single_address:
43 value_template: <<node_control_ip>>
44 linux_system_codename:
45 value_template: <<node_os>>
46 salt_master_host:
47 value_template: <<node_master_ip>>
48 infra_config:
49 expression: <<node_hostname>>__equals__cfg01
50 cluster_param:
51 infra_config_address:
52 value_template: <<node_control_ip>>
53 infra_config_deploy_address:
54 value_template: <<node_deploy_ip>>
55 infra_proxy:
56 expression: <<node_hostname>>__startswith__prx
57 node_class:
58 value_template:
59 - cluster.<<node_cluster>>.stacklight.proxy
60 kubernetes_control01:
61 expression: <<node_hostname>>__equals__ctl01
62 cluster_param:
63 kubernetes_control_node01_address:
64 value_template: <<node_control_ip>>
65 kubernetes_control02:
66 expression: <<node_hostname>>__equals__ctl02
67 cluster_param:
68 kubernetes_control_node02_address:
69 value_template: <<node_control_ip>>
70 kubernetes_control03:
71 expression: <<node_hostname>>__equals__ctl03
72 cluster_param:
73 kubernetes_control_node03_address:
74 value_template: <<node_control_ip>>
75 kubernetes_compute:
76 expression: <<node_hostname>>__startswith__cmp
77 node_class:
78 value_template:
79 - cluster.<<node_cluster>>.kubernetes.compute
80 stacklight_monitor01:
81 expression: <<node_hostname>>__equals__mon01
82 cluster_param:
83 stacklight_node01_address:
84 value_template: <<node_control_ip>>
85 stacklight_monitor02:
86 expression: <<node_hostname>>__equals__mon02
87 cluster_param:
88 stacklight_node02_address:
89 value_template: <<node_control_ip>>
90 stacklight_monitor03:
91 expression: <<node_hostname>>__equals__mon03
92 cluster_param:
93 stacklight_node03_address:
94 value_template: <<node_control_ip>>
Tomáš Kukrál328de802017-04-27 15:17:40 +020095 node:
Tomáš Kukrál328de802017-04-27 15:17:40 +020096 prx_node:
97 name: ${_param:kubernetes_proxy_node01_hostname}
98 domain: ${_param:cluster_domain}
99 classes:
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200100 - cluster.${_param:cluster_name}.stacklight.proxy
Tomáš Kukrál328de802017-04-27 15:17:40 +0200101 params:
Simon Pasquieref3efb52017-05-04 12:47:11 +0200102 salt_master_host: ${_param:infra_config_deploy_address}
Tomáš Kukrál328de802017-04-27 15:17:40 +0200103 linux_system_codename: xenial
104 single_address: ${_param:kubernetes_proxy_node01_address}
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200105 stacklight_node01:
106 name: ${_param:stacklight_node01_hostname}
Tomáš Kukrál328de802017-04-27 15:17:40 +0200107 domain: ${_param:cluster_domain}
108 classes:
Simon Pasquier994b69d2017-06-08 15:58:53 +0200109 - service.galera.master.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200110 - system.docker.swarm.master
111 - cluster.${_param:cluster_name}.stacklight.client
112 - cluster.${_param:cluster_name}.stacklight.server
Tomáš Kukrál328de802017-04-27 15:17:40 +0200113 params:
Simon Pasquieref3efb52017-05-04 12:47:11 +0200114 salt_master_host: ${_param:infra_config_deploy_address}
Tomáš Kukrál328de802017-04-27 15:17:40 +0200115 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200116 single_address: ${_param:stacklight_node01_address}
Simon Pasquieref3efb52017-05-04 12:47:11 +0200117 keepalived_vip_priority: 100
Simon Pasquier994b69d2017-06-08 15:58:53 +0200118 mysql_cluster_role: master
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200119 stacklight_node02:
120 name: ${_param:stacklight_node02_hostname}
Simon Pasquieref3efb52017-05-04 12:47:11 +0200121 domain: ${_param:cluster_domain}
122 classes:
Simon Pasquier994b69d2017-06-08 15:58:53 +0200123 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200124 - system.docker.swarm.manager
125 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquieref3efb52017-05-04 12:47:11 +0200126 params:
127 salt_master_host: ${_param:infra_config_deploy_address}
128 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200129 single_address: ${_param:stacklight_node02_address}
Simon Pasquieref3efb52017-05-04 12:47:11 +0200130 keepalived_vip_priority: 101
Simon Pasquier994b69d2017-06-08 15:58:53 +0200131 mysql_cluster_role: slave
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200132 stacklight_node03:
133 name: ${_param:stacklight_node03_hostname}
Simon Pasquieref3efb52017-05-04 12:47:11 +0200134 domain: ${_param:cluster_domain}
135 classes:
Simon Pasquier994b69d2017-06-08 15:58:53 +0200136 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200137 - system.docker.swarm.manager
138 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquieref3efb52017-05-04 12:47:11 +0200139 params:
140 salt_master_host: ${_param:infra_config_deploy_address}
141 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200142 single_address: ${_param:stacklight_node03_address}
Simon Pasquieref3efb52017-05-04 12:47:11 +0200143 keepalived_vip_priority: 102
Simon Pasquier994b69d2017-06-08 15:58:53 +0200144 mysql_cluster_role: slave
Tomáš Kukrál328de802017-04-27 15:17:40 +0200145 opencontrail_control_node01:
146 params:
147 rabbitmq_cluster_role: master
148 opencontrail_control_node02:
149 params:
150 rabbitmq_cluster_role: slave
151 opencontrail_control_node03:
152 params:
153 rabbitmq_cluster_role: slave
Jiri Broulikd3a38672017-08-22 14:15:09 +0200154 kubernetes_compute_node01:
155 name: ${_param:kubernetes_compute_node01_hostname}
156 domain: ${_param:cluster_domain}
157 classes:
158 - cluster.${_param:cluster_name}.kubernetes.compute
159 params:
160 salt_master_host: ${_param:infra_config_deploy_address}
161 linux_system_codename: xenial
162 single_address: ${_param:kubernetes_compute_node01_address}
163 kubernetes_compute_node02:
164 name: ${_param:kubernetes_compute_node02_hostname}
165 domain: ${_param:cluster_domain}
166 classes:
167 - cluster.${_param:cluster_name}.kubernetes.compute
168 params:
169 salt_master_host: ${_param:infra_config_deploy_address}
170 linux_system_codename: xenial
171 single_address: ${_param:kubernetes_compute_node02_address}