Defined Type: profile::mjolnir::kafka_msearch_daemon_instance

Defined in:
modules/profile/manifests/mjolnir/kafka_msearch_daemon_instance.pp

Overview

Parameters:

  • ensure (Any)
  • prometheus_port (Any)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/profile/manifests/mjolnir/kafka_msearch_daemon_instance.pp', line 1

define profile::mjolnir::kafka_msearch_daemon_instance(
  $ensure,
  $prometheus_port,  # Referenced by puppetdb query from prometheus::resource_config
) {
    $service_name = "mjolnir-kafka-msearch-daemon@${title}"

    service { $service_name:
      ensure   => 'present' == $ensure,
      provider => 'systemd',
      enable   => 'present' == $ensure,
      require  => Systemd::Unit['mjolnir-kafka-msearch-daemon@.service'],
    }

    ::profile::auto_restarts::service { $service_name:
        ensure => $ensure,
    }
}