Install Sphinx
-
If you want to use with MySQL, depends on the “mysql” cookbook.
-
If you want to use with Postgres, depends on the “postgresql” cookbook.
To setup with postgresql support override the sphinx/configure_flags attribute.
Here is an example of how I do it in one of my cookbook attributes file:
include_attribute “sphinx::default”
set[:configure_flags] = [
"--with-pgsql", "--without-mysql", "#{sphinx[:use_stemmer] ? '--with-stemmer' : '--without-stemmer'}"
]
0.5 Added package install option 0.4 Updated Download URL for sphinx source