Puppet Class: kibana::params

Inherited by:
kibana
Defined in:
manifests/params.pp

Overview

Class: kibana::params

This class sets default parameters



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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'manifests/params.pp', line 6

class kibana::params {
  $version                = '4.0.1'
  $base_url               = 'https://download.elasticsearch.org/kibana/kibana'
  $ca_cert                = undef
  $install_path           = '/opt'
  $tmp_dir                = '/tmp'
  $port                   = 5601
  $bind                   = '0.0.0.0'
  $es_url                 = 'http://localhost:9200'
  $es_preserve_host       = true
  $kibana_index           = '.kibana'
  $elasticsearch_username = undef
  $elasticsearch_password = undef
  $default_app_id         = 'discover'
  $request_timeout        = 300000
  $shard_timeout          = 0
  $ping_timeout           = 1500
  $startup_timeout        = 5000
  $ssl_cert_file          = undef
  $ssl_key_file           = undef
  $verify_ssl             = true
  $group                  = 'kibana'
  $user                   = 'kibana'
  $base_path              = undef
  $log_file               = '/var/log/kibana/kibana.log'

  case $::operatingsystem {
    'RedHat', 'CentOS', 'Fedora', 'Scientific', 'OracleLinux', 'SLC': {

      if versioncmp($::operatingsystemmajrelease, '7') >= 0 {
        $service_provider      = 'systemd'
        $systemd_provider_path = '/usr/lib/systemd/system'
        $run_path              = '/run/kibana'
      } else {
        $service_provider        = 'init'
        $run_path                = '/var/run'
        $init_script_osdependend = 'kibana.legacy.service.redhat.erb'
      }

    }

    'Debian': {

      if versioncmp($::operatingsystemmajrelease, '8') >= 0 {
        $service_provider      = 'systemd'
        $systemd_provider_path = '/lib/systemd/system'
        $run_path              = '/run/kibana'
      } else {
        $service_provider        = 'init'
        $run_path                = '/var/run'
        $init_script_osdependend = 'kibana.legacy.service.debian.erb'
      }
    }

    'Ubuntu': {

      if versioncmp($::operatingsystemmajrelease, '15') >= 0 {
        $service_provider      = 'systemd'
        $systemd_provider_path = '/usr/lib/systemd/system'
        $run_path              = '/run/kibana'
      } else {
        $service_provider        = 'init'
        $run_path                = '/var/run'
        $init_script_osdependend = 'kibana.legacy.service.debian.erb'
      }
    }

    'OpenSuSE': {
      $service_provider      = 'systemd'
      $systemd_provider_path = '/usr/lib/systemd/system'
      $run_path              = '/run/kibana'
    }

    'Amazon': {
      $service_provider  = 'init'
      $init_script_osdependend = 'kibana.legacy.service.redhat.erb'
    }

    default: {
      $service_provider        = 'init'
      $run_path                = '/var/run'
      $init_script_osdependend = 'kibana.legacy.service.redhat.erb'
    }
  }

  $pid_file               = "${run_path}/kibana.pid"
}