blob: e1c7b96e324abd380deecb0135588b322d3ca158 [file] [log] [blame]
Ales Komarek6f7caae2017-05-17 16:30:06 +02001classes:
2- 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
8- system.mysql.client
9- system.mysql.client.database.grafana
10- system.reclass.storage.salt
11- system.reclass.storage.system.kubernetes_control_cluster
Ales Komarekf2d1e392017-05-17 19:43:44 +020012- cluster.virtual-mcp11-k8s-calico-dyn
Ales Komarek6f7caae2017-05-17 16:30:06 +020013parameters:
14 _param:
15 salt_master_base_environment: prd
16 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
17 reclass_data_revision: master
18 reclass_config_master: ${_param:infra_config_deploy_address}
19 single_address: ${_param:infra_config_address}
20 linux_system_codename: xenial
21 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
Ales Komarekf2d1e392017-05-17 19:43:44 +020022 salt_master_host: 127.0.0.1
Ales Komarek6f7caae2017-05-17 16:30:06 +020023 salt:
24 master:
25 reactor:
26 reclass/minion/classify:
Ales Komarekf2d1e392017-05-17 19:43:44 +020027 - salt://reclass/reactor/node_register.sls
Ales Komarek6f7caae2017-05-17 16:30:06 +020028 reclass:
29 storage:
30 class_mapping:
31 common_node:
32 expression: all
33 node_param:
34 single_address:
35 value_template: <<node_ip>>
36 linux_system_codename:
37 value_template: <<node_os>>
38 salt_master_host:
39 value_template: <<node_master_ip>>
40 kubernetes_control01:
41 expression: <<node_hostname>>__equals__ctl01
42 cluster_param:
43 kubernetes_control_node01_address:
44 value_template: <<node_ip>>
45 kubernetes_control02:
46 expression: <<node_hostname>>__equals__ctl02
47 cluster_param:
48 kubernetes_control_node01_address:
49 value_template: <<node_ip>>
50 kubernetes_control03:
51 expression: <<node_hostname>>__equals__ctl03
52 cluster_param:
53 kubernetes_control_node01_address:
54 value_template: <<node_ip>>
55 kubernetes_compute:
56 expression: <<node_hostname>>__startswith__cmp
57 node_class:
58 value_template:
59 - cluster.<<node_cluster>>.kubernetes.compute
60 node:
61 prx_node:
62 name: ${_param:kubernetes_proxy_node01_hostname}
63 domain: ${_param:cluster_domain}
64 classes:
65 - cluster.${_param:cluster_name}.stacklight.proxy
66 params:
67 salt_master_host: ${_param:infra_config_deploy_address}
68 linux_system_codename: xenial
69 single_address: ${_param:kubernetes_proxy_node01_address}
70 stacklight_node01:
71 name: ${_param:stacklight_node01_hostname}
72 domain: ${_param:cluster_domain}
73 classes:
74 - service.galera.master.cluster
75 - system.docker.swarm.master
76 - cluster.${_param:cluster_name}.stacklight.client
77 - cluster.${_param:cluster_name}.stacklight.server
78 params:
79 salt_master_host: ${_param:infra_config_deploy_address}
80 linux_system_codename: xenial
81 single_address: ${_param:stacklight_node01_address}
82 keepalived_vip_priority: 100
83 mysql_cluster_role: master
84 stacklight_node02:
85 name: ${_param:stacklight_node02_hostname}
86 domain: ${_param:cluster_domain}
87 classes:
88 - service.galera.slave.cluster
89 - system.docker.swarm.manager
90 - cluster.${_param:cluster_name}.stacklight.server
91 params:
92 salt_master_host: ${_param:infra_config_deploy_address}
93 linux_system_codename: xenial
94 single_address: ${_param:stacklight_node02_address}
95 keepalived_vip_priority: 101
96 mysql_cluster_role: slave
97 stacklight_node03:
98 name: ${_param:stacklight_node03_hostname}
99 domain: ${_param:cluster_domain}
100 classes:
101 - service.galera.slave.cluster
102 - system.docker.swarm.manager
103 - cluster.${_param:cluster_name}.stacklight.server
104 params:
105 salt_master_host: ${_param:infra_config_deploy_address}
106 linux_system_codename: xenial
107 single_address: ${_param:stacklight_node03_address}
108 keepalived_vip_priority: 102
109 mysql_cluster_role: slave