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

Allow empty local and outputs files to keep centralized Splunk happier. #201

Merged
merged 7 commits into from
Oct 19, 2018
Merged

Allow empty local and outputs files to keep centralized Splunk happier. #201

merged 7 commits into from
Oct 19, 2018

Conversation

gregswift
Copy link
Contributor

Pull Request (PR) description

Splunk environments where the majority of the configuration is handled by splunk do not necessarily like these defaults. So allow a way to not provide them. Either by setting undef or passing empty (nil) from hiera.

…d by splunk do not necessarily like these defaults. So allow a way to not provide them. Either by setting undef or passing empty (nil) from hiera.
@@ -112,8 +118,12 @@

# Declare inputs and outputs specific to the forwarder profile
$tag_resources = { tag => 'splunk_forwarder' }
create_resources( 'splunkforwarder_input',$forwarder_input, $tag_resources)
create_resources( 'splunkforwarder_output',$forwarder_output, $tag_resources)
if $forwarder_input != undef {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if $forwarder_input != undef {
if $forwarder_input {

if $forwarder_input != undef {
create_resources( 'splunkforwarder_input',$forwarder_input, $tag_resources)
}
if $forwarder_output != undef {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if $forwarder_output != undef {
if $forwarder_output {

@bastelfreak bastelfreak changed the title WIP: Allow empty local and outputs files to keep centralized Splunk happier. Allow empty local and outputs files to keep centralized Splunk happier. Oct 19, 2018
@bastelfreak
Copy link
Member

Thanks @gregswift !

@bastelfreak bastelfreak merged commit a763bfd into voxpupuli:master Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants