blob: 8c95485813389b24d38c0b17ad16d703fedad683 [file] [log] [blame]
Adam Tengler317b0d52017-07-13 12:42:22 +02001classes:
Martin Polreicha0addcc2018-06-25 11:32:52 +02002 - system.linux.system.repo.mcp.apt_mirantis.saltstack
Ondrej Smola71fd71e2018-03-28 12:24:11 +02003 - system.linux.system.repo.mcp.extra
Sergey Novikov4799d612017-09-25 16:23:37 +04004 - system.salt.master.pkg
5 - system.salt.master.api
6 - system.salt.minion.ca.salt_master
7 - system.reclass.storage.salt
8 - system.sphinx.server.doc.reclass
9 - cluster.drivetrain-ha
Adam Tengler317b0d52017-07-13 12:42:22 +020010parameters:
Adam Tengler317b0d52017-07-13 12:42:22 +020011 salt:
12 master:
13 reactor:
14 reclass/minion/classify:
15 - salt://reclass/reactor/node_register.sls
Adam Tenglerf7911f32017-08-02 15:57:14 +000016 environment:
17 prd:
18 formula:
19 glusterfs:
20 source: pkg
21 name: salt-formula-glusterfs
Adam Tengler317b0d52017-07-13 12:42:22 +020022 linux:
23 network:
24 interface:
25 ens4:
26 enabled: true
27 type: eth
28 proto: static
29 address: ${_param:single_address}
30 netmask: 255.255.255.0
31 reclass:
32 storage:
33 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:
Adam Tengler493da1f2017-08-04 10:11:25 +000044 expression: <<node_hostname>>__equals__cid01
Adam Tengler317b0d52017-07-13 12:42:22 +020045 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>>
Vladimir Jiguline487a7e2017-11-16 17:02:24 +040052 cicd_control_node01_address:
Adam Tengler317b0d52017-07-13 12:42:22 +020053 value_template: <<node_control_ip>>
Adam Tengler493da1f2017-08-04 10:11:25 +000054 cicd_control_node02:
Adam Tengler317b0d52017-07-13 12:42:22 +020055 expression: <<node_hostname>>__equals__cid02
56 cluster_param:
Vladimir Jiguline487a7e2017-11-16 17:02:24 +040057 cicd_control_node02_address:
Adam Tengler317b0d52017-07-13 12:42:22 +020058 value_template: <<node_control_ip>>
Adam Tengler493da1f2017-08-04 10:11:25 +000059 cicd_control_node03:
Adam Tengler317b0d52017-07-13 12:42:22 +020060 expression: <<node_hostname>>__equals__cid03
61 cluster_param:
62 cicd_control_node03_address:
63 value_template: <<node_control_ip>>
Adam Tengler493da1f2017-08-04 10:11:25 +000064 node:
65 cicd_control_node01:
66 name: ${_param:cicd_control_node01_hostname}
67 domain: ${_param:cluster_domain}
68 classes:
Vladimir Jigulin5fe60272017-11-13 16:09:23 +040069 - cluster.${_param:cluster_name}.infra.config
Adam Tengler493da1f2017-08-04 10:11:25 +000070 - cluster.${_param:cluster_name}.cicd.control.master
71 params:
72 salt_master_host: 127.0.0.1
73 linux_system_codename: xenial
74 single_address: ${_param:cicd_control_node01_address}
75 keepalived_vip_priority: 103
Mykyta Karpin8e5f1822018-09-14 09:47:56 +030076 glusterfs_node_role: primary
Adam Tengler493da1f2017-08-04 10:11:25 +000077 cicd_control_node02:
78 name: ${_param:cicd_control_node02_hostname}
79 domain: ${_param:cluster_domain}
80 classes:
81 - cluster.${_param:cluster_name}.cicd.control.slave
82 params:
83 salt_master_host: ${_param:reclass_config_master}
84 linux_system_codename: xenial
85 single_address: ${_param:cicd_control_node02_address}
86 keepalived_vip_priority: 102
87 docker_swarm_role: worker
Mykyta Karpin8e5f1822018-09-14 09:47:56 +030088 glusterfs_node_role: secondary
Adam Tengler493da1f2017-08-04 10:11:25 +000089 cicd_control_node03:
90 name: ${_param:cicd_control_node03_hostname}
91 domain: ${_param:cluster_domain}
92 classes:
93 - cluster.${_param:cluster_name}.cicd.control.slave
94 params:
95 salt_master_host: ${_param:reclass_config_master}
96 linux_system_codename: xenial
97 single_address: ${_param:cicd_control_node03_address}
98 keepalived_vip_priority: 101
99 docker_swarm_role: worker
Mykyta Karpin8e5f1822018-09-14 09:47:56 +0300100 glusterfs_node_role: secondary
Adam Tengler317b0d52017-07-13 12:42:22 +0200101