From 9289e66eedda9f169100d1367481eccf10ddef24 Mon Sep 17 00:00:00 2001 From: Deklan Dieterly Date: Thu, 20 Mar 2014 11:34:15 -0600 Subject: [PATCH] Update default.rb Added logdir env variable. --- recipes/default.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/recipes/default.rb b/recipes/default.rb index 90914c1..577df8f 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -17,6 +17,15 @@ directory node[:mon_thresh][:log_dir] do mode 0755 end + +file '/etc/default/mon-thresh' do + action :create + owner 'root' + group 'root' + mode 0644 + content "export LOGDIR=#{node[:mon_thresh][:log_dir]}" +end + # todo - I need an encrypted credentials data bag credentials = { 'mysql' => { 'user' => 'thresh', 'password' => 'password'}} settings = data_bag_item(node[:mon_thresh][:data_bag], 'mon_thresh')