Merge "Hindsight multiple input plugins"

This commit is contained in:
Jenkins 2016-09-21 06:43:50 +00:00 committed by Gerrit Code Review
commit 1301beb522
1 changed files with 19 additions and 0 deletions

View File

@ -111,10 +111,29 @@ $configs = {
"${run_dir}/input/kafka_input.cfg" => {
content => template( "${templates}/input/kafka_input.cfg.erb"),
},
# TODO: avoid such a ugly thigs like below
"${run_dir}/input/kafka_input_1.cfg" => {
content => template( "${templates}/input/kafka_input.cfg.erb"),
},
"${run_dir}/input/kafka_input_2.cfg" => {
content => template( "${templates}/input/kafka_input.cfg.erb"),
},
"${run_dir}/input/kafka_input_3.cfg" => {
content => template( "${templates}/input/kafka_input.cfg.erb"),
},
}
create_resources(file, $configs, $files_defaults)
## Let's multiply kafka_input.cfg files
#define telemetry::kafka_input_cfg_creator ($i = $title, $run_dir = $run_dir, $templates = $templates) {
# file {"${run_dir}/input/kafka_input_${i}.cfg":
# content => template( "${templates}/input/kafka_input.cfg.erb"),
# }
#}
#$sufix = ['1','2','3']
#kafka_input_cfg_creator { $sufix: }
# Files
$scripts = {