Skip to content

Commit

Permalink
Merge pull request #279 from dave-pollock/add-default-host-override
Browse files Browse the repository at this point in the history
Add ability to override default-host configuration
  • Loading branch information
bastelfreak authored Nov 7, 2020
2 parents 12f57f9 + 08a18f5 commit 7add721
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@
# @param enterprise_installdir
# Optional directory in which to install and manage Splunk Enterprise
#
# @param default_host
# The host property in inputs.conf. Defaults to the server's hostname.
#
class splunk::params (
String[1] $version = '7.2.4.2',
String[1] $build = 'fb30470262e3',
Expand All @@ -103,6 +106,7 @@
'windows' => 'Administrator',
default => 'root'
},
String[1] $default_host = $facts['clientcert'],
) {
# Based on the small number of inputs above, we can construct sane defaults
# for pretty much everything else.
Expand Down Expand Up @@ -272,7 +276,7 @@
'default_host' => {
section => 'default',
setting => 'host',
value => $facts['clientcert'],
value => $default_host,
tag => 'splunk_forwarder',
},
}
Expand Down

0 comments on commit 7add721

Please sign in to comment.