diff --git a/CHANGELOG.md b/CHANGELOG.md index ec8af3e..c4c931b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,29 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v2.3.4] - 2025-09-23 + +### Fixed + +- Fixed regression in fetch when Splunk source used. + + +## [v2.3.3] - 2025-09-22 + +### Changed + +- Updated Gemfile to fix pson compatibility issue +- Removed deprecated Modulefile from project +- Cleaned up development files and symlinks from repository +- Removed unnecessary test fixture files + +### Removed + +- Removed module symlink +- Removed deprecated Modulefile +- Removed site.pp from test fixtures +- Cleaned up bin/ files from version control tracking + ## [v2.3.2] - 2025-09-22 ### Fixed diff --git a/Gemfile b/Gemfile index 84d5be8..0b3a4fe 100644 --- a/Gemfile +++ b/Gemfile @@ -37,7 +37,7 @@ group :development do gem "rubocop-performance", '= 1.16.0', require: false gem "rubocop-rspec", '= 2.19.0', require: false gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw] - gem "rexml", '>= 3.0.0', '< 3.2.7', require: false + gem "rexml", '>= 3.3.9', require: false end group :development, :release_prep do gem "puppet-strings", '~> 4.0', require: false diff --git a/manifests/fetch.pp b/manifests/fetch.pp index ba2b5cd..a56dcce 100644 --- a/manifests/fetch.pp +++ b/manifests/fetch.pp @@ -54,9 +54,9 @@ } else { $product = 'splunk' } - if $source == 'splunk' or source =~ /http.*/ { + if $source == 'splunk' or $source =~ /http.*/ { if $source == 'splunk' { - $wget_url = "https://download.splunk.com/products/splunk/releases/${version}/linux/${sourcepart}-${version}-${release}-${pkg_platform}.tgz" + $wget_url = "https://download.splunk.com/products/${product}/releases/${version}/linux/${sourcepart}-${version}-${release}-${pkg_platform}.tgz" } else { $wget_url = "${source}/${newsource}" } diff --git a/metadata.json b/metadata.json index 71c2590..8e71be1 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "cudgel-splunk", - "version": "2.3.2", + "version": "2.3.4", "author": "Christopher Caldwell", "summary": "Deploy and manage stand-alone or distributed Splunk architectures.", "license": "Apache-2.0", diff --git a/spec/classes/splunk_spec.rb b/spec/classes/splunk_spec.rb index 01f26b7..b75b120 100644 --- a/spec/classes/splunk_spec.rb +++ b/spec/classes/splunk_spec.rb @@ -52,6 +52,7 @@ it { is_expected.to contain_file('/home/splunk/.bashrc.custom') } it { is_expected.to contain_class('splunk::fetch') } it { is_expected.to contain_exec('retrieve_splunkforwarder-9.4.4-f627d88b766b-linux-amd64.tgz') } + it { is_expected.to contain_notify('wget_command') } it { is_expected.to contain_class('splunk::install') } it { is_expected.to contain_file('/opt/splunkforwarder-9.4.4-f627d88b766b-linux-amd64.tgz').that_notifies('Exec[unpackSplunk]') } it { is_expected.to contain_class('splunk::config') } diff --git a/spec/defines/input_spec.rb b/spec/defines/input_spec.rb index 43c7d9b..a606b61 100644 --- a/spec/defines/input_spec.rb +++ b/spec/defines/input_spec.rb @@ -34,5 +34,5 @@ it { is_expected.to contain_file('/opt/splunkforwarder/etc/system/local/inputs.d/authlog').that_notifies('Exec[update-inputs]') } it { is_expected.to contain_splunk__acl('authlog') } - # it { is_expected.to contain_exec('setfacl_authlog') } + it { is_expected.to contain_exec('set_acl_/var/log/authlog') } end