Skip to content

jesseadams/sphinx-cookbook

Repository files navigation

Travis CI

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

About

Chef cookbook for Sphinx Search (searchd)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages