Puppet Class: puppetmaster::generators

Defined in:
modules/puppetmaster/manifests/generators.pp

Overview

Parameters:

  • ensure (Any) (defaults to: 'present')


1
2
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
# File 'modules/puppetmaster/manifests/generators.pp', line 1

class puppetmaster::generators($ensure = 'present'){

    # python-mysqldb is used as one of python-sqlalchemy backends
    $packages = ['python-jinja2', 'python-mysqldb', 'python-sqlalchemy', 'python-requests']
    require_package($packages)

    file {'/usr/local/bin/naggen2':
        ensure  => $ensure,
        owner   => 'root',
        group   => 'root',
        mode    => '0555',
        source  => 'puppet:///modules/puppetmaster/naggen2.py',
        require => Package[$packages],
    }

    file {'/usr/local/bin/sshknowngen':
        ensure  => absent,
    }

    file {'/usr/local/bin/prometheus-ganglia-gen':
        ensure  => 'present',
        owner   => 'root',
        group   => 'root',
        mode    => '0555',
        source  => 'puppet:///modules/puppetmaster/prometheus-ganglia-gen.py',
        require => Package[$packages],
    }
}