9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# File 'manifests/raft.pp', line 9
define clickhouse_keeper::raft (
Integer $id,
String $address,
Integer $port,
String $target,
String $cluster,
Boolean $export_raft,
) {
if $export_raft {
@@concat::fragment { $title:
target => $target,
content => epp("${module_name}/raft.xml.epp", {
'id' => $id,
'address' => $address,
'port' => $port
}),
order => 50,
tag => "clickhouse_keeper::config-${cluster}",
}
} else {
concat::fragment { $title:
target => $target,
content => epp("${module_name}/raft.xml.epp", {
'id' => $id,
'address' => $address,
'port' => $port
}),
order => 50,
tag => "clickhouse_keeper::config-${cluster}",
}
}
}
|