Puppet Class: profile::druid::turnilo

Defined in:
modules/profile/manifests/druid/turnilo.pp

Overview

Class: profile::druid::turnilo

Install and configure the Druid's Turnilo nodejs UI

druid_clusters
port

The port used by Turnilo to accept HTTP connections. Default: 9091

monitoring_enabled

Enable monitoring for the Turnilo service. Default: false

contact_group

Monitoring's contact grup. Default: 'analytics'

Parameters:

  • druid_clusters (Any) (defaults to: hiera('profile::druid::turnilo::druid_clusters'))
  • port (Any) (defaults to: hiera('profile::druid::turnilo::port', 9091))
  • monitoring_enabled (Any) (defaults to: hiera('profile::druid::turnilo::monitoring_enabled', false))
  • contact_group (Any) (defaults to: hiera('profile::druid::turnilo::contact_group', 'analytics'))


19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'modules/profile/manifests/druid/turnilo.pp', line 19

class profile::druid::turnilo(
    $druid_clusters     = hiera('profile::druid::turnilo::druid_clusters'),
    $port               = hiera('profile::druid::turnilo::port', 9091),
    $monitoring_enabled = hiera('profile::druid::turnilo::monitoring_enabled', false),
    $contact_group      = hiera('profile::druid::turnilo::contact_group', 'analytics'),
) {
    class { 'turnilo':
        druid_clusters => $druid_clusters,
    }

    if $monitoring_enabled {
        monitoring::service { 'turnilo':
            description   => 'turnilo',
            check_command => "check_tcp!${port}",
            contact_group => $contact_group,
            notes_url     => 'https://wikitech.wikimedia.org/wiki/Analytics/Systems/Turnilo-Pivot',
        }
    }
}