Forge Home

cabot

Puppet Module for Arachnys Cabot

6,953 downloads

6,314 latest version

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

Version information

  • 2.0.3 (latest)
  • 2.0.2
  • 2.0.1
released Jan 25th 2016
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 'Lavaburn-cabot', '2.0.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add Lavaburn-cabot
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install Lavaburn-cabot --version 2.0.3

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

Lavaburn/cabot — version 2.0.3 Jan 25th 2016

Puppet Module for Arachnys Cabot

===========================================

Build Status Coverage Status Puppet Forge

Overview

This module installs and sets up Cabot for first use

Dependencies

  • puppetlabs/vcsrepo
  • stankevich/python
  • puppetlabs/inifile
  • puppetlabs/stdlib

Optional:

  • puppetlabs/postgresql
  • puppetlabs/gcc
  • puppetlabs/git
  • puppetlabs/ruby
  • puppetlabs/nodejs
  • thomasvandoren/redis
  • puppetlabs/apache
  • yo61/logrotate

Installation

  1. Full setup (all local, nothing else needed) [requires all dependency modules]
class { 'cabot': 
  install_postgres => true,
  setup_db         => true,
  install_gcc      => true,
  install_git      => true,
  install_ruby     => true,
  install_python   => true,
  install_nodejs   => true,
  setup_logrotate  => true,
  install_redis    => true,
  install_apache   => true,
  setup_apache     => true,
  admin_password   => 'password',           # Required. Recommended usage: Hiera-ENC
  admin_address    => 'cabot@example.com',  # Required
}

Configuration

  1. Enable Graphite Inputs
cabot::custom_settings { 'graphite':
  config  => {
    'GRAPHITE_API'  => {'value' => "http://HOST:PORT/"},
    'GRAPHITE_USER' => {'value' => 'USER'},
    'GRAPHITE_PASS' => {'value' => 'PASS'},
    'GRAPHITE_FROM' => {'value' => '-10minute'},# Default
  },
}
  1. Enable E-Mail Output
cabot::alert_plugin { 'email':
  url => 'GIT_URL',
  config  => {
    'SES_HOST' => {'value' => 'HOST'},
    'SES_PORT' => {'value' => '25'},
    'SES_USER' => {'value' => 'USER'},
    'SES_PASS' => {'value' => 'PASS'},
  },
}
  1. Add custom alert plugin
cabot::alert_plugin { 'NAME':
  url => 'GIT_URL',
  config  => {
    'PARAM1' => {'value' => 'VALUE1'},
  },
}

Supported Environments

  • Ruby 1.9.3 - Supported

  • Ruby 2.1.8 - Supported

  • Ruby 2.2.4 - Supported on Puppet 4

  • Puppet 3.7.5 - Supported (on Ruby <= 2.2)

  • Puppet 3.8.5 - Not Supported (Strange rspec errors)

  • Puppet 4.2.3 - Supported

  • Puppet 4.3.1 - Supported

Acceptance tested on:

  • Ubuntu 14.04

Testing

Set up for testing

gem install bundler
bundle install

To choose a different Puppet version, use PUPPET_VERSION environmental variable

PUPPET_VERSION="4.2.3" bundle install

Syntax and Spec Testing

bundle exec rake test

Acceptance testing with Beaker

bundle exec rake beaker

You can use the environmental variables BEAKER_debug, BEAKER_destroy and BEAKER_provision