Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Added indexer acknowledgement
Browse files Browse the repository at this point in the history
  • Loading branch information
jorritfolmer committed Jan 3, 2016
1 parent ce093f7 commit 89f6134
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ node 'splunk-cidx1.internal.corp.tld',

#### `splunk_os_user`

Optional. Run the Splunk instance as this user. By default
Splunk/Splunkforwarder will run as user "splunk".
Optional. Run the Splunk instance as this user. Defaults to splunk

#### `splunk_home`

Expand All @@ -301,7 +300,7 @@ node 'splunk-cidx1.internal.corp.tld',
#### `sslcompatibility`

Optional. Used to configure the SSL compatibility level as defined by
Mozilla Labs. When omitted it will use "modern" compatibility. Set to
Mozilla Labs. Defaults to "modern" compatibility. Set to
"intermediate" or "old" if you have older Splunk forwarders or clients

#### `admin`
Expand All @@ -318,8 +317,8 @@ node 'splunk-cidx1.internal.corp.tld',
Optional. Used to manage the running and startup state of the
Splunk/Splunkforwarder service. This is a hash with 2 members:

- `ensure`
- `enable`
- `ensure` (not enabled by default)
- `enable` (defaults to true)

#### `searchpeers`

Expand All @@ -334,6 +333,11 @@ node 'splunk-cidx1.internal.corp.tld',
- `search_factor`
- `cm` (points to cluster master in case of searchhead or slave)

#### `useACK`

Optional. Used to request indexer acknowlegement when sending data.
Defaults to false.

## Compatibility

Requires Splunk and Splunkforwarders >= 6.2.0.
Expand Down
4 changes: 4 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
# Optional. Used to manage the running and startup state of the
# Splunk/Splunkforwarder service. This is a hash with 2 members: ensure, enable.
#
# [*useACK]
# Optional. Used to enable indexer acknowledgememt.
#

class splunk (
$type = $splunk::params::type,
Expand All @@ -74,6 +77,7 @@
$admin = $splunk::params::admin,
$clustering = $splunk::params::clustering,
$service = $splunk::params::service,
$useACK = $splunk::params::useACK,
) inherits splunk::params {

if $type == 'uf' {
Expand Down
1 change: 1 addition & 0 deletions manifests/outputs.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
$tcpout = $splunk::tcpout,
$splunk_os_user = $splunk::splunk_os_user,
$splunk_home = $splunk::splunk_home,
$useACK = $splunk::useACK,
){
if $tcpout == undef {
file { "${splunk_home}/etc/system/local/outputs.conf":
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
enable => true,
ensure => undef,
}
$useACK = false
}

1 change: 1 addition & 0 deletions templates/outputs.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ defaultGroup = cluster
server=<%= @tcpout.flatten.join(', ') %>
sslCertPath = <%= @splunk_home %>/etc/auth/certs/s2s.pem
sslRootCAPath = <%= @splunk_home %>/etc/auth/certs/ca.crt
useACK = <%= @useACK %>

0 comments on commit 89f6134

Please sign in to comment.