Permalink
Browse files

Using :default attribute with Chef is not a good idea

node.sphinx.default won't work the way you'd expect it to
  • Loading branch information...
1 parent 78da4c5 commit fb55fd641841b68c77dbc08fcda85147228b2443 @michaelklishin michaelklishin committed May 14, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 ci_environment/sphinx/attributes/default.rb
  2. +1 −1 ci_environment/sphinx/recipes/all.rb
@@ -1,8 +1,8 @@
-node[:sphinx] = {
+default[:sphinx] = {
:versions => {
'2.0.1-beta' => '/usr/local/sphinx-2.0.1',
'1.10-beta' => '/usr/local/sphinx-1.10',
'0.9.9' => '/usr/local/sphinx-0.9.9'
},
- :default => "2.0.1"
+ :linked => "2.0.1"
}
@@ -59,6 +59,6 @@
%w(indexer indextool search searchd spelldump).each do |binary|
link "/usr/local/bin/#{binary}" do
- to "/usr/local/sphinx-#{node.sphinx.default}/bin/#{binary}"
+ to "/usr/local/sphinx-#{node.sphinx.linked}/bin/#{binary}"
end
end

0 comments on commit fb55fd6

Please sign in to comment.