Puppet Class: stash::service

Defined in:
manifests/service.pp

Overview

Class: stash::service

This manages the stash service. See README.md for details

Parameters:

  • service_manage (Any) (defaults to: $stash::service_manage)
  • service_ensure (Any) (defaults to: $stash::service_ensure)
  • service_enable (Any) (defaults to: $stash::service_enable)


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

class stash::service (

  $service_manage = $stash::service_manage,
  $service_ensure = $stash::service_ensure,
  $service_enable = $stash::service_enable,

) {

  validate_bool($service_manage)

  if $stash::service_manage {
    validate_string($service_ensure)
    validate_bool($service_enable)
    service { 'stash':
      ensure  => $service_ensure,
      enable  => $service_enable,
      start   => '/etc/init.d/stash start',
      restart => '/etc/init.d/stash restart',
      stop    => '/etc/init.d/stash stop',
      status  => '/etc/init.d/stash status',
      require => Class['stash::config'],
    }
  }
}