blob: 443d473ec3cb76a547cf59be335e5ca78f9f81ca [file] [log] [blame]
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +02001classes:
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +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.salt.minion.cert.k8s_server
Swann Croiset4e3e0842017-05-04 16:49:57 +02008- system.mysql.client
9- system.mysql.client.database.grafana
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020010- system.reclass.storage.salt
11- system.reclass.storage.system.kubernetes_control_cluster
Dmitry Kalashnik1085a992017-09-08 16:39:21 +040012- cluster.virtual-mcp11-k8s-calico.stacklight.proxy
13- cluster.virtual-mcp11-k8s-calico
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020014parameters:
15 _param:
16 salt_master_base_environment: prd
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +020017 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020018 reclass_data_revision: master
19 reclass_config_master: ${_param:infra_config_deploy_address}
20 single_address: ${_param:infra_config_address}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020021 linux_system_codename: xenial
22 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
Simon Pasquiera4e38252017-04-28 11:14:29 +020023 salt_master_host: ${_param:infra_config_deploy_address}
Jiri Broulik432ae9c2017-08-17 10:24:23 +020024 salt:
25 master:
26 reactor:
27 reclass/minion/classify:
28 - salt://reclass/reactor/node_register.sls
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020029 reclass:
30 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020031 class_mapping:
32 common_node:
33 expression: all
34 node_param:
35 single_address:
36 value_template: <<node_control_ip>>
37 linux_system_codename:
38 value_template: <<node_os>>
39 salt_master_host:
40 value_template: <<node_master_ip>>
41 infra_config:
42 expression: <<node_hostname>>__equals__cfg01
43 cluster_param:
44 infra_config_address:
45 value_template: <<node_control_ip>>
46 infra_config_deploy_address:
47 value_template: <<node_deploy_ip>>
Dmitry Kalashnik1085a992017-09-08 16:39:21 +040048 cluster_domain:
49 value_template: <<node_domain>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +020050 infra_proxy:
51 expression: <<node_hostname>>__startswith__prx
52 node_class:
53 value_template:
54 - cluster.<<node_cluster>>.stacklight.proxy
55 kubernetes_control01:
56 expression: <<node_hostname>>__equals__ctl01
57 cluster_param:
58 kubernetes_control_node01_address:
59 value_template: <<node_control_ip>>
60 kubernetes_control02:
61 expression: <<node_hostname>>__equals__ctl02
62 cluster_param:
63 kubernetes_control_node02_address:
64 value_template: <<node_control_ip>>
65 kubernetes_control03:
66 expression: <<node_hostname>>__equals__ctl03
67 cluster_param:
68 kubernetes_control_node03_address:
69 value_template: <<node_control_ip>>
70 kubernetes_compute:
71 expression: <<node_hostname>>__startswith__cmp
72 node_class:
73 value_template:
74 - cluster.<<node_cluster>>.kubernetes.compute
75 stacklight_monitor01:
76 expression: <<node_hostname>>__equals__mon01
77 cluster_param:
78 stacklight_node01_address:
79 value_template: <<node_control_ip>>
80 stacklight_monitor02:
81 expression: <<node_hostname>>__equals__mon02
82 cluster_param:
83 stacklight_node02_address:
84 value_template: <<node_control_ip>>
85 stacklight_monitor03:
86 expression: <<node_hostname>>__equals__mon03
87 cluster_param:
88 stacklight_node03_address:
89 value_template: <<node_control_ip>>
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020090 node:
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020091 prx_node:
92 name: ${_param:kubernetes_proxy_node01_hostname}
93 domain: ${_param:cluster_domain}
94 classes:
Simon Pasquiera7a449d2017-05-11 10:03:41 +020095 - cluster.${_param:cluster_name}.stacklight.proxy
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020096 params:
Simon Pasquiera4e38252017-04-28 11:14:29 +020097 salt_master_host: ${_param:infra_config_deploy_address}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020098 linux_system_codename: xenial
99 single_address: ${_param:kubernetes_proxy_node01_address}
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200100 stacklight_node01:
101 name: ${_param:stacklight_node01_hostname}
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200102 domain: ${_param:cluster_domain}
103 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200104 - service.galera.master.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200105 - system.docker.swarm.master
106 - cluster.${_param:cluster_name}.stacklight.client
107 - cluster.${_param:cluster_name}.stacklight.server
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200108 params:
Simon Pasquiera4e38252017-04-28 11:14:29 +0200109 salt_master_host: ${_param:infra_config_deploy_address}
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200110 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200111 single_address: ${_param:stacklight_node01_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200112 keepalived_vip_priority: 100
Swann Croiset4e3e0842017-05-04 16:49:57 +0200113 mysql_cluster_role: master
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200114 stacklight_node02:
115 name: ${_param:stacklight_node02_hostname}
Simon Pasquiera4e38252017-04-28 11:14:29 +0200116 domain: ${_param:cluster_domain}
117 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200118 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200119 - system.docker.swarm.manager
120 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquiera4e38252017-04-28 11:14:29 +0200121 params:
122 salt_master_host: ${_param:infra_config_deploy_address}
123 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200124 single_address: ${_param:stacklight_node02_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200125 keepalived_vip_priority: 101
Swann Croiset4e3e0842017-05-04 16:49:57 +0200126 mysql_cluster_role: slave
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200127 stacklight_node03:
128 name: ${_param:stacklight_node03_hostname}
Simon Pasquiera4e38252017-04-28 11:14:29 +0200129 domain: ${_param:cluster_domain}
130 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200131 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200132 - system.docker.swarm.manager
133 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquiera4e38252017-04-28 11:14:29 +0200134 params:
135 salt_master_host: ${_param:infra_config_deploy_address}
136 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200137 single_address: ${_param:stacklight_node03_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200138 keepalived_vip_priority: 102
Jiri Broulikd3a38672017-08-22 14:15:09 +0200139 mysql_cluster_role: slave
140 kubernetes_compute_node01:
141 name: ${_param:kubernetes_compute_node01_hostname}
142 domain: ${_param:cluster_domain}
143 classes:
144 - cluster.${_param:cluster_name}.kubernetes.compute
145 params:
146 salt_master_host: ${_param:infra_config_deploy_address}
147 linux_system_codename: xenial
148 single_address: ${_param:kubernetes_compute_node01_address}
149 kubernetes_compute_node02:
150 name: ${_param:kubernetes_compute_node02_hostname}
151 domain: ${_param:cluster_domain}
152 classes:
153 - cluster.${_param:cluster_name}.kubernetes.compute
154 params:
155 salt_master_host: ${_param:infra_config_deploy_address}
156 linux_system_codename: xenial
Dmitry Kalashnik1085a992017-09-08 16:39:21 +0400157 single_address: ${_param:kubernetes_compute_node02_address}