Hindsight multiple input plugins

Change-Id: I2c9cbeeb3bf052fe931f0e49c1a0417850e377e0
This commit is contained in:
Roman Babyuk 2016-09-20 17:44:14 +03:00
parent 782e153375
commit ce7154afc5
1 changed files with 19 additions and 0 deletions

View File

@ -114,10 +114,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 = {