blob: 7dec9ef5551b7f9fedafea550214a5e4eddc753f [file] [log] [blame]
Adam Tengler2feb6b22017-07-19 17:12:46 +02001classes:
Martin Polreicha0addcc2018-06-25 11:32:52 +02002 - system.linux.system.repo.mcp.apt_mirantis.saltstack
Sergey Novikov4799d612017-09-25 16:23:37 +04003 - system.salt.master.pkg
4 - system.salt.master.api
5 - system.salt.minion.ca.salt_master
6 - system.reclass.storage.salt
7 - system.sphinx.server.doc.reclass
8 - cluster.drivetrain-ha-clusters
Adam Tengler2feb6b22017-07-19 17:12:46 +02009parameters:
Adam Tengler2feb6b22017-07-19 17:12:46 +020010 salt:
11 master:
Adam Tenglerc1cd4d62017-07-25 11:19:37 +000012 order_masters: true
Adam Tengler2feb6b22017-07-19 17:12:46 +020013 reactor:
14 reclass/minion/classify:
15 - salt://reclass/reactor/node_register.sls
16 linux:
17 network:
18 interface:
19 ens4:
20 enabled: true
21 type: eth
22 proto: static
23 address: ${_param:single_address}
24 netmask: 255.255.255.0
25 reclass:
26 storage:
27 class_mapping:
28 common_node:
29 expression: all
30 node_param:
31 single_address:
32 value_template: <<node_control_ip>>
33 linux_system_codename:
34 value_template: <<node_os>>
35 salt_master_host:
36 value_template: <<node_master_ip>>
37 infra_config:
Adam Tengler500745f2017-07-27 15:51:10 +000038 expression:
39 - <<node_hostname>>__startswith__cfg
40 - <<node_cluster>>__equals__drivetrain_ha_clusters
Adam Tengler2feb6b22017-07-19 17:12:46 +020041 cluster_param:
42 infra_config_address:
43 value_template: <<node_control_ip>>
44 infra_config_deploy_address:
45 value_template: <<node_deploy_ip>>
46 cluster_domain:
47 value_template: <<node_domain>>
Adam Tenglerdc5ef782017-08-04 10:06:58 +000048 cicd_control_node01:
Adam Tengler2feb6b22017-07-19 17:12:46 +020049 expression: <<node_hostname>>__equals__cid01
50 cluster_param:
51 cicd_control_node01_address:
52 value_template: <<node_control_ip>>
Adam Tenglerdc5ef782017-08-04 10:06:58 +000053 cicd_control_node02:
Adam Tengler2feb6b22017-07-19 17:12:46 +020054 expression: <<node_hostname>>__equals__cid02
55 cluster_param:
56 cicd_control_node02_address:
57 value_template: <<node_control_ip>>
Adam Tenglerdc5ef782017-08-04 10:06:58 +000058 cicd_control_node03:
Adam Tengler2feb6b22017-07-19 17:12:46 +020059 expression: <<node_hostname>>__equals__cid03
60 cluster_param:
61 cicd_control_node03_address:
62 value_template: <<node_control_ip>>
Adam Tenglerdc5ef782017-08-04 10:06:58 +000063 node:
64 cicd_control_node01:
65 name: ${_param:cicd_control_node01_hostname}
66 domain: ${_param:cluster_domain}
67 classes:
Vladimir Jigulin5fe60272017-11-13 16:09:23 +040068 - cluster.${_param:cluster_name}.infra.config
Adam Tenglerdc5ef782017-08-04 10:06:58 +000069 - cluster.${_param:cluster_name}.cicd.control.master
70 params:
71 salt_master_host: ${_param:reclass_config_master}
72 linux_system_codename: xenial
73 single_address: ${_param:cicd_control_node01_address}
74 keepalived_vip_priority: 103
Mykyta Karpin8e5f1822018-09-14 09:47:56 +030075 glusterfs_node_role: primary
Adam Tenglerdc5ef782017-08-04 10:06:58 +000076 cicd_control_node02:
77 name: ${_param:cicd_control_node02_hostname}
78 domain: ${_param:cluster_domain}
79 classes:
80 - cluster.${_param:cluster_name}.cicd.control.slave
81 params:
82 salt_master_host: ${_param:reclass_config_master}
83 linux_system_codename: xenial
84 single_address: ${_param:cicd_control_node02_address}
85 keepalived_vip_priority: 102
86 docker_swarm_role: worker
Mykyta Karpin8e5f1822018-09-14 09:47:56 +030087 glusterfs_node_role: secondary
Adam Tenglerdc5ef782017-08-04 10:06:58 +000088 cicd_control_node03:
89 name: ${_param:cicd_control_node03_hostname}
90 domain: ${_param:cluster_domain}
91 classes:
92 - cluster.${_param:cluster_name}.cicd.control.slave
93 params:
94 salt_master_host: ${_param:reclass_config_master}
95 linux_system_codename: xenial
96 single_address: ${_param:cicd_control_node03_address}
97 keepalived_vip_priority: 101
98 docker_swarm_role: worker
Mykyta Karpin8e5f1822018-09-14 09:47:56 +030099 glusterfs_node_role: secondary