Added more config to the data bag

This commit is contained in:
Tim Kuhlman 2014-06-26 14:15:14 -06:00
parent 42fd18398d
commit 6e84937a64
3 changed files with 16 additions and 16 deletions

View File

@ -50,8 +50,8 @@ Attributes
Data Bags Data Bags
--------- ---------
A simple data bag item named hosts in node[:mon_notification][:data_bag] is required for running. It simply has 4 dictionary items A data bag item named hosts in node[:mon_notification][:data_bag] is required for running. It simply has 4 dictionary items
for the host names to connect to. The names and services are, kafka, mysql, smtp and zookeeper for the host names and auth infomation to connect to the services: kafka, mysql, smtp and zookeeper
Usage Usage
----- -----

View File

@ -4,5 +4,5 @@ maintainer_email 'hpcs-mon@hp.com'
license 'All rights reserved' license 'All rights reserved'
description 'Installs/Configures mon_notification' description 'Installs/Configures mon_notification'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.14' version '0.1.15'
depends 'python' depends 'python'

View File

@ -1,22 +1,22 @@
kafka: kafka:
url: <%= @hosts['kafka'] %> url: <%= @hosts['kafka']['url'] %>
group: <%= node[:mon_notification][:group] %> group: <%= node[:mon_notification][:group] %>
alarm_topic: alarm-state-transitions alarm_topic: <%= @hosts['kafka']['alarm_topic'] %>
notification_topic: alarm-notifications notification_topic: <%= @hosts['kafka']['notification_topic'] %>
mysql: mysql:
host: <%= @hosts['mysql'] %> host: <%= @hosts['mysql']['url'] %>
user: notification user: <%= @hosts['mysql']['user'] %>
passwd: password passwd: <%= @hosts['mysql']['password'] %>
db: mon db: <%= @hosts['mysql']['database'] %>
email: email:
server: <%= @hosts['smtp'] %> server: <%= @hosts['smtp']['url'] %>
port: 25 port: 25
user: user: <%= @hosts['smtp']['user'] %>
password: password: <%= @hosts['smtp']['password'] %>
timeout: 60 timeout: <%= @hosts['smtp']['timeout'] %>
from_addr: hpcs.mon@hp.com from_addr: <%= @hosts['smtp']['from_addr'] %>
processors: processors:
alarm: alarm:
@ -32,7 +32,7 @@ queues:
sent_notifications_size: 50 # limiting this size reduces potential # of re-sent notifications after a failure sent_notifications_size: 50 # limiting this size reduces potential # of re-sent notifications after a failure
zookeeper: zookeeper:
url: <%= @hosts['zookeeper'] %> url: <%= @hosts['zookeeper']['url'] %>
max_offset_lag: 600 # In seconds, undefined for none max_offset_lag: 600 # In seconds, undefined for none
logging: # Used in logging.dictConfig logging: # Used in logging.dictConfig