Giter Club home page Giter Club logo

puppet-ganglia's Introduction

Puppet ganglia Module

Description

This puppet module will install and configure the ganglia gmond & gmetad daemons + web front end.

It has been tested on:

  • el5.x with custom rpm installation of ganglia-gmond not provided by EPEL an which is custom built.

Examples

ganglia::gmond

# unicast
$udp_recv_channel = [
  { port => 8649, bind => 'localhost' },
  { port => 8649, bind => '0.0.0.0' },
]
$udp_send_channel = [
  { port => 8649, host => 'test1.example.org', ttl => 2 },
  { port => 8649, host => 'test2.example.org', ttl => 2 },
]
$tcp_accept_channel = [
  { port => 8649 },
]

# multicast
$udp_recv_channel = [
  { mcast_join => '239.2.11.71', port => 8649, ttl => 1 } 
]
$udp_send_channel = [
  { mcast_join => '239.2.11.71', port => 8649, bind => '239.2.11.71' } 
]
$tcp_accept_channel = [
  { port => 8649 },
]

class{ 'ganglia::gmond':
  cluster_name       => 'example grid',
  cluster_owner      => 'ACME, Inc.',
  cluster_latlong    => 'N32.2332147 W110.9481163',
  cluster_url        => 'www.example.org',
  host_location      => 'example computer room',
  udp_recv_channel   => $udp_recv_channel,
  udp_send_channel   => $udp_send_channel,
  tcp_accept_channel => $tcp_accept_channel,
}

ganglia::gmetad

$clusters = [
  { 
    name     => 'test', 
    address  => ['test1.example.org', 'test2.example.org'],
  },
]

class{ 'ganglia::gmetad':
  clusters => $clusters,   
  gridname => 'my grid',   
}

ganglia::web

class{ 'ganglia::web': }

class{ 'ganglia::web':
  $ganglia_ip = '192.168.0.1',
  $ganglia_port = 8652,
}

$::osfamily = RedHat and EPEL packages

As of 2012-11-16, the stable EPEL repos for el5 and el6 contain, respectively, packages for ganglia 3.0.7 and 3.1.7. The ganglia UDP protocol for communication between gmond daemons changed incompatibly between 3.0.x and 3.1.x. However, the TCP based protocol gmetad uses to poll gmond agents has remained compatible.

If it's desirable to stick with the EPEL packages, a possible way of dealing with this is divide a group of hosts into two clusters based on $::lsbmajdistrelease (which should imply gmond version without having to install a custom fact). The example below divides the previous "mycluster" into "mycluster_el5" and "mycluster_el6". Note that you will also have to configure gmetad to pull a gmond agent from each of these new clusters.

$udp_recv_channel = [
  { port => 8649, bind => 'localhost' },
  { port => 8649, bind => '0.0.0.0' },
]
case $::lsbmajdistrelease {
  5: {
    # epel for el5.x has 3.0.x, which will not work with gmond in 3.1.x
    $udp_send_channel = [
      { port => 8649, host => 'gmond-3-0_host1.example.org', ttl => 2 },
      { port => 8649, host => 'gmond-3-0_host2.example.org', ttl => 2 },
    ]
    $cluster_name = 'mycluster_el5'
  }
  6, default: {
    # epel for el6.x has 3.1.x
    $udp_send_channel = [
      { port => 8649, host => 'gmond-3-1_host1.example.org', ttl => 2 },
      { port => 8649, host => 'gmond-3-1_host2.example.org', ttl => 2 },
    ]
    $cluster_name = 'mycluster_el6'
  }
}
$tcp_accept_channel = [
  {port => 8649},
]

class{ 'ganglia::gmond':
  cluster_name       => 'example grid',
  cluster_owner      => 'ACME, Inc.',
  cluster_latlong    => 'N32.2332147 W110.9481163',
  cluster_url        => 'www.example.org',
  host_location      => 'example computer room',
  udp_recv_channel   => $udp_recv_channel,
  udp_send_channel   => $udp_send_channel,
  tcp_accept_channel => $tcp_accept_channel,
}

Support

Please log tickets and issues at github

Copyright

Copyright (C) 2012-2013 Joshua Hoblitt [email protected]

puppet-ganglia's People

Contributors

rayber avatar

Watchers

 avatar  avatar

Forkers

shirazahmadkhan

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.