Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Update default version to 9.0.2 (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
gravesb authored Nov 28, 2022
1 parent c5feb2b commit ddb4b29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions attributes/_install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
'/etc/splunk'
end

default['splunk']['package']['version'] = '8.1.8'
default['splunk']['package']['build'] = '39da583cc695'
default['splunk']['package']['version'] = '9.0.2'
default['splunk']['package']['build'] = '17e00c557dc1'
default['splunk']['is_cloud'] = false
default['splunk']['package']['base_url'] = 'https://download.splunk.com/products'
default['splunk']['package']['platform'] = node['os']
Expand Down
4 changes: 2 additions & 2 deletions docs/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Configurable (with defaults)
* `node['splunk']['monitors'][]['type']` - Type of stanza (`monitor`). See [inputs.conf][] for stanzas.
* `node['splunk']['monitors'][][???]` - Other attributes for an inputs.conf stanza. See [inputs.conf][]
* `node['splunk']['cleanup']` - Determines whether the recipe should attempt to clean up the old forwarder install (`true`)
* `node['splunk']['package']['version']` - Major version to install (`8.1.8`)
* `node['splunk']['package']['build']` - Corresponding build number (`39da583cc695`)
* `node['splunk']['package']['version']` - Major version to install (`9.0.2`)
* `node['splunk']['package']['build']` - Corresponding build number (`17e00c557dc1`)
* `node['splunk']['package']['base_url']` - Base download path (`https://download.splunk.com/products`)
* `node['splunk']['package']['base_name']` - Name of the package to install (`splunkforwarder`/`splunk`)
* `node['splunk']['package']['name']` - Name of the package being installed (`"#{node['splunk']['package']['base_name']}-#{node['splunk']['package']['version']}-#{node['splunk']['package']['build']}"`)
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/_install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

let(:windows) { nil }

let(:splunk_file) { 'splunkforwarder-8.1.8-39da583cc695' }
let(:splunk_file) { 'splunkforwarder-9.0.2-17e00c557dc1' }
let(:splunk_filepath) { "/var/chef/cache/#{splunk_file}.txt" }

before do
Expand All @@ -54,7 +54,7 @@
allow(File).to receive(:exist?).with('/opt/splunkforwarder/ftr').and_return(ftr_exists)

allow(Dir).to receive(:glob).and_call_original
allow(Dir).to receive(:glob).with('/opt/splunkforwarder/splunkforwarder-8.1.8-39da583cc695-*').and_return(glob)
allow(Dir).to receive(:glob).with('/opt/splunkforwarder/splunkforwarder-9.0.2-17e00c557dc1-*').and_return(glob)

# Stub alt separator for windows in Ruby 1.9.3
stub_const('::File::ALT_SEPARATOR', '/')
Expand Down

0 comments on commit ddb4b29

Please sign in to comment.