Skip to content

Commit

Permalink
Support a solr.rb config file for chef-solr
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Jun 13, 2010
1 parent 4170158 commit 5cb8d67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions chef/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
set_unless[:chef][:server_port] = "4000"
set_unless[:chef][:webui_port] = "4040"
set_unless[:chef][:webui_enabled] = false
set_unless[:chef][:solr_heap_size] = "256M"
set_unless[:chef][:validation_client_name] = "chef-validator"

set_unless[:chef][:server_fqdn] = node.has_key?(:domain) ? "chef.#{domain}" : "chef"
Expand Down
12 changes: 7 additions & 5 deletions chef/recipes/bootstrap_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@
end
end

template "/etc/chef/server.rb" do
source "server.rb.erb"
owner "root"
group root_group
mode "600"
%w{ server solr }.each do |cfg|
template "/etc/chef/#{cfg}.rb" do
source "#{cfg}.rb.erb"
owner "root"
group root_group
mode "600"
end
end

%w{ cache search_index }.each do |dir|
Expand Down

0 comments on commit 5cb8d67

Please sign in to comment.