Puppet Class: confluent::kafka::mirrormaker

Inherits:
confluent::params
Defined in:
manifests/kafka/mirrormaker.pp

Overview

Parameters:

  • user (String) (defaults to: $::confluent::params::mirror_maker_user)
  • log_path (Stdlib::Unixpath) (defaults to: $::confluent::params::mirror_maker_log_path)
  • config_root (Stdlib::Unixpath) (defaults to: $::confluent::params::mirror_maker_config_root)
  • abort_on_send_failure (Boolean) (defaults to: true)
  • new_consumer (Boolean) (defaults to: true)
  • num_streams (Integer) (defaults to: 1)
  • offset_commit_interval_ms (Integer) (defaults to: 60000)
  • file_limit (Integer) (defaults to: 32000)
  • service_stop_timeout_secs (Integer) (defaults to: 300)
  • manage_service (Boolean) (defaults to: true)
  • service_ensure (Enum['running', 'stopped']) (defaults to: 'running')
  • service_enable (Boolean) (defaults to: true)
  • environment_settings (Hash) (defaults to: {})
  • heap_size (String) (defaults to: '1g')
  • instances (Hash) (defaults to: {})
  • manage_repository (Boolean) (defaults to: $::confluent::params::manage_repository)


1
2
3
4
5
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
# File 'manifests/kafka/mirrormaker.pp', line 1

class confluent::kafka::mirrormaker (
  String $user                               = $::confluent::params::mirror_maker_user,
  Stdlib::Unixpath $log_path             = $::confluent::params::mirror_maker_log_path,
  Stdlib::Unixpath $config_root          = $::confluent::params::mirror_maker_config_root,
  Boolean $abort_on_send_failure             = true,
  Boolean $new_consumer                      = true,
  Integer $num_streams                       = 1,
  Integer $offset_commit_interval_ms         = 60000,
  Integer $file_limit                        = 32000,
  Integer $service_stop_timeout_secs         = 300,
  Boolean $manage_service                    = true,
  Enum['running', 'stopped'] $service_ensure = 'running',
  Boolean $service_enable                    = true,
  Hash $environment_settings                 = {},
  String $heap_size                          = '1g',
  Hash $instances                            = {},
  Boolean $manage_repository                 = $::confluent::params::manage_repository,
) inherits confluent::params {
  include ::confluent::kafka

  if($manage_repository) {
    include ::confluent::repository
  }

  user { $user:
    ensure => present,
    tag    => '__confluent__'
  }

  file { $config_root:
    ensure => directory,
    alias  => 'mirrormaker-log_path',
    owner  => 'root',
    group  => 'root',
    tag    => '__confluent__'
  }

  file { $log_path:
    ensure => directory,
    alias  => 'mirrormaker-config_root',
    owner  => 'root',
    group  => 'root',
    tag    => '__confluent__'
  }

  $mirror_instance_defaults = {
    'ensure' => 'present'
  }

  ensure_resources('confluent::kafka::mirrormaker::instance', $instances, $mirror_instance_defaults)
}