From ea911dfb3542ec70d822f105ce5bf7c1823e641e Mon Sep 17 00:00:00 2001 From: Tim Kuhlman Date: Mon, 12 May 2014 16:28:47 -0600 Subject: [PATCH] Made the smtp_server configurable and defaulted it to localhost --- attributes/default.rb | 1 + metadata.rb | 2 +- templates/default/notification.yaml.erb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/attributes/default.rb b/attributes/default.rb index 435a239..ceade1f 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -2,3 +2,4 @@ default[:mon_notification][:user] = 'mon-notification' default[:mon_notification][:group] = 'mon-notification' default[:mon_notification][:conf_dir] = '/etc/mon' default[:mon_notification][:log_dir] = '/var/log/mon-notification' +default[:mon_notification][:smtp_server] = 'localhost' diff --git a/metadata.rb b/metadata.rb index 9760168..19ae034 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,4 +4,4 @@ maintainer_email 'hpcs-mon@hp.com' license 'All rights reserved' description 'Installs/Configures mon_notification' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '0.1.7' +version '0.1.8' diff --git a/templates/default/notification.yaml.erb b/templates/default/notification.yaml.erb index f5c0afc..e1788b8 100644 --- a/templates/default/notification.yaml.erb +++ b/templates/default/notification.yaml.erb @@ -11,7 +11,7 @@ mysql: db: mon email: - server: smtp3.hp.com + server: <%= node[:mon_notification][:smtp_server] %> port: 25 user: password: