Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to override default-host configuration #279

Merged
merged 3 commits into from
Nov 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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