diff --git a/metadata.rb b/metadata.rb index 8c7bf4a..9760168 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.6' +version '0.1.7' diff --git a/recipes/default.rb b/recipes/default.rb index 941baac..e6e2d89 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -1,4 +1,9 @@ -package 'mon-notification' do +# preferable for the OS to install then easy_install to try and compile the MySQL-python package +package 'python-mysqldb' do + action :install +end + +easy_install_package 'mon-notification' do action :upgrade end diff --git a/templates/default/mon-notification.conf.erb b/templates/default/mon-notification.conf.erb index 42790fe..37d896d 100644 --- a/templates/default/mon-notification.conf.erb +++ b/templates/default/mon-notification.conf.erb @@ -10,4 +10,4 @@ kill timeout 240 setgid <%= node[:mon_notification][:group] %> setuid <%= node[:mon_notification][:user] %> -exec /usr/bin/mon-notification +exec /usr/local/bin/mon-notification