Skip to content

Cannot customize deploymentclient.conf #394

@thierry-thierry

Description

@thierry-thierry

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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions