diff --git a/resources/recipes/configure.rb b/resources/recipes/configure.rb index 5c2bbc8..444bbae 100644 --- a/resources/recipes/configure.rb +++ b/resources/recipes/configure.rb @@ -7,6 +7,13 @@ proxy_services = proxy_services() +begin + split_traffic_logstash_db = data_bag_item('rBglobal', 'splittraffic') + split_traffic_logstash = split_traffic_logstash_db['logstash'] +rescue + split_traffic_logstash = false +end + rb_common_config 'Configure common' do action :configure end @@ -144,6 +151,7 @@ rb_exporter_config 'Configure rb-exporter' do if proxy_services['redborder-exporter'] + split_traffic_logstash split_traffic_logstash action [:add] else action [:remove]