Added influxdb support to the template

This commit is contained in:
Tim Kuhlman 2014-07-07 10:42:37 -06:00
parent 8f93f31b5f
commit c4286bedc5
2 changed files with 27 additions and 2 deletions

View File

@ -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.8"
version "0.0.9"

View File

@ -34,8 +34,9 @@ mysql:
checkConnectionOnBorrow: true
databaseConfiguration:
<%- if @setting['database-configuration']['database-type'] == 'vertica' %>
# vertica | influxdb
databaseType: <%= @setting['database-configuration']['database-type'] %>
databaseType: vertica
# Uncomment if databaseType is influxDB
#influxDB:
@ -56,6 +57,30 @@ vertica:
minSize: 4
maxSize: 32
checkConnectionWhileIdle: false
<%- else %>
# vertica | influxdb
databaseType: influxdb
# Uncomment if databaseType is influxDB
influxDB:
name: <%= @setting['influxdb']['dbname'] %>
replicationFactor: 1
url: http://<%= @setting['influxdb']['hostname'] %>:8086
user: <%=@creds['influxdb']['username'] %>
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
<%- end %>
middleware:
enabled: true