blob: 88cc695fb385e05d685a2f827ee304569aad5a9d [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
vitalygusev74db2b82018-03-20 19:16:08 +04002- system.linux.system.repo.mcp.apt_mirantis.ubuntu
3- system.linux.system.repo.mcp.apt_mirantis.saltstack_2016_3
Richard Felkl04250022017-10-20 13:55:43 +02004- system.linux.system.repo.mcp.salt
Ales Komarekc12dd412017-06-27 16:24:42 +02005- 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/"
vitalygusev74db2b82018-03-20 19:16:08 +040025 salt_master_host: ${_param:infra_config_deploy_address}
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000026 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:
vitalygusev74db2b82018-03-20 19:16:08 +040044 expression: <<node_hostname>>__equals__cfg01
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000045 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
vitalygusev74db2b82018-03-20 19:16:08 +040077 node_param:
78 deploy_address:
79 value_template: <<node_deploy_ip>>
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000080 stacklight_monitor01:
81 expression: <<node_hostname>>__equals__mon01
82 cluster_param:
vitalygusev74db2b82018-03-20 19:16:08 +040083 stacklight_node01_address:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000084 value_template: <<node_control_ip>>
85 stacklight_monitor02:
86 expression: <<node_hostname>>__equals__mon02
87 cluster_param:
vitalygusev74db2b82018-03-20 19:16:08 +040088 stacklight_node02_address:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000089 value_template: <<node_control_ip>>
90 stacklight_monitor03:
91 expression: <<node_hostname>>__equals__mon03
92 cluster_param:
vitalygusev74db2b82018-03-20 19:16:08 +040093 stacklight_node03_address:
Martin Polreichd8dc1ed2017-08-16 13:24:26 +000094 value_template: <<node_control_ip>>
Ales Komarekc12dd412017-06-27 16:24:42 +020095 node:
vitalygusev74db2b82018-03-20 19:16:08 +040096 prx_node:
97 name: ${_param:kubernetes_proxy_node01_hostname}
98 domain: ${_param:cluster_domain}
99 classes:
100 - cluster.${_param:cluster_name}.stacklight.proxy
101 params:
102 salt_master_host: ${_param:infra_config_deploy_address}
103 linux_system_codename: xenial
104 single_address: ${_param:kubernetes_proxy_node01_address}
105 stacklight_node01:
106 name: ${_param:stacklight_node01_hostname}
Ales Komarekc12dd412017-06-27 16:24:42 +0200107 domain: ${_param:cluster_domain}
108 classes:
Adam Tengler99446832017-07-11 12:43:05 +0000109 - service.galera.master.cluster
110 - system.docker.swarm.master
111 - cluster.${_param:cluster_name}.stacklight.client
112 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200113 params:
114 salt_master_host: ${_param:infra_config_deploy_address}
115 linux_system_codename: xenial
vitalygusev74db2b82018-03-20 19:16:08 +0400116 single_address: ${_param:stacklight_node01_address}
Adam Tengler99446832017-07-11 12:43:05 +0000117 keepalived_vip_priority: 100
118 mysql_cluster_role: master
vitalygusev74db2b82018-03-20 19:16:08 +0400119 stacklight_node02:
120 name: ${_param:stacklight_node02_hostname}
Adam Tengler99446832017-07-11 12:43:05 +0000121 domain: ${_param:cluster_domain}
122 classes:
123 - service.galera.slave.cluster
124 - system.docker.swarm.manager
125 - cluster.${_param:cluster_name}.stacklight.server
126 params:
127 salt_master_host: ${_param:infra_config_deploy_address}
128 linux_system_codename: xenial
vitalygusev74db2b82018-03-20 19:16:08 +0400129 single_address: ${_param:stacklight_node02_address}
Adam Tengler99446832017-07-11 12:43:05 +0000130 keepalived_vip_priority: 101
131 mysql_cluster_role: slave
vitalygusev74db2b82018-03-20 19:16:08 +0400132 stacklight_node03:
133 name: ${_param:stacklight_node03_hostname}
Adam Tengler99446832017-07-11 12:43:05 +0000134 domain: ${_param:cluster_domain}
135 classes:
136 - service.galera.slave.cluster
137 - system.docker.swarm.manager
138 - cluster.${_param:cluster_name}.stacklight.server
139 params:
140 salt_master_host: ${_param:infra_config_deploy_address}
141 linux_system_codename: xenial
vitalygusev74db2b82018-03-20 19:16:08 +0400142 single_address: ${_param:stacklight_node03_address}
Adam Tengler99446832017-07-11 12:43:05 +0000143 keepalived_vip_priority: 102
144 mysql_cluster_role: slave
Martin Polreichd8dc1ed2017-08-16 13:24:26 +0000145