Installs and configures Sphinx search (searchd). Installation can by from source (http or svn) or package.
Thanks to several contributions this cookbook has a lot of flexibility. See attributes/default.rb for a full list of attributes and capabilities.
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()
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()
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()
See CHANGELOG.md