blob: 8fbede64b5407bc22a7ae9abe6fda53757cd019c [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +00002- system.docker.client
3- system.docker.host
Ales Komarekc12dd412017-06-27 16:24:42 +02004- system.linux.system.repo.ubuntu
Richard Felkl04250022017-10-20 13:55:43 +02005- system.linux.system.repo.mcp.salt
6- system.linux.system.repo.docker
Ales Komarekc12dd412017-06-27 16:24:42 +02007- system.openssh.client.lab
8- system.salt.master.pkg
9- system.salt.minion.ca.salt_master
10- system.salt.master.api
11- system.salt.minion.cert.k8s_server
12- system.mysql.client
13- system.mysql.client.database.grafana
14- system.reclass.storage.salt
15- system.reclass.storage.system.kubernetes_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020016- cluster.sl-k8s-calico.stacklight.proxy
17- cluster.sl-k8s-calico
Ales Komarekc12dd412017-06-27 16:24:42 +020018parameters:
19 _param:
20 salt_master_base_environment: prd
21 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
22 reclass_data_revision: master
23 reclass_config_master: ${_param:infra_config_deploy_address}
24 single_address: ${_param:infra_config_address}
25 linux_system_codename: xenial
26 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000027 salt_master_host: 127.0.0.1
28 salt:
29 master:
30 reactor:
31 reclass/minion/classify:
32 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020033 reclass:
34 storage:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000035 class_mapping:
36 common_node:
37 expression: all
38 node_param:
39 single_address:
40 value_template: <<node_control_ip>>
41 linux_system_codename:
42 value_template: <<node_os>>
43 salt_master_host:
44 value_template: <<node_master_ip>>
45 infra_config:
46 expression: <<node_hostname>>__startswith__cfg
47 cluster_param:
48 infra_config_address:
49 value_template: <<node_control_ip>>
50 infra_config_deploy_address:
51 value_template: <<node_deploy_ip>>
52 cluster_domain:
53 value_template: <<node_domain>>
54 infra_proxy:
55 expression: <<node_hostname>>__startswith__prx
56 node_class:
57 value_template:
58 - cluster.<<node_cluster>>.stacklight.proxy
59 kubernetes_control01:
60 expression: <<node_hostname>>__equals__ctl01
61 cluster_param:
62 kubernetes_control_node01_address:
63 value_template: <<node_control_ip>>
64 kubernetes_control02:
65 expression: <<node_hostname>>__equals__ctl02
66 cluster_param:
67 kubernetes_control_node02_address:
68 value_template: <<node_control_ip>>
69 kubernetes_control03:
70 expression: <<node_hostname>>__equals__ctl03
71 cluster_param:
72 kubernetes_control_node03_address:
73 value_template: <<node_control_ip>>
74 kubernetes_compute:
75 expression: <<node_hostname>>__startswith__cmp
76 node_class:
77 value_template:
78 - cluster.<<node_cluster>>.kubernetes.compute
79 stacklight_monitor01:
80 expression: <<node_hostname>>__equals__mon01
81 cluster_param:
82 stacklight_monitor_node01_address:
83 value_template: <<node_control_ip>>
84 stacklight_monitor02:
85 expression: <<node_hostname>>__equals__mon02
86 cluster_param:
87 stacklight_monitor_node02_address:
88 value_template: <<node_control_ip>>
89 stacklight_monitor03:
90 expression: <<node_hostname>>__equals__mon03
91 cluster_param:
92 stacklight_monitor_node03_address:
93 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020094 node:
Adam Tengler106a9b72017-09-27 14:21:30 +020095 stacklight_server_node01:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000096 name: ${_param:stacklight_monitor_node01_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +020097 domain: ${_param:cluster_domain}
98 classes:
Adam Tengler99446832017-07-11 12:43:05 +000099 - service.galera.master.cluster
100 - system.docker.swarm.master
101 - cluster.${_param:cluster_name}.stacklight.client
102 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200103 params:
104 salt_master_host: ${_param:infra_config_deploy_address}
105 linux_system_codename: xenial
Martin Polreichd8dc1ed2017-08-16 13:24:26 +0000106 single_address: ${_param:stacklight_monitor_node01_address}
Adam Tengler99446832017-07-11 12:43:05 +0000107 keepalived_vip_priority: 100
108 mysql_cluster_role: master
Adam Tengler106a9b72017-09-27 14:21:30 +0200109 stacklight_server_node02:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +0000110 name: ${_param:stacklight_monitor_node02_hostname}
Adam Tengler99446832017-07-11 12:43:05 +0000111 domain: ${_param:cluster_domain}
112 classes:
113 - service.galera.slave.cluster
114 - system.docker.swarm.manager
115 - cluster.${_param:cluster_name}.stacklight.server
116 params:
117 salt_master_host: ${_param:infra_config_deploy_address}
118 linux_system_codename: xenial
Martin Polreichd8dc1ed2017-08-16 13:24:26 +0000119 single_address: ${_param:stacklight_monitor_node02_address}
Adam Tengler99446832017-07-11 12:43:05 +0000120 keepalived_vip_priority: 101
121 mysql_cluster_role: slave
Adam Tengler106a9b72017-09-27 14:21:30 +0200122 stacklight_server_node03:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +0000123 name: ${_param:stacklight_monitor_node03_hostname}
Adam Tengler99446832017-07-11 12:43:05 +0000124 domain: ${_param:cluster_domain}
125 classes:
126 - service.galera.slave.cluster
127 - system.docker.swarm.manager
128 - cluster.${_param:cluster_name}.stacklight.server
129 params:
130 salt_master_host: ${_param:infra_config_deploy_address}
131 linux_system_codename: xenial
Martin Polreichd8dc1ed2017-08-16 13:24:26 +0000132 single_address: ${_param:stacklight_monitor_node03_address}
Adam Tengler99446832017-07-11 12:43:05 +0000133 keepalived_vip_priority: 102
134 mysql_cluster_role: slave
Martin Polreichd8dc1ed2017-08-16 13:24:26 +0000135