-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from nicholaspearson/feature/splunk_forwarders
Added splunkforwarder_server and splunkforwarder_limits providers/types.
- Loading branch information
Showing
6 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Puppet::Type.type(:splunkforwarder_limits).provide( | ||
:ini_setting, | ||
parent: Puppet::Type.type(:ini_setting).provider(:splunk) | ||
) do | ||
def self.file_name | ||
'limits.conf' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Puppet::Type.type(:splunkforwarder_server).provide( | ||
:ini_setting, | ||
parent: Puppet::Type.type(:ini_setting).provider(:splunk) | ||
) do | ||
def self.file_name | ||
'server.conf' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
require File.join(File.dirname(__FILE__), '..', '..', 'puppet_x/puppetlabs/splunk/type') | ||
|
||
Puppet::Type.newtype(:splunkforwarder_limits) do | ||
@doc = 'Manage splunkforwarder limit settings in limits.conf' | ||
PuppetX::Puppetlabs::Splunk::Type.clone_type(self) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
require File.join(File.dirname(__FILE__), '..', '..', 'puppet_x/puppetlabs/splunk/type') | ||
|
||
Puppet::Type.newtype(:splunkforwarder_server) do | ||
@doc = 'Manage splunkforwarder server settings in server.conf' | ||
PuppetX::Puppetlabs::Splunk::Type.clone_type(self) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters