Puppet Class: kibana::config

Defined in:
manifests/config.pp

Overview

This class is called from kibana to configure the daemon’s configuration file. It is not meant to be called directly.

Author:

  • Tyler Langlois <tyler.langlois@elastic.co>



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'manifests/config.pp', line 7

class kibana::config {
  $_ensure = $kibana::ensure ? {
    'absent' => $kibana::ensure,
    default  => 'file',
  }

  file { '/etc/kibana/kibana.yml':
    ensure  => $_ensure,
    content => Sensitive(kibana::hash2yaml($kibana::config)),
    owner   => $kibana::kibana_user,
    group   => $kibana::kibana_group,
    mode    => '0660',
  }

  if $kibana::plugindir {
    file { $kibana::plugindir:
      ensure => 'directory',
      owner  => $kibana::kibana_user,
      group  => $kibana::kibana_group,
      mode   => '0755',
    }
  }
}