diff --git a/manifests/init.pp b/manifests/init.pp index 0fcfd3c..eb091ab 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -15,7 +15,7 @@ # Class to install kibana frontend to logstash. # class kibana ( - $discover_node = 'localhost' + $discover_nodes = ['localhost:9200'] ) { group { 'kibana': diff --git a/templates/config.rb.erb b/templates/config.rb.erb index 65384ec..b59843e 100755 --- a/templates/config.rb.erb +++ b/templates/config.rb.erb @@ -7,7 +7,7 @@ module KibanaConfig # Your elastic search server(s). This may be set as an array for round robin # load balancing # Elasticsearch = ["elasticsearch1:9200","elasticsearch2:9200"] - Elasticsearch = "<%= scope.lookupvar("::kibana::discover_node") %>:9200" + Elasticsearch = ["<%= scope.lookupvar("::kibana::discover_nodes").join("\",\"") %>"] #Set the Net::HTTP read/open timeouts for the connection to the ES backend ElasticsearchTimeout = 500