1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'manifests/config.pp', line 1
class kapacitor::config {
file {$kapacitor::config_dir:
owner => "root",
group => "root",
mode => "0755",
ensure => "directory"
}
if $kapacitor::config_file_manage {
file {$kapacitor::config_file:
owner => "root",
group => "root",
mode => "0644",
content => epp("kapacitor/kapacitor.conf.epp", {'config' => generate_toml(deep_merge({'data_dir' => $kapacitor::data_dir}, $kapacitor::opts))}),
}
if $kapacitor::service_manage {
case $kapacitor::service_provider {
default: {
File[$kapacitor::config_file] {
notify => Service[$kapacitor::service_name]
}
}
"docker": {
File[$kapacitor::config_file] {
notify => Docker_container[$kapacitor::service_name]
}
}
}
}
}
}
|