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

RSS

gearman (2) Versions 1.0.0

Installs/Configures gearman job server

Berkshelf/Librarian
Policyfile
Knife
cookbook 'gearman', '~> 1.0.0'
cookbook 'gearman', '~> 1.0.0', :supermarket
knife cookbook site install gearman
knife cookbook site download gearman
README
Dependencies
Changelog
Quality

Gearman Job Server Chef Cookbook

Build Status Dependency Status Gitter

This is a Chef cookbook to manage Gearman

Platforms

The following platforms and versions are tested and supported using test-kitchen

  • CentOS 6.6, 7.1
  • Debian 7.8, 8.1
  • Ubuntu 12.04, 14.04

Other versions that should work fine but are not testing in [test-kitchen].

  • Amazon Linux 2015-03
  • RHEL >= 6.6

Tested Queue Types and Distros

An X indicates that the queue type for the distro is supported. Different packages support different queue types because they had different compile time options and libraries used.

Drizzle Memcached MySQL Postgres SQLite3 Tokyo Cabinet
CentOS 6.6 X X X X
CentOS 7.1 X X X X
Debian 7.8 X X
Debian 8.1 X X X X
Ubuntu 12.04 X X X
Ubuntu 14.04 X X X X

Attributes

Please see gearman documentation for what each of these options do.

  • default['gearman']['parameters']['backlog'] - Number of backlog connections for listen.
  • default['gearman']['parameters']['file-descriptors'] - Number of file descriptors to allow for the process. Default is max allowed for users.
  • default['gearman']['parameters']['job-retries'] - Number of attempts to run the job before the job server removes it. Default is no limit.
  • default['gearman']['parameters']['log-file'] - Log file to write errors and information to.
  • default['gearman']['parameters']['listen'] - Address the server should listen on. Default is INADDR_ANY.
  • default['gearman']['parameters']['port'] - Port the server should listen on. Default is 4730.
  • default['gearman']['parameters']['threads'] - Number of I/O threads to use. Default = 0
  • default['gearman']['parameters']['user'] - Switch to given user after startup

  • default['gearman']['queue-type'] - Persistent queue type to use. Valid options are libdrizzle, libmemcached, libsqlite3, libpq, mysql

  • default['gearman']['libdrizzle']['host'] - Host of server

  • default['gearman']['libdrizzle']['port'] - Port of server

  • default['gearman']['libdrizzle']['uds'] - Unix domain socket for server

  • default['gearman']['libdrizzle']['user'] - User name for authentication

  • default['gearman']['libdrizzle']['password'] - Password for authentication

  • default['gearman']['libdrizzle']['db'] - Database to use

  • default['gearman']['libdrizzle']['table'] - Table to use

  • default['gearman']['libdrizzle']['mysql'] - Set to true to use MySQL protocol

  • default['gearman']['libmemcached']['servers'] - List of memcached servers to use.

  • default['gearman']['libsqlite3']['db'] - Database file to use

  • default['gearman']['libsqlite3']['table'] - Table to use

  • default['gearman']['libpq']['conninfo'] - PostgreSQL connection information string

  • default['gearman']['libpq']['table'] - Table to use

  • default['gearman']['mysql']['host'] - Host of server

  • default['gearman']['mysql']['port'] - Port of server

  • default['gearman']['mysql']['user'] - User for authentication

  • default['gearman']['mysql']['password'] - Password for authentication

  • default['gearman']['mysql']['db'] - Database to use

  • default['gearman']['mysql']['table'] - Table to use

Usage

gearman::default

e.g. Just include gearman in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[gearman]"
  ]
}

Contributing

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

Helpful Stuff

License and Authors

Authors: Chris Zeeb chris.zeeb@gmail.com and Contributors

Copyright:: 2015 Chris Zeeb <chris.zeeb@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

apt ~> 2.7

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

gearman-job-server-cookbook CHANGELOG

This file is used to list changes made in each version of the gearman cookbook.

1.0.0 / 2015-12-14

Rewrite of gearman cookbook

Added

  • Support for Amazon, CentOS, and RedHat
  • ['gearman']['server'] options moved to ['gearman']['parameters']

Changed

  • Install from O/S packages instead of pulling package from github repository
  • Added configuration options for:
    • backlog
    • file-descriptors
    • job-retries
    • log-file
    • listen
    • threads
    • queue-type
    • libdrizzle - all options
    • libmemcached - all options
    • libsqlite3 - all options
    • libpq - all options
    • mysql - all options

Removed

  • Installing gearman-ruby gem

0.0.1 / 2011-02-17

  • Initial release. The original cookbook can be found here. The 1.0.0 release is a complete rewrite.

Collaborator Number Metric
            

1.0.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.0.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.0.0 failed this metric

FC066: Ensure chef_version is set in metadata: gearman/metadata.rb:1
FC069: Ensure standardized license defined in metadata: gearman/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

1.0.0 passed this metric

No Binaries Metric
            

1.0.0 passed this metric

Publish Metric
            

1.0.0 passed this metric

Supported Platforms Metric
            

1.0.0 passed this metric

Testing File Metric
            

1.0.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.0.0 passed this metric