blob: a66cd51a319eb7e1facef742576c33b2f9b0e546 [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
5- system.openssh.client.lab
6- system.salt.master.pkg
7- system.salt.minion.ca.salt_master
8- system.salt.master.api
9- system.salt.minion.cert.k8s_server
10- system.mysql.client
11- system.mysql.client.database.grafana
12- system.reclass.storage.salt
13- system.reclass.storage.system.kubernetes_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020014- cluster.sl-k8s-calico.stacklight.proxy
15- cluster.sl-k8s-calico
Ales Komarekc12dd412017-06-27 16:24:42 +020016parameters:
17 _param:
18 salt_master_base_environment: prd
19 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
20 reclass_data_revision: master
21 reclass_config_master: ${_param:infra_config_deploy_address}
22 single_address: ${_param:infra_config_address}
23 linux_system_codename: xenial
24 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000025 salt_master_host: 127.0.0.1
26 salt:
27 master:
28 reactor:
29 reclass/minion/classify:
30 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020031 reclass:
32 storage:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000033 class_mapping:
34 common_node:
35 expression: all
36 node_param:
37 single_address:
38 value_template: <<node_control_ip>>
39 linux_system_codename:
40 value_template: <<node_os>>
41 salt_master_host:
42 value_template: <<node_master_ip>>
43 infra_config:
44 expression: <<node_hostname>>__startswith__cfg
45 cluster_param:
46 infra_config_address:
47 value_template: <<node_control_ip>>
48 infra_config_deploy_address:
49 value_template: <<node_deploy_ip>>
50 cluster_domain:
51 value_template: <<node_domain>>
52 infra_proxy:
53 expression: <<node_hostname>>__startswith__prx
54 node_class:
55 value_template:
56 - cluster.<<node_cluster>>.stacklight.proxy
57 kubernetes_control01:
58 expression: <<node_hostname>>__equals__ctl01
59 cluster_param:
60 kubernetes_control_node01_address:
61 value_template: <<node_control_ip>>
62 kubernetes_control02:
63 expression: <<node_hostname>>__equals__ctl02
64 cluster_param:
65 kubernetes_control_node02_address:
66 value_template: <<node_control_ip>>
67 kubernetes_control03:
68 expression: <<node_hostname>>__equals__ctl03
69 cluster_param:
70 kubernetes_control_node03_address:
71 value_template: <<node_control_ip>>
72 kubernetes_compute:
73 expression: <<node_hostname>>__startswith__cmp
74 node_class:
75 value_template:
76 - cluster.<<node_cluster>>.kubernetes.compute
77 stacklight_monitor01:
78 expression: <<node_hostname>>__equals__mon01
79 cluster_param:
80 stacklight_monitor_node01_address:
81 value_template: <<node_control_ip>>
82 stacklight_monitor02:
83 expression: <<node_hostname>>__equals__mon02
84 cluster_param:
85 stacklight_monitor_node02_address:
86 value_template: <<node_control_ip>>
87 stacklight_monitor03:
88 expression: <<node_hostname>>__equals__mon03
89 cluster_param:
90 stacklight_monitor_node03_address:
91 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020092 node:
Adam Tengler106a9b72017-09-27 14:21:30 +020093 stacklight_server_node01:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000094 name: ${_param:stacklight_monitor_node01_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +020095 domain: ${_param:cluster_domain}
96 classes:
Adam Tengler99446832017-07-11 12:43:05 +000097 - service.galera.master.cluster
98 - system.docker.swarm.master
99 - cluster.${_param:cluster_name}.stacklight.client
100 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200101 params:
102 salt_master_host: ${_param:infra_config_deploy_address}
103 linux_system_codename: xenial
Martin Polreichd8dc1ed2017-08-16 13:24:26 +0000104 single_address: ${_param:stacklight_monitor_node01_address}
Adam Tengler99446832017-07-11 12:43:05 +0000105 keepalived_vip_priority: 100
106 mysql_cluster_role: master
Adam Tengler106a9b72017-09-27 14:21:30 +0200107 stacklight_server_node02:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +0000108 name: ${_param:stacklight_monitor_node02_hostname}
Adam Tengler99446832017-07-11 12:43:05 +0000109 domain: ${_param:cluster_domain}
110 classes:
111 - service.galera.slave.cluster
112 - system.docker.swarm.manager
113 - cluster.${_param:cluster_name}.stacklight.server
114 params:
115 salt_master_host: ${_param:infra_config_deploy_address}
116 linux_system_codename: xenial
Martin Polreichd8dc1ed2017-08-16 13:24:26 +0000117 single_address: ${_param:stacklight_monitor_node02_address}
Adam Tengler99446832017-07-11 12:43:05 +0000118 keepalived_vip_priority: 101
119 mysql_cluster_role: slave
Adam Tengler106a9b72017-09-27 14:21:30 +0200120 stacklight_server_node03:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +0000121 name: ${_param:stacklight_monitor_node03_hostname}
Adam Tengler99446832017-07-11 12:43:05 +0000122 domain: ${_param:cluster_domain}
123 classes:
124 - service.galera.slave.cluster
125 - system.docker.swarm.manager
126 - cluster.${_param:cluster_name}.stacklight.server
127 params:
128 salt_master_host: ${_param:infra_config_deploy_address}
129 linux_system_codename: xenial
Martin Polreichd8dc1ed2017-08-16 13:24:26 +0000130 single_address: ${_param:stacklight_monitor_node03_address}
Adam Tengler99446832017-07-11 12:43:05 +0000131 keepalived_vip_priority: 102
132 mysql_cluster_role: slave
Martin Polreichd8dc1ed2017-08-16 13:24:26 +0000133