Forge Home

beanstalkd

The beanstalkd module provides an interface for managing a beanstalkd package/service.

502,172 downloads

5,097 latest version

4.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.2.10 (latest)
  • 0.2.9
  • 0.2.8
  • 0.2.7
  • 0.2.6
  • 0.2.5 (deleted)
  • 0.2.4
  • 0.2.3
  • 0.2.2
  • 0.2.1
  • 0.2.0
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Aug 29th 2019
This version is compatible with:
  • , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'jbowers-beanstalkd', '0.2.10'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jbowers-beanstalkd
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jbowers-beanstalkd --version 0.2.10

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

jbowers/beanstalkd — version 0.2.10 Aug 29th 2019

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.

If you are running this on a rhel based distro you need to make sure you have the epel repository set up. We have not included this as a hard dependency but you can easily add it using the epel module provided by stahnma (https://forge.puppet.com/stahnma/epel).

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 16.04, 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 2018 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 cubiclelord@gmail.com

Other contributions from: