Puppet Class: eventlogging

Defined in:
puppet/modules/eventlogging/manifests/init.pp

Overview

Class eventlogging



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 'puppet/modules/eventlogging/manifests/init.pp', line 3

class eventlogging {
    require ::service

    $path = "${::service::root_dir}/eventlogging"

    git::clone { 'eventlogging':
        directory => $path,
    }

    service::gitupdate { 'eventlogging':
        type    => 'python',
        update  => true,
        require => Git::Clone['eventlogging'],
    }

    require_package('default-libmysqlclient-dev')
    require_package('librdkafka-dev')

    # Do the initial pip install into the virtualenv
    exec { 'eventlogging_virtualenv_pip_install':
        command => "${path}/virtualenv/bin/pip install --no-binary mysqlclient -e .",
        cwd     => $path,
        creates => "${path}/virtualenv/local/lib/python2.7/site-packages/eventlogging.egg-link",
        require => [
            Service::Gitupdate['eventlogging'],
            Package['default-libmysqlclient-dev'],
            Package['librdkafka-dev']
        ],
    }
}