-
-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Labels
enhancementNew feature or requestNew feature or request
Description
How to reproduce:
When trying to customize deploymentclient.conf with the following code, nothing happens:
splunk::forwarder::splunkforwarder_deploymentclient:
target_uri:
section: 'target-broker:deploymentServer'
setting: 'targetUri'
value: '<host>:<port>'What behaviour did you expect instead
deploymentclient.conf should be written with the following:
[target-broker:deploymentServer]
targetUri = <host>:<port>Any additional information you'd like to impart
I have not figured out how to configure deploymentclient.conf with the way the module works right now, but was able to edit the module to allow configuring deploymentclient.conf.
This could be done by adding the following code:
manifests/forwarder/config.pp L70
$splunk::forwarder::forwarder_deploymentclient.each | String $name, Hash $options| {
splunkforwarder_deploymentclient { $name:
section => $options['section'],
setting => $options['setting'],
value => $options['value'],
tag => 'splunk_forwarder',
}
}manifests/forwarder.pp L117
# @param forwarder_deploymentserver
# Used to override the default `forwarder_deploymentserver` type defined in splunk::params.
#manifests/forwarder.pp L198
Hash $forwarder_deploymentclient = $splunk::params::forwarder_deploymentclient,manifests/params.pp L283
$forwarder_deploymentclient = {
'target-broker_targetUri' => {
section => 'target-broker:deploymentServer',
setting => 'targetUri',
value => "${server}:${logging_port}",
tag => 'splunk_forwarder',
},
}Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request