Puppet Class: lsys::graylog

Defined in:
manifests/graylog.pp

Summary

Graylog server installation

Overview

Graylog server installation

Examples:

include lsys::graylog

Parameters:

  • root_password (String)
  • password_secret (String[64])
  • mongodb_password (String)
  • elastic_seed_hosts (Optional[Array[Stdlib::IP::Address]]) (defaults to: undef)
  • elastic_network_host (Optional[String]) (defaults to: undef)
  • elastic_master_only (Boolean) (defaults to: false)
  • cluster_network (Optional[Stdlib::IP::Address]) (defaults to: undef)
  • is_master (Boolean) (defaults to: false)
  • enable_web (Boolean) (defaults to: true)
  • manage_web_user (Boolean) (defaults to: true)
  • http_server (Optional[Stdlib::Fqdn]) (defaults to: undef)


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
# File 'manifests/graylog.pp', line 7

class lsys::graylog (
  String $root_password,
  String[64] $password_secret,
  String $mongodb_password,
  Optional[Array[Stdlib::IP::Address]] $elastic_seed_hosts = undef,
  Optional[String] $elastic_network_host = undef,
  Boolean $elastic_master_only = false,
  Optional[Stdlib::IP::Address] $cluster_network = undef,
  Boolean $is_master = false,
  Boolean $enable_web = true,
  Boolean $manage_web_user = true,
  Optional[Stdlib::Fqdn] $http_server = undef,
) {
  if $enable_web and $http_server {
    class { 'lsys::nginx':
      manage_user => $manage_web_user,
    }

    Class['lsys::nginx'] -> Class['grayloginstall::server']
  }

  class { 'grayloginstall::server':
    root_password        => $root_password,
    password_secret      => $password_secret,
    mongodb_password     => $mongodb_password,
    elastic_seed_hosts   => $elastic_seed_hosts,
    elastic_network_host => $elastic_network_host,
    elastic_master_only  => $elastic_master_only,
    cluster_network      => $cluster_network,
    repo_sslverify       => 0,

    is_master            => $is_master,
    enable_web           => $enable_web,
    http_server          => $http_server,
  }
}