Skip to content

Commit

Permalink
Merge pull request #144 from treydock/fix-providers-file_name
Browse files Browse the repository at this point in the history
Fix file_name for several providers
  • Loading branch information
bastelfreak authored Sep 26, 2017
2 parents 28bc981 + 1898df0 commit 9ef52d9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/puppet/provider/splunk_alert_actions/ini_setting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
parent: Puppet::Type.type(:ini_setting).provider(:splunk)
) do
def self.file_name
'system/local/alert_actions.conf'
'alert_actions.conf'
end
end
2 changes: 1 addition & 1 deletion lib/puppet/provider/splunk_deploymentclient/ini_setting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
parent: Puppet::Type.type(:ini_setting).provider(:splunk)
) do
def self.file_name
'system/local/deploymentclient.conf'
'deploymentclient.conf'
end
end
2 changes: 1 addition & 1 deletion lib/puppet/provider/splunk_uiprefs/ini_setting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
parent: Puppet::Type.type(:ini_setting).provider(:splunk)
) do
def self.file_name
'system/local/ui-prefs.conf'
'ui-prefs.conf'
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
parent: Puppet::Type.type(:ini_setting).provider(:splunk)
) do
def self.file_name
'system/local/deploymentclient.conf'
'deploymentclient.conf'
end
end
4 changes: 4 additions & 0 deletions spec/splunk_data.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

SPLUNK_SERVER_TYPES = {
splunk_alert_actions: 'alert_actions.conf',
splunk_authentication: 'authentication.conf',
splunk_authorize: 'authorize.conf',
splunk_deploymentclient: 'deploymentclient.conf',
splunk_distsearch: 'distsearch.conf',
splunk_indexes: 'indexes.conf',
splunk_input: 'inputs.conf',
Expand All @@ -10,10 +12,12 @@
splunk_props: 'props.conf',
splunk_server: 'server.conf',
splunk_transforms: 'transforms.conf',
splunk_uiprefs: 'ui-prefs.conf',
splunk_web: 'web.conf'
}.freeze

SPLUNK_FORWARDER_TYPES = {
splunkforwarder_deploymentclient: 'deploymentclient.conf',
splunkforwarder_input: 'inputs.conf',
splunkforwarder_output: 'outputs.conf',
splunkforwarder_props: 'props.conf',
Expand Down

0 comments on commit 9ef52d9

Please sign in to comment.