Puppet Class: splunk::forwarder

Inherits:
splunk
Defined in:
manifests/forwarder.pp

Overview

Parameters:

  • basedir (Any) (defaults to: '/opt/splunkforwarder')


10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'manifests/forwarder.pp', line 10

class splunk::forwarder($basedir='/opt/splunkforwarder') inherits splunk{

  package { 'splunkforwarder':
    ensure => present,
    before => Exec['splunk_service']
  }

  exec { 'splunk_service':
    command  => "${basedir}/bin/splunk enable boot-start --accept-license --answer-yes --no-prompt",
    creates  => '/etc/init.d/splunk',
  }

  Concat['inputs.conf'] {
    path   => "${basedir}/etc/system/local/inputs.conf",
  }
  Concat['outputs.conf'] {
    path   => "${basedir}/etc/system/local/outputs.conf",
  }
  Concat['props.conf'] {
    path   => "${basedir}/etc/system/local/props.conf",
  }
}