diff --git a/deployment_scripts/puppet/manifests/hindsight.pp b/deployment_scripts/puppet/manifests/hindsight.pp index 247899c..197084a 100644 --- a/deployment_scripts/puppet/manifests/hindsight.pp +++ b/deployment_scripts/puppet/manifests/hindsight.pp @@ -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 = {