Puppet Class: prometheus::run_service

Defined in:
manifests/run_service.pp

Summary

This class is meant to be called from prometheus. It ensure the service is running

Overview



2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'manifests/run_service.pp', line 2

class prometheus::run_service {
  $init_selector = $prometheus::server::init_style ? {
    'launchd' => 'io.prometheus.daemon',
    default   => $prometheus::server::service_name,
  }

  if $prometheus::server::manage_service == true {
    service { 'prometheus':
      ensure => $prometheus::server::service_ensure,
      name   => $init_selector,
      enable => $prometheus::server::service_enable,
    }
  }
}