blob: 3fb5e9bace0fcbde4766c5746c824b0b1c49d88a [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
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
Adam Tengler317b0d52017-07-13 12:42:22 +02009parameters:
Adam Tengler317b0d52017-07-13 12:42:22 +020010 salt:
11 master:
12 reactor:
13 reclass/minion/classify:
14 - salt://reclass/reactor/node_register.sls
Adam Tenglerf7911f32017-08-02 15:57:14 +000015 environment:
16 prd:
17 formula:
18 glusterfs:
19 source: pkg
20 name: salt-formula-glusterfs
Adam Tengler317b0d52017-07-13 12:42:22 +020021 linux:
22 network:
23 interface:
24 ens4:
25 enabled: true
26 type: eth
27 proto: static
28 address: ${_param:single_address}
29 netmask: 255.255.255.0
30 reclass:
31 storage:
32 class_mapping:
33 common_node:
34 expression: all
35 node_param:
36 single_address:
37 value_template: <<node_control_ip>>
38 linux_system_codename:
39 value_template: <<node_os>>
40 salt_master_host:
41 value_template: <<node_master_ip>>
42 infra_config:
Adam Tengler493da1f2017-08-04 10:11:25 +000043 expression: <<node_hostname>>__equals__cid01
Adam Tengler317b0d52017-07-13 12:42:22 +020044 cluster_param:
45 infra_config_address:
46 value_template: <<node_control_ip>>
47 infra_config_deploy_address:
48 value_template: <<node_deploy_ip>>
49 cluster_domain:
50 value_template: <<node_domain>>
Adam Tengler493da1f2017-08-04 10:11:25 +000051 cicd_control_node_node01_address:
Adam Tengler317b0d52017-07-13 12:42:22 +020052 value_template: <<node_control_ip>>
Adam Tengler493da1f2017-08-04 10:11:25 +000053 cicd_control_node02:
Adam Tengler317b0d52017-07-13 12:42:22 +020054 expression: <<node_hostname>>__equals__cid02
55 cluster_param:
Adam Tengler493da1f2017-08-04 10:11:25 +000056 cicd_control_node_node02_address:
Adam Tengler317b0d52017-07-13 12:42:22 +020057 value_template: <<node_control_ip>>
Adam Tengler493da1f2017-08-04 10:11:25 +000058 cicd_control_node03:
Adam Tengler317b0d52017-07-13 12:42:22 +020059 expression: <<node_hostname>>__equals__cid03
60 cluster_param:
61 cicd_control_node03_address:
62 value_template: <<node_control_ip>>
Adam Tengler493da1f2017-08-04 10:11:25 +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 Tengler493da1f2017-08-04 10:11:25 +000069 - cluster.${_param:cluster_name}.cicd.control.master
70 params:
71 salt_master_host: 127.0.0.1
72 linux_system_codename: xenial
73 single_address: ${_param:cicd_control_node01_address}
74 keepalived_vip_priority: 103
75 cicd_control_node02:
76 name: ${_param:cicd_control_node02_hostname}
77 domain: ${_param:cluster_domain}
78 classes:
79 - cluster.${_param:cluster_name}.cicd.control.slave
80 params:
81 salt_master_host: ${_param:reclass_config_master}
82 linux_system_codename: xenial
83 single_address: ${_param:cicd_control_node02_address}
84 keepalived_vip_priority: 102
85 docker_swarm_role: worker
86 cicd_control_node03:
87 name: ${_param:cicd_control_node03_hostname}
88 domain: ${_param:cluster_domain}
89 classes:
90 - cluster.${_param:cluster_name}.cicd.control.slave
91 params:
92 salt_master_host: ${_param:reclass_config_master}
93 linux_system_codename: xenial
94 single_address: ${_param:cicd_control_node03_address}
95 keepalived_vip_priority: 101
96 docker_swarm_role: worker
Adam Tengler317b0d52017-07-13 12:42:22 +020097