Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

couch (2) Versions 0.2.0

Installs and configures Couchdb

Policyfile
Berkshelf
Knife
cookbook 'couch', '~> 0.2.0', :supermarket
cookbook 'couch', '~> 0.2.0'
knife supermarket install couch
knife supermarket download couch
README
Dependencies
Changelog
Quality 17%

Couch Cookbook

This cookbook installs and configures the CouchDB Service.

Currently it only supports installing CouchDB from source however
there are plans to use existing OS packages.

Requirements

Cookbooks

  • yum-epel
  • ark
  • build-essentials

Operating Systems

  • CentOS, RHEL, Scientific Linux
  • Ubuntu

Packages

This cookbook was tested using the erlang community cookbook
esl recipe.

  • Erlang
  • Erlang Headers when compiling Couchdb from Source

Resource/Provider

couch_service

actions

  • create - creates the couchdb service
  • delete - removes the couchdb service
  • start - starts and enables the couchdb service
  • stop - stops the couchdb service
  • restart - restarts the couchdb service

attributes

  • port - the port to bind the couchdb service to, defaults to 5984
  • bind_address - the bind address for the couchdb service, defaults to 127.0.0.1
  • from_package - whether to install couchdb from package, defaults to false (Unsupported on RHEL)
  • source_version - the version of couchdb to install from source
  • source_url - the url to download the source from
  • source_checksum - the sha256 checksum of the source package
  • source_package - the source package name
  • path_prefix - the prefix path to install couchdb to from source

couch_config

actions

  • create - Creates a couchdb config from template
  • remove - Removes a couchdb config

attributes

  • variables - the variables to pass to the template
  • source - the template source

couch_database

Creates a couchdb database

actions

  • create - Creates the couchdb database
  • delete - Deletes a couchdb database

attributes

  • database - Name of the database (defaults to the name attribute)
  • host - the host to make the call to
  • port - the port to use when making the rest call
  • admin - the admin user to use
  • password - the admin password
  • secure - whether to use SSL when communicating
  • verify_ssl - whether to verify the ssl certificate

couch_replication

actions

  • create - Sets up replication

attributes

  • source - the source of the replication
  • target - the target for the replication
  • replicator_db - the replicator db
  • continuous - whether to make the replication continuous
  • create_target - see docs
  • doc_ids - see docs
  • proxy - see docs
  • since_seq - see docs
  • filter - see docs
  • query_params - see docs
  • use_checkpoints - see docs
  • checkpoint_interval - see docs
  • host - the host to make the call to
  • port - the port to use when making the rest call
  • admin - the admin user to use
  • password - the admin password
  • secure - whether to use SSL when communicating
  • verify_ssl - whether to verify the ssl certificate

couch_query

actions

  • get - Executes a Get query
  • put - Executes a put query
  • post - Executes a post query
  • delete - Executes a delete query

attributes

  • urn - the urn to use for the query (defaults to the name attribute)
  • body - the body to send to couchdb
  • response_code - expected http response code from the query
  • host - the host to make the call to
  • port - the port to use when making the rest call
  • admin - the admin user to use
  • password - the admin password
  • secure - whether to use SSL when communicating
  • verify_ssl - whether to verify the ssl certificate

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write you change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

copyright (C) 2015 Jim Rosser

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

Dependent cookbooks

yum-epel >= 0.0.0
ark >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Couch Cookbook CHANGELOG

v0.2.0

  • Added support for installing from package on Ubuntu
  • Removed from_source and added from_package attribute

v0.1.0

  • Initial release

Collaborator Number Metric
            

0.2.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.2.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
            

0.2.0 failed this metric

FC085: Resource using new_resource.updated_by_last_action to converge resource: couch/libraries/provider_couch_config.rb:23
FC085: Resource using new_resource.updated_by_last_action to converge resource: couch/libraries/provider_couch_config.rb:32
FC085: Resource using new_resource.updated_by_last_action to converge resource: couch/libraries/provider_couch_database.rb:15
FC085: Resource using new_resource.updated_by_last_action to converge resource: couch/libraries/provider_couch_database.rb:19
FC085: Resource using new_resource.updated_by_last_action to converge resource: couch/libraries/provider_couch_database.rb:31
FC085: Resource using new_resource.updated_by_last_action to converge resource: couch/libraries/provider_couch_database.rb:36
FC085: Resource using new_resource.updated_by_last_action to converge resource: couch/libraries/provider_couch_query.rb:21
FC085: Resource using new_resource.updated_by_last_action to converge resource: couch/libraries/provider_couch_query.rb:32
FC085: Resource using new_resource.updated_by_last_action to converge resource: couch/libraries/provider_couch_query.rb:43
FC085: Resource using new_resource.updated_by_last_action to converge resource: couch/libraries/provider_couch_query.rb:54
FC085: Resource using new_resource.updated_by_last_action to converge resource: couch/libraries/provider_couch_replication.rb:16
FC085: Resource using new_resource.updated_by_last_action to converge resource: couch/libraries/provider_couch_replication.rb:21
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.2.0 passed this metric

Testing File Metric
            

0.2.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
            

0.2.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