cookbook 'sphinx', '~> 1.1.0'
sphinx (15) Versions 1.1.0 Follow21
Installs/Configures sphinx search engine.
cookbook 'sphinx', '~> 1.1.0', :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
build-essential >= 1.1.2 |
mysql >= 0.0.0 |
percona >= 0.0.0 |
postgresql >= 1.0.0 |
yum >= 0.0.0 |
yum-epel >= 0.0.0 |
apt >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
1.1.0
- Tons of housekeeping from (thanks @devx)
- Upgraded rspec and chefspec and fixed tests
1.0.3
- Loosened dependencies on other cookbooks (thanks for assistance @chris-at-thewebfellas)
- Fixed regression with stemmer
1.0.1/1.0.2
- Fixed install_path for source installations (thanks @balbeko)
- Upgraded to ChefSpec 3
1.0.0
- Major overhaul to how sphinx gets installed
- Added ability to install from source retrieved from SVN (thanks for idea @goruha)
0.6.7
- Added test-kitchen, chefspec, and basic tests
0.6.6
- Fix for variable naming mismatch introduced in 0.6.4 (thanks @thewebfellas)
0.6.5
- Percona server support (thanks @antono)
0.6.4
- Better handling of custom bindir when building from source (thanks @justinlocsei)
0.6.3
- Older and non-release versions of sphinx can now be built from source (thanks @justinlocsei)
- Added ability to cleanly add additional configure flags (thanks @justinlocsei)
0.6.2
- Resolved several items identified by foodcritic
- Fixed configuration flag for libstemmer (thanks @seanculver)
0.6.1
- Use install_path attribute as the --prefix for source installation
- Download files to the proper file_cache_path instead of /tmp
- Dynamically determine package_name based on platform, with manual override
0.6.0
- Made package version force attribute optional
- Added several required fields to metadata
- Rebuilt metadata.json
- Added recipe lines to metadata for OpsWorks (thanks @ryansch)
- Added lwrp for indexes and sources, searchd and indexer configs from attributes (thanks @makmanalp)
0.5.0
- Added package install option (thanks @RiotGames)
0.4.0
- Updated Download URL for sphinx source (thanks @RiotGames)
Collaborator Number Metric
1.1.0 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: sphinx/metadata.rb:1
FC065: Ensure source_url is set in metadata: sphinx/metadata.rb:1
FC066: Ensure chef_version is set in metadata: sphinx/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sphinx/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: sphinx/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: sphinx/providers/index.rb:16
FC085: Resource using new_resource.updated_by_last_action to converge resource: sphinx/providers/index.rb:27
FC085: Resource using new_resource.updated_by_last_action to converge resource: sphinx/providers/index.rb:38
FC085: Resource using new_resource.updated_by_last_action to converge resource: sphinx/providers/source.rb:14
FC085: Resource using new_resource.updated_by_last_action to converge resource: sphinx/providers/source.rb:26
FC121: Cookbook depends on cookbook made obsolete by Chef 14: sphinx/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: sphinx/recipes/source.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.1.0 passed this metric
Testing File Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.1.0 failed this metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: sphinx/metadata.rb:1
FC065: Ensure source_url is set in metadata: sphinx/metadata.rb:1
FC066: Ensure chef_version is set in metadata: sphinx/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sphinx/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: sphinx/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: sphinx/providers/index.rb:16
FC085: Resource using new_resource.updated_by_last_action to converge resource: sphinx/providers/index.rb:27
FC085: Resource using new_resource.updated_by_last_action to converge resource: sphinx/providers/index.rb:38
FC085: Resource using new_resource.updated_by_last_action to converge resource: sphinx/providers/source.rb:14
FC085: Resource using new_resource.updated_by_last_action to converge resource: sphinx/providers/source.rb:26
FC121: Cookbook depends on cookbook made obsolete by Chef 14: sphinx/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: sphinx/recipes/source.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.1.0 passed this metric
Testing File Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.1.0 failed this metric
FC065: Ensure source_url is set in metadata: sphinx/metadata.rb:1
FC066: Ensure chef_version is set in metadata: sphinx/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sphinx/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: sphinx/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: sphinx/providers/index.rb:16
FC085: Resource using new_resource.updated_by_last_action to converge resource: sphinx/providers/index.rb:27
FC085: Resource using new_resource.updated_by_last_action to converge resource: sphinx/providers/index.rb:38
FC085: Resource using new_resource.updated_by_last_action to converge resource: sphinx/providers/source.rb:14
FC085: Resource using new_resource.updated_by_last_action to converge resource: sphinx/providers/source.rb:26
FC121: Cookbook depends on cookbook made obsolete by Chef 14: sphinx/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: sphinx/recipes/source.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.1.0 passed this metric
Testing File Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.1.0 failed this metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number