blob: cec894e269ca6a08808e0400738967f8a537397c [file] [log] [blame]
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +02001classes:
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +02002- system.linux.system.repo.ubuntu
Richard Felkl04250022017-10-20 13:55:43 +02003- system.linux.system.repo.mcp.salt
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +02004- system.openssh.client.lab
5- system.salt.master.pkg
6- system.salt.minion.ca.salt_master
7- system.salt.master.api
8- system.salt.minion.cert.k8s_server
Swann Croiset4e3e0842017-05-04 16:49:57 +02009- system.mysql.client
10- system.mysql.client.database.grafana
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020011- system.reclass.storage.salt
12- system.reclass.storage.system.kubernetes_control_cluster
Dmitry Kalashnik1085a992017-09-08 16:39:21 +040013- cluster.virtual-mcp11-k8s-calico.stacklight.proxy
14- cluster.virtual-mcp11-k8s-calico
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020015parameters:
16 _param:
17 salt_master_base_environment: prd
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +020018 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020019 reclass_data_revision: master
20 reclass_config_master: ${_param:infra_config_deploy_address}
21 single_address: ${_param:infra_config_address}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020022 linux_system_codename: xenial
23 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
Simon Pasquiera4e38252017-04-28 11:14:29 +020024 salt_master_host: ${_param:infra_config_deploy_address}
Jiri Broulik432ae9c2017-08-17 10:24:23 +020025 salt:
26 master:
27 reactor:
28 reclass/minion/classify:
29 - salt://reclass/reactor/node_register.sls
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020030 reclass:
31 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020032 class_mapping:
33 common_node:
34 expression: all
35 node_param:
36 single_address:
37 value_template: <<node_control_ip>>
38 linux_system_codename:
39 value_template: <<node_os>>
40 salt_master_host:
41 value_template: <<node_master_ip>>
42 infra_config:
43 expression: <<node_hostname>>__equals__cfg01
44 cluster_param:
45 infra_config_address:
46 value_template: <<node_control_ip>>
47 infra_config_deploy_address:
48 value_template: <<node_deploy_ip>>
Dmitry Kalashnik1085a992017-09-08 16:39:21 +040049 cluster_domain:
50 value_template: <<node_domain>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020051 infra_proxy:
52 expression: <<node_hostname>>__startswith__prx
53 node_class:
54 value_template:
55 - cluster.<<node_cluster>>.stacklight.proxy
56 kubernetes_control01:
57 expression: <<node_hostname>>__equals__ctl01
58 cluster_param:
59 kubernetes_control_node01_address:
60 value_template: <<node_control_ip>>
61 kubernetes_control02:
62 expression: <<node_hostname>>__equals__ctl02
63 cluster_param:
64 kubernetes_control_node02_address:
65 value_template: <<node_control_ip>>
66 kubernetes_control03:
67 expression: <<node_hostname>>__equals__ctl03
68 cluster_param:
69 kubernetes_control_node03_address:
70 value_template: <<node_control_ip>>
71 kubernetes_compute:
72 expression: <<node_hostname>>__startswith__cmp
73 node_class:
74 value_template:
75 - cluster.<<node_cluster>>.kubernetes.compute
76 stacklight_monitor01:
77 expression: <<node_hostname>>__equals__mon01
78 cluster_param:
79 stacklight_node01_address:
80 value_template: <<node_control_ip>>
81 stacklight_monitor02:
82 expression: <<node_hostname>>__equals__mon02
83 cluster_param:
84 stacklight_node02_address:
85 value_template: <<node_control_ip>>
86 stacklight_monitor03:
87 expression: <<node_hostname>>__equals__mon03
88 cluster_param:
89 stacklight_node03_address:
90 value_template: <<node_control_ip>>
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020091 node:
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020092 prx_node:
93 name: ${_param:kubernetes_proxy_node01_hostname}
94 domain: ${_param:cluster_domain}
95 classes:
Simon Pasquiera7a449d2017-05-11 10:03:41 +020096 - cluster.${_param:cluster_name}.stacklight.proxy
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020097 params:
Simon Pasquiera4e38252017-04-28 11:14:29 +020098 salt_master_host: ${_param:infra_config_deploy_address}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020099 linux_system_codename: xenial
100 single_address: ${_param:kubernetes_proxy_node01_address}
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200101 stacklight_node01:
102 name: ${_param:stacklight_node01_hostname}
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200103 domain: ${_param:cluster_domain}
104 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200105 - service.galera.master.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200106 - system.docker.swarm.master
107 - cluster.${_param:cluster_name}.stacklight.client
108 - cluster.${_param:cluster_name}.stacklight.server
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200109 params:
Simon Pasquiera4e38252017-04-28 11:14:29 +0200110 salt_master_host: ${_param:infra_config_deploy_address}
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200111 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200112 single_address: ${_param:stacklight_node01_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200113 keepalived_vip_priority: 100
Swann Croiset4e3e0842017-05-04 16:49:57 +0200114 mysql_cluster_role: master
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200115 stacklight_node02:
116 name: ${_param:stacklight_node02_hostname}
Simon Pasquiera4e38252017-04-28 11:14:29 +0200117 domain: ${_param:cluster_domain}
118 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200119 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200120 - system.docker.swarm.manager
121 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquiera4e38252017-04-28 11:14:29 +0200122 params:
123 salt_master_host: ${_param:infra_config_deploy_address}
124 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200125 single_address: ${_param:stacklight_node02_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200126 keepalived_vip_priority: 101
Swann Croiset4e3e0842017-05-04 16:49:57 +0200127 mysql_cluster_role: slave
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200128 stacklight_node03:
129 name: ${_param:stacklight_node03_hostname}
Simon Pasquiera4e38252017-04-28 11:14:29 +0200130 domain: ${_param:cluster_domain}
131 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200132 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200133 - system.docker.swarm.manager
134 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquiera4e38252017-04-28 11:14:29 +0200135 params:
136 salt_master_host: ${_param:infra_config_deploy_address}
137 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200138 single_address: ${_param:stacklight_node03_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200139 keepalived_vip_priority: 102
Jiri Broulikd3a38672017-08-22 14:15:09 +0200140 mysql_cluster_role: slave
141 kubernetes_compute_node01:
142 name: ${_param:kubernetes_compute_node01_hostname}
143 domain: ${_param:cluster_domain}
144 classes:
145 - cluster.${_param:cluster_name}.kubernetes.compute
146 params:
147 salt_master_host: ${_param:infra_config_deploy_address}
148 linux_system_codename: xenial
149 single_address: ${_param:kubernetes_compute_node01_address}
150 kubernetes_compute_node02:
151 name: ${_param:kubernetes_compute_node02_hostname}
152 domain: ${_param:cluster_domain}
153 classes:
154 - cluster.${_param:cluster_name}.kubernetes.compute
155 params:
156 salt_master_host: ${_param:infra_config_deploy_address}
157 linux_system_codename: xenial
Dmitry Kalashnik1085a992017-09-08 16:39:21 +0400158 single_address: ${_param:kubernetes_compute_node02_address}