From 629c083feeca3e66d8677ddb73505247e2dbdcdd Mon Sep 17 00:00:00 2001 From: Tim Kuhlman Date: Thu, 10 Jul 2014 08:53:06 -0600 Subject: [PATCH] Work around bug in mon-api config parsing --- metadata.rb | 2 +- templates/default/mon-service-config.yml.erb | 21 ++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/metadata.rb b/metadata.rb index 0626f6a..3aedce0 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,4 +4,4 @@ maintainer_email "hpcs-mon-som@hp.com" license "All rights reserved" description "Installs/Configures mon_api" long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version "0.0.9" +version "0.0.10" diff --git a/templates/default/mon-service-config.yml.erb b/templates/default/mon-service-config.yml.erb index d1dbaf4..d70009f 100644 --- a/templates/default/mon-service-config.yml.erb +++ b/templates/default/mon-service-config.yml.erb @@ -70,16 +70,17 @@ influxDB: password: <%=@creds['influxdb']['password'] %> # Uncomment if databaseType is vertica -#vertica: -# driverClass: com.vertica.jdbc.Driver -# url: jdbc:vertica://localhost/mon -# user: dbadmin -# password: password -# maxWaitForConnection: 1s -# validationQuery: "/* MyService Health Check */ SELECT 1" -# minSize: 4 -# maxSize: 32 -# checkConnectionWhileIdle: false +# As of 7/10 there is a bug in the mon-api that requires this section even if databaseType is set to influxdb +vertica: + driverClass: com.vertica.jdbc.Driver + url: jdbc:vertica://localhost/mon + user: dbadmin + password: password + maxWaitForConnection: 1s + validationQuery: "/* MyService Health Check */ SELECT 1" + minSize: 4 + maxSize: 32 + checkConnectionWhileIdle: false <%- end %> middleware: