Puppet Class: kafka::broker::service

Defined in:
manifests/broker/service.pp

Overview

Class kafka::service

This private class is meant to be called from kafka::broker. It ensures the service is running



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'manifests/broker/service.pp', line 5

class kafka::broker::service {

  if $caller_module_name != $module_name {
    fail("Use of private class ${name} by ${caller_module_name}")
  }

  file { '/etc/init.d/kafka':
    ensure  => present,
    mode    => '0755',
    content => template('kafka/init.erb')
  }

  service { 'kafka':
    ensure     => running,
    enable     => true,
    hasstatus  => true,
    hasrestart => true,
    require    => File['/etc/init.d/kafka']
  }

}