Puppet Class: zookeeperd::service

Defined in:
manifests/service.pp

Summary

control the configuration of the node

Overview

zookeeperd::service

Internal class do not use of its own.



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

class zookeeperd::service {
  if $zookeeperd::manage_service {
    service { $zookeeperd::service_name:
      ensure => $zookeeperd::service_running,
      enable => $zookeeperd::service_enabled,
    }
  }
  $timer_ensure = [$zookeeperd::ensure, $zookeeperd::maintenance_service, $zookeeperd::maintenance_schedule.length > 0] ? {
    ['present', true, true] => 'running',
    default                 => 'stopped',
  }
  $timer_enable = [$zookeeperd::ensure, $zookeeperd::maintenance_service, $zookeeperd::maintenance_schedule.length > 0] ? {
    ['present', true, true] => true,
    default                 => false,
  }

  service{ 'zookeeper-cleanup.timer':
    ensure => $timer_ensure,
    enable => $timer_enable,
  }
}