Puppet Class: splunk::config::hwf
- Defined in:
- manifests/config/hwf.pp
Overview
Private Class to enable/disable HWF
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 |
# File 'manifests/config/hwf.pp', line 2
class splunk::config::hwf (
$splunkhome = $::splunk::splunkhome,
$status = 'enabled'
) {
file { "${splunkhome}/etc/apps/SplunkForwarder/local":
ensure => 'directory',
owner => 'splunk',
group => 'splunk',
require => Class['splunk::install'],
}
file { "${splunkhome}/etc/apps/SplunkForwarder/local/app.conf":
ensure => file,
owner => 'splunk',
group => 'splunk',
mode => '0644',
require => Class['splunk::install'],
} ->
ini_setting { 'Enable Splunk HWF':
ensure => present,
path => "${splunkhome}/etc/apps/SplunkForwarder/local/app.conf",
section => 'install',
setting => 'state',
value => $status,
require => Class['splunk::install'],
}
}
|