Puppet Class: beegfs::client::service

Defined in:
manifests/client/service.pp

Overview



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

class beegfs::client::service {

  if $beegfs::utils_only {
    $service_ensure             = 'stopped'
    $service_enable             = false
    $service_subscribe          = undef
    $helperd_service_subscribe  = undef
  } else {
    $service_ensure             = $beegfs::client_service_ensure
    $service_enable             = $beegfs::client_service_enable
    $service_subscribe          = $beegfs::client_service_subscribe
    $helperd_service_subscribe  = $beegfs::helperd_service_subscribe
  }

  if $beegfs::client_manage_service {
    service { 'beegfs-helperd':
      ensure     => $service_ensure,
      enable     => $service_enable,
      name       => $beegfs::helperd_service_name,
      hasstatus  => true,
      hasrestart => true,
      subscribe  => $helperd_service_subscribe,
      before     => Service['beegfs-client'],
    }

    service { 'beegfs-client':
      ensure     => $service_ensure,
      enable     => $service_enable,
      name       => $beegfs::client_service_name,
      hasstatus  => true,
      hasrestart => true,
      subscribe  => $service_subscribe,
    }
  }

}