Permalink
Browse files

use conf_dir attribute instead of hardcoding path

  • Loading branch information...
1 parent 0f3ec5b commit 09c1629d423d28574eda169b7cd9e42879695797 @jtimberman jtimberman committed Nov 27, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 providers/default.rb
View
@@ -24,7 +24,7 @@
interface = new_resource.interface.is_a?(Array) ? new_resource.interface : [new_resource.interface]
authkeys = new_resource.authkeys.is_a?(Array) ? new_resource.authkeys : [new_resource.authkeys]
- template "/etc/ha.d/ha.cf" do
+ template "#{node['heartbeat']['conf_dir']}/ha.cf" do
cookbook "heartbeat"
source "ha.cf.erb"
mode "644"
@@ -34,7 +34,7 @@
variables :heartbeat => new_resource, :nodes => nodes, :interface => interface
end
- template "/etc/ha.d/authkeys" do
+ template "#{node['heartbeat']['conf_dir']}/authkeys" do
cookbook "heartbeat"
source "authkeys.erb"
owner "root"
@@ -44,7 +44,7 @@
variables :active => new_resource.active_key || authkeys.length, :keys => authkeys
end
- template "/etc/ha.d/haresources" do
+ template "#{node['heartbeat']['conf_dir']}/haresources" do
cookbook "heartbeat"
source "haresources.erb"
owner "root"

0 comments on commit 09c1629

Please sign in to comment.