blob: 569151843ac1a0d6cf43cdb03617ddc6ea9db7e8 [file] [log] [blame]
Adam Tengler317b0d52017-07-13 12:42:22 +02001classes:
Richard Felkl04250022017-10-20 13:55:43 +02002 - system.linux.system.repo.mcp.salt
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
76 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
87 cicd_control_node03:
88 name: ${_param:cicd_control_node03_hostname}
89 domain: ${_param:cluster_domain}
90 classes:
91 - cluster.${_param:cluster_name}.cicd.control.slave
92 params:
93 salt_master_host: ${_param:reclass_config_master}
94 linux_system_codename: xenial
95 single_address: ${_param:cicd_control_node03_address}
96 keepalived_vip_priority: 101
97 docker_swarm_role: worker
Adam Tengler317b0d52017-07-13 12:42:22 +020098