Forge Home

ldirectord

ldirectord module because there is not one

16,358 downloads

6,273 latest version

3.0 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

  • 0.1.0 (latest)
  • 0.0.7
  • 0.0.6
  • 0.0.5
  • 0.0.4
  • 0.0.3
  • 0.0.2
  • 0.0.1
released Nov 17th 2014
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 'treyormsbee-ldirectord', '0.0.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add treyormsbee-ldirectord
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install treyormsbee-ldirectord --version 0.0.2

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

treyormsbee/ldirectord — version 0.0.2 Nov 17th 2014

Puppet Module - ldirectord

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 ldirectord
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

There was not an ldirectord puppet module. So here one is.

Module Description

Installs ldirectord from the mainteners website, from puppet source, or from package. Provides new type, to configure load balancer entries.

Setup

What ldirectord affects

  • Installs ldirectord in /usr/sbin/
  • Installs all needed perl modules,
  • Installs ipvsadm

Setup Requirements OPTIONAL

  • pluginsync = true is required.
  • puppetlabs concat module required
  • puppetlabs stdlib required.

Beginning with ldirectord

To get started you can simply define a vritual host

 ldirectord::virtual_host { "servicename-80":
   entrynumber  => 1,
   name         => "servicename-80",
   virtual      => "192.168.xx.xx",
   real         => [ "192.168.xx.xx", "192.168.xx.xx" ],
   real_options => "gate",
   port         => '80',
   service      => 'http',
   request      => '/lb.html',
   receive      => 'up',
   protocol     => 'tcp',
   scheduler    => 'wlc',
   checktype    => 'negotiate',
   persistent   => '900',
 }

The above defined by itself will include the ldirector class and give you an /etc/ldirector.cf file that looks like so: #Managed by puppet using ldirectord module.

checkinterval=15
checktimeout=15
autoreload=no
quiescent=yes
logfile="/var/log/ldirectord.log"
virtual=192.168.xx.xx:80
    real=192.168.xx.xx:80 gate
    real=192.168.xx.xx:80 gate
    service=http
    request="/lb.html"
    receive="up"
    scheduler=wlc
    protocol=tcp
    checktype=negotiate
    persistent=900

Unfortantly every entry you add you will need to increment the entrynumber,
this is required because the concat module is used to prepare the the config file

Usage

The defaults should be enough to get you started with a global options config but no virtual hosts.

if you want to edit the default global oiptions you can do so like so:

class { ::ldirectord:
  #Install Options
  download_location = 'http://horms.net/projects/ldirectord/download/ldirectord-latest',
  package_name      = 'ldirectord',
  #Global Options
  configfile_path   = '/etc/ldirector.cf',
  checkinterval     = '15',
  checktimeout      = '15',
  connecttimeout    = undef,
  negotiatetimeout  = undef,
  checkcount        = undef,
  autoreload        = 'no',
  callback          = undef,
  quiescent         = 'yes',
  logfile           = '/var/log/ldirectord.log',
}

Note: If you want to install ldirectord from a package rather then the maintaners website, change download location to package,
If you want to install from a puppet file, change to puppet and place the ldirectord file you want to use in the file directory

Defining a service the following options are available:

  ldirectord::virtual_host { "servicename":
    entrynumber,
    name,
    virtual,
    real,
    real_options,
    port,
    service,
    protocol,
    scheduler,
    checktype = undef,
    checkport = undef,
    httpmethod = undef,
    virtualhost = undef,
    login = undef,
    passwd = undef,
    database = undef,
    request = undef,
    receive = undef,
    checktype = undef,
    netmask = undef,
    persistent = undef,
  }

Reference

Will update later

Limitations

This is where you list OS compatibility, version compatibility, etc. Tested on Centos6, and ubuntu 12.04

Development

Please feel free to make this better then it is.

Release Notes/Contributors/Etc Optional

If you aren't using changelog, put your release notes here (though you should consider using changelog). You may also add any additional sections you feel are necessary or important to include here. Please use the ## header.