Puppet Class: profile::quarry::querykiller

Defined in:
modules/profile/manifests/quarry/querykiller.pp

Overview

Class: profile::quarry:querykiller

Sets up a cron based query-killer

Parameters:

  • clone_path (Any) (defaults to: hiera('profile::quarry::base::clone_path'))
  • venv_path (Any) (defaults to: hiera('profile::quarry::base::venv_path'))


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'modules/profile/manifests/quarry/querykiller.pp', line 5

class profile::quarry::querykiller(
    $clone_path = hiera('profile::quarry::base::clone_path'),
    $venv_path = hiera('profile::quarry::base::venv_path'),
) {
    require ::profile::quarry::base

    file { '/var/log/quarry':
        ensure => directory,
        owner  => 'quarry',
        group  => 'quarry',
    }

    cron { 'query-killer':
        command => "${venv_path}/bin/python ${clone_path}/quarry/web/killer.py",
        minute  => '*',
        user    => 'quarry',
    }
}