From ce7154afc5bb9cc31033339a5a2228d12e05669c Mon Sep 17 00:00:00 2001 From: Roman Babyuk Date: Tue, 20 Sep 2016 17:44:14 +0300 Subject: [PATCH] Hindsight multiple input plugins Change-Id: I2c9cbeeb3bf052fe931f0e49c1a0417850e377e0 --- .../puppet/manifests/hindsight.pp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/deployment_scripts/puppet/manifests/hindsight.pp b/deployment_scripts/puppet/manifests/hindsight.pp index be6236e..2069eee 100644 --- a/deployment_scripts/puppet/manifests/hindsight.pp +++ b/deployment_scripts/puppet/manifests/hindsight.pp @@ -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 = {