cookbook 'sphinx', '= 1.0.1'
sphinx (15) Versions 1.0.1 Follow21
Installs/Configures sphinx search engine.
cookbook 'sphinx', '= 1.0.1', :supermarket
knife supermarket install sphinx
knife supermarket download sphinx
Description
Installs and configures Sphinx search (searchd). Installation can by from source (http or svn) or package.
Attributes
Thanks to several contributions this cookbook has a lot of flexibility. See attributes/default.rb for a full list of attributes and capabilities.
Usage Examples
Source Install From HTTP
Install version 2.0.8 from source.
name "sphinx" description "Sphinx search daemon (searchd)" # List of recipes and roles to apply. Requires Chef 0.8, earlier versions use 'recipes()'. run_list( "role[base]", "recipe[sphinx]", ) # Attributes applied if the node doesn't have it set already. default_attributes({ 'sphinx' => { 'use_mysql' => true, 'install_method' => 'source', 'version => '2.0.8' } }) # Attributes applied no matter what the node has set already. #override_attributes()
Source Install From SVN
By default, this will grab HEAD from trunk.
name "sphinx" description "Sphinx search daemon (searchd)" # List of recipes and roles to apply. Requires Chef 0.8, earlier versions use 'recipes()'. run_list( "role[base]", "recipe[sphinx]", ) # Attributes applied if the node doesn't have it set already. default_attributes({ 'sphinx' => { 'use_mysql' => true, 'install_method' => 'source', 'retrieve_method' => 'svn' } }) # Attributes applied no matter what the node has set already. #override_attributes()
Package Install + MySQL Support
Here is an example role using MySQL with a package install, using the latest packages.
name "sphinx" description "Sphinx search daemon (searchd)" # List of recipes and roles to apply. Requires Chef 0.8, earlier versions use 'recipes()'. run_list( "role[base]", "recipe[sphinx]", ) # Attributes applied if the node doesn't have it set already. default_attributes({ 'sphinx' => { 'use_mysql' => true, 'install_method' => 'package' } }) # Attributes applied no matter what the node has set already. #override_attributes()
History
See CHANGELOG.md
Maintainers
Dependent cookbooks
postgresql 1.0.0 |
build-essential >= 0.0.0 |
mysql >= 0.0.0 |
percona >= 0.0.0 |
yum >= 2.0.0 |
apt >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.