Puppet Class: puppet::reports::irccat

Defined in:
manifests/reports/irccat.pp

Overview

A report plugin to send irccat to IRC.

Parameters:

  • host (Any)
  • githuburl (Any)
  • dashboard (Any)
  • ignore_hosts (Any) (defaults to: [])


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'manifests/reports/irccat.pp', line 3

class puppet::reports::irccat($host, $githuburl, $dashboard, $ignore_hosts = []) {

  Package{ provider => 'gem', ensure => present }

  package{
    'json':;
    'httparty':;
  }

  # This is a little bit dirty, as it just throws it straight in the
  # rubylib, but it's better than messing with libdir on the master.
  # See https://projects.puppetlabs.com/issues/4345 for mild
  # discussion.
  file{
    "${puppet::server::report_dir}/irccat.rb":
      ensure => present,
      owner  => 'root',
      group  => 'root',
      mode   => '0644',
      source => 'puppet:///modules/puppet/reports/irccat.rb',
      notify => Class['puppet::server'];
    '/etc/puppet/irccat.yaml':
      ensure  => present,
      owner   => 'root',
      group   => 'puppet',
      mode    => '0440',
      content => template('puppet/reports/irccat.yaml.erb'),
      notify  => Class['puppet::server'];
  }
}