diff --git a/manifests/forwarder.pp b/manifests/forwarder.pp index 120eef51..db302c55 100644 --- a/manifests/forwarder.pp +++ b/manifests/forwarder.pp @@ -114,6 +114,9 @@ # *Optional* If set to true, web.conf will be purged of configuration that is # no longer managed by the `splunk_web` type. # +# @param forwarder_deploymentclient +# Used to override the default `forwarder_deploymentclient` type defined in splunk::params. +# # @param forwarder_input # Used to override the default `forwarder_input` type defined in splunk::params. # @@ -192,6 +195,7 @@ Boolean $purge_props = false, Boolean $purge_transforms = false, Boolean $purge_web = false, + Hash $forwarder_deploymentclient = $splunk::params::forwarder_deploymentclient, Hash $forwarder_output = $splunk::params::forwarder_output, Hash $forwarder_input = $splunk::params::forwarder_input, Boolean $manage_password = $splunk::params::manage_password, diff --git a/manifests/forwarder/config.pp b/manifests/forwarder/config.pp index 5c145a2b..eb6c3eef 100644 --- a/manifests/forwarder/config.pp +++ b/manifests/forwarder/config.pp @@ -67,6 +67,14 @@ tag => 'splunk_forwarder', } + $splunk::forwarder::forwarder_deploymentclient.each | String $name, Hash $options| { + splunkforwarder_deploymentclient { $name: + section => $options['section'], + setting => $options['setting'], + value => $options['value'], + tag => 'splunk_forwarder', + } + } $splunk::forwarder::forwarder_input.each | String $name, Hash $options| { splunkforwarder_input { $name: section => $options['section'], diff --git a/manifests/params.pp b/manifests/params.pp index c63628dd..851198e2 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -280,6 +280,14 @@ } # default splunk agent settings in a hash so that the cya be easily parsed to other classes + $forwarder_deploymentclient = { + 'target-broker_targetUri' => { + section => 'target-broker:deploymentServer', + setting => 'targetUri', + value => "${server}:${logging_port}", + tag => 'splunk_forwarder', + }, + } $forwarder_output = { 'tcpout_defaultgroup' => { section => 'default',