blob: e1f711ed7ac631c14fa4e240393ae6f6ff1309b0 [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
12- cluster.virtual-mcp11-k8s-calico.infra
13parameters:
14 _param:
15 salt_master_base_environment: prd
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +020016 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020017 reclass_data_revision: master
18 reclass_config_master: ${_param:infra_config_deploy_address}
19 single_address: ${_param:infra_config_address}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020020 linux_system_codename: xenial
21 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
Simon Pasquiera4e38252017-04-28 11:14:29 +020022 salt_master_host: ${_param:infra_config_deploy_address}
Jiri Broulik432ae9c2017-08-17 10:24:23 +020023 salt:
24 master:
25 reactor:
26 reclass/minion/classify:
27 - salt://reclass/reactor/node_register.sls
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020028 reclass:
29 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020030 class_mapping:
31 common_node:
32 expression: all
33 node_param:
34 single_address:
35 value_template: <<node_control_ip>>
36 linux_system_codename:
37 value_template: <<node_os>>
38 salt_master_host:
39 value_template: <<node_master_ip>>
40 infra_config:
41 expression: <<node_hostname>>__equals__cfg01
42 cluster_param:
43 infra_config_address:
44 value_template: <<node_control_ip>>
45 infra_config_deploy_address:
46 value_template: <<node_deploy_ip>>
47 infra_proxy:
48 expression: <<node_hostname>>__startswith__prx
49 node_class:
50 value_template:
51 - cluster.<<node_cluster>>.stacklight.proxy
52 kubernetes_control01:
53 expression: <<node_hostname>>__equals__ctl01
54 cluster_param:
55 kubernetes_control_node01_address:
56 value_template: <<node_control_ip>>
57 kubernetes_control02:
58 expression: <<node_hostname>>__equals__ctl02
59 cluster_param:
60 kubernetes_control_node02_address:
61 value_template: <<node_control_ip>>
62 kubernetes_control03:
63 expression: <<node_hostname>>__equals__ctl03
64 cluster_param:
65 kubernetes_control_node03_address:
66 value_template: <<node_control_ip>>
67 kubernetes_compute:
68 expression: <<node_hostname>>__startswith__cmp
69 node_class:
70 value_template:
71 - cluster.<<node_cluster>>.kubernetes.compute
72 stacklight_monitor01:
73 expression: <<node_hostname>>__equals__mon01
74 cluster_param:
75 stacklight_node01_address:
76 value_template: <<node_control_ip>>
77 stacklight_monitor02:
78 expression: <<node_hostname>>__equals__mon02
79 cluster_param:
80 stacklight_node02_address:
81 value_template: <<node_control_ip>>
82 stacklight_monitor03:
83 expression: <<node_hostname>>__equals__mon03
84 cluster_param:
85 stacklight_node03_address:
86 value_template: <<node_control_ip>>
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020087 node:
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020088 prx_node:
89 name: ${_param:kubernetes_proxy_node01_hostname}
90 domain: ${_param:cluster_domain}
91 classes:
Simon Pasquiera7a449d2017-05-11 10:03:41 +020092 - cluster.${_param:cluster_name}.stacklight.proxy
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020093 params:
Simon Pasquiera4e38252017-04-28 11:14:29 +020094 salt_master_host: ${_param:infra_config_deploy_address}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020095 linux_system_codename: xenial
96 single_address: ${_param:kubernetes_proxy_node01_address}
Simon Pasquiera7a449d2017-05-11 10:03:41 +020097 stacklight_node01:
98 name: ${_param:stacklight_node01_hostname}
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +020099 domain: ${_param:cluster_domain}
100 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200101 - service.galera.master.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200102 - system.docker.swarm.master
103 - cluster.${_param:cluster_name}.stacklight.client
104 - cluster.${_param:cluster_name}.stacklight.server
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200105 params:
Simon Pasquiera4e38252017-04-28 11:14:29 +0200106 salt_master_host: ${_param:infra_config_deploy_address}
Tomáš Kukrál8c25ac92017-04-27 22:46:12 +0200107 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200108 single_address: ${_param:stacklight_node01_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200109 keepalived_vip_priority: 100
Swann Croiset4e3e0842017-05-04 16:49:57 +0200110 mysql_cluster_role: master
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200111 stacklight_node02:
112 name: ${_param:stacklight_node02_hostname}
Simon Pasquiera4e38252017-04-28 11:14:29 +0200113 domain: ${_param:cluster_domain}
114 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200115 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200116 - system.docker.swarm.manager
117 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquiera4e38252017-04-28 11:14:29 +0200118 params:
119 salt_master_host: ${_param:infra_config_deploy_address}
120 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200121 single_address: ${_param:stacklight_node02_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200122 keepalived_vip_priority: 101
Swann Croiset4e3e0842017-05-04 16:49:57 +0200123 mysql_cluster_role: slave
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200124 stacklight_node03:
125 name: ${_param:stacklight_node03_hostname}
Simon Pasquiera4e38252017-04-28 11:14:29 +0200126 domain: ${_param:cluster_domain}
127 classes:
Swann Croiset4e3e0842017-05-04 16:49:57 +0200128 - service.galera.slave.cluster
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200129 - system.docker.swarm.manager
130 - cluster.${_param:cluster_name}.stacklight.server
Simon Pasquiera4e38252017-04-28 11:14:29 +0200131 params:
132 salt_master_host: ${_param:infra_config_deploy_address}
133 linux_system_codename: xenial
Simon Pasquiera7a449d2017-05-11 10:03:41 +0200134 single_address: ${_param:stacklight_node03_address}
Simon Pasquiera3a92f62017-04-28 15:19:18 +0200135 keepalived_vip_priority: 102
Jiri Broulikd3a38672017-08-22 14:15:09 +0200136 mysql_cluster_role: slave
137 kubernetes_compute_node01:
138 name: ${_param:kubernetes_compute_node01_hostname}
139 domain: ${_param:cluster_domain}
140 classes:
141 - cluster.${_param:cluster_name}.kubernetes.compute
142 params:
143 salt_master_host: ${_param:infra_config_deploy_address}
144 linux_system_codename: xenial
145 single_address: ${_param:kubernetes_compute_node01_address}
146 kubernetes_compute_node02:
147 name: ${_param:kubernetes_compute_node02_hostname}
148 domain: ${_param:cluster_domain}
149 classes:
150 - cluster.${_param:cluster_name}.kubernetes.compute
151 params:
152 salt_master_host: ${_param:infra_config_deploy_address}
153 linux_system_codename: xenial
154 single_address: ${_param:kubernetes_compute_node02_address}