jesseadams / sphinx-cookbook

Chef cookbook for Sphinx Search (searchd)
14 stars 27 forks source link

mysql dependency set as mysql >= 0.0.0, but will not work with >= 4.0 #43

Open flatrocks opened 9 years ago

flatrocks commented 9 years ago

The default recipe incudes this line:

include_recipe "mysql::client" if node[:sphinx][:use_mysql]

The mysql cookbook was refactored in version 4.0 to implement server and client as resources rather than recipes, so for mysql cookbook >= 4.0, the client recipe does not exist.

A reasonable solution might be to simply remove that include_recipe statement and document that you have to have a client installed first. (I have not tested this, but our workaround is to just install the unixodbc, libpq5, and sphinxsearch packages so it seems ok.)

IanAtkin commented 9 years ago

I wrote a wrapper cookbook called company_sphinx, and overrode the default behavior to simply install the mysql-client package.

package "mysql-client" if node[:sphinx][:use_mysql]