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
33
34
35
36
37
38
39
40
41
|
# File 'manifests/init.pp', line 1
class kapacitor (
Kapacitor::Templates $templates,
Kapacitor::Tasks $tasks,
Kapacitor::Topic_handlers $topic_handlers,
String $data_dir,
Hash $opts,
String $config_dir,
String $config_file,
Boolean $config_file_manage,
Hash $packages,
Hash $gem_dependencies,
Enum["default", "docker"] $service_provider,
Hash $service_opts,
String $service_image,
String $service_name,
Boolean $service_manage,
Enum["present", "absent", "stopped", "running"] $service_ensure,
Boolean $service_enable
) {
include kapacitor::install
include kapacitor::config
include kapacitor::service
$templates.each |String $template_name, Kapacitor::Template $template| {
kapacitor_template {$template_name:
* => $template
}
}
$tasks.each |String $task_name, Kapacitor::Task $task| {
kapacitor_task {$task_name:
* => $task
}
}
$topic_handlers.each |String $handler_name, Kapacitor::Topic_handler $handler| {
kapacitor_topic_handler {$handler_name:
* => $handler
}
}
}
|