Code Monkey home page Code Monkey logo

beanstalkd's Introduction

beanstalkd

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with beanstalkd
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module

Overview

This is a Puppet module to manage a Beanstalkd instance.

Module Description

The Beanstalkd module handles installing, configuring, and running the Beanstalkd daemon.

Setup

What beanstalkd affects

  • beanstalkd package
  • beanstalkd configuration
  • beanstalkd service

Beginning with beanstalkd

include 'beanstalkd' is enough to get you up and running. If you'd like to pass parameters, you can do something like this:

class { 'beanstalkd':
  listen_addr      => '0.0.0.0',
  listen_port      => '11300',
  enable_binlog    => true,
  binlog_directory => '/var/lib/beanstalkd',
}

Or, you can use the same options in hiera:

---
beanstalkd::listen_addr: '0.0.0.0'
beanstalkd::listen_port: '11300'
beanstalkd::enable_binlog: 'true'
beanstalkd::binlog_directory: '/var/lib/beanstalkd'

Reference

Classes

Public Classes

  • beanstalkd: Main class, includes all other classes

Private Classes

  • beanstalkd::install: Handles the package installation
  • beanstalkd::config: Handles the configuration
  • beanstalkd::service: Handles the service

Parameters

The following parameters are available:

####listen_addr Which address to bind beanstalkd to. Defaults to '127.0.0.1'.

####listen_port Which port to bind beanstalkd to. Defaults to '11300'.

####enable_binlog Whether to enable binlogging. Defaults to false. Other value is true.

####binlog_directory If binlogging is enabled, specify the directory that the beanstalkd binlog will log to. Defaults to '/var/lib/beanstalkd' on Debian families and '/var/lib/beanstalkd/binlog' on RedHat families.

####package_ensure Whether the beanstalkd package is present. Defaults to 'present'. Other values are 'latest', or a specific version.

####service_ensure Whether the beanstalkd service should be running. Defaults to 'running'. Other value is 'stopped'.

####service_enable Whether the beanstalkd service should be enabled at boot. Defaults to true. Other value is false.

####user User that the beanstalkd process runs as. Default is 'beanstalkd'.

####max_job_size Maximum size in bytes that beanstalkd allows for a job. Defaults to '65535'.

Limitations

This module currently is tested using Ubuntu 14.04, 12.04 as well as CentOS 6, 7 and Debian 7. The EPEL module is required for RedHat families to install beanstalkd.

Development

Feel free to submit pull requests if you'd like to add additional platforms or features.

License

Copyright 2015 Jeremy Bowers

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.

Contributors

This module was written by Jeremy Bowers [email protected]

Other contributions from:

beanstalkd's People

Contributors

cubiclelord avatar mmckinst avatar sobit avatar tedwardia avatar tomaszurugolszewski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.