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

Commit

Permalink
Add centos 8 support (#234)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Perron <[email protected]>
  • Loading branch information
jrperron88 and Jeremy Perron authored Feb 25, 2021
1 parent 9a83418 commit e2cdb2e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Based on the work done by [BBY Solutions](https://github.com/bestbuycom/splunk_c

Requirements
------------
* Red Hat Enterprise / CentOS 6.7+ / CentOS 7.0+ / Windows Server 2008+ (forwarder only) or Ubuntu LTS 12.04+
* Red Hat Enterprise / CentOS 6.7+ / CentOS 7.0+ / CentOS 8.0+ / Windows Server 2008+ (forwarder only) or Ubuntu LTS 12.04+
* Chef 14+
* Chef 15+
* Chef 16+
Expand Down
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def chef_defaults(chef, name, environment = 'splunk_server')
end

Vagrant.configure('2') do |config|
config.vm.box = 'bento/centos-7.7'
config.vm.box = 'bento/centos-8.3'

if Vagrant.has_plugin? 'vagrant-berkshelf'
config.berkshelf.enabled = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
not_if { platform_family?('windows') }
end

execute 'add powertools repo' do
command 'yum config-manager --set-enabled powertools'
only_if { platform?('centos') && platform_version >= 8 }
end

if node['platform_family'] == 'debian'
libarchive_package = 'libarchive-dev'

Expand Down
2 changes: 1 addition & 1 deletion spec/unit/recipes/_configure_secret_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
end

let(:platform) { 'centos' }
let(:platform_version) { '7.7.1908' }
let(:platform_version) { '8' }
let(:node_type) { :server }

context 'when the secret is configured for the current node' do
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/recipes/_install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@

context 'when platform is rhel' do
let(:platform) { 'centos' }
let(:platform_version) { '7.7.1908' }
let(:platform_version) { '8' }

it 'installs downloaded splunk package and notifies splunk-first-run' do
expected_attrs = {
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/recipes/_migrate_forwarder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

context 'when platform family is linux' do
let(:platform) { 'centos' }
let(:platform_version) { '7.7.1908' }
let(:platform_version) { '8' }

it 'deletes the splunk home directory' do
expect(subject).to delete_directory('/opt/splunkforwarder')
Expand Down

0 comments on commit e2cdb2e

Please sign in to comment.