feat: modernize cookbook and update to Splunk 9.4.0#277
Open
feat: modernize cookbook and update to Splunk 9.4.0#277
Conversation
Update default Splunk version to 9.4.0. Add dynamic multi-architecture support (x86_64/ARM64). Standardize on systemd and remove legacy init logic. Modernize platform support in metadata.rb, kitchen.yml, and CI. Enable unified_mode for custom resources. Add frozen_string_literal to all Ruby files. Add resource documentation and LIMITATIONS.md. Migrate InSpec tests to full profile structure. Rename client suite to default.
- Delete recipes/ and attributes/ directories - Add splunk_auth, splunk_client, splunk_server, splunk_service, splunk_ssl, splunk_clustering, splunk_shclustering, splunk_user resources - Rewrite test cookbook recipes to use new resources - Update kitchen.yml and CI matrix for new suites - Add ChefSpec step_into tests for all resources - Add documentation for all resources - Fix stale test references to removed splunk_dir helper - Fix upgrade test version assertions (8.0.6 -> 9.4.0) - Fix server-resources and client-resources integration tests
- Platform: drop Debian 11, centos→centos_stream>=9.0, add version constraints to suse/rocky/almalinux, widen redhat to >=8.0; sync changes across metadata.rb, kitchen.yml, kitchen.dokken.yml, ci.yml - Resources: fix splunk_installer and splunk_app to be self-contained (add runas_user/install_dir properties, remove node attribute deps from ChefSplunk::Helpers which caused NoMethodError in unified_mode) - Tests: add missing ChefSpec specs for splunk_app, splunk_index, splunk_installer, splunk_monitor (was 8/12, now 12/12 coverage) - Integration: add default kitchen suite (client/UF workflow) with test recipe and InSpec profile; remove supports field from two inspec.yml files; make download URLs architecture-aware (arm64/amd64) - Documentation: rename 4 doc files to consistent splunk_<resource>.md pattern; update splunk_app and splunk_installer docs with new properties
…call - RPM packages for 9.4.0 use .x86_64.rpm/.aarch64.rpm suffix format (not the older -linux-2.6-x86_64.rpm format), fixing 404 errors in CI - Fix splunk_monitor resource call: use path as name property instead of non-existent input_path property
- Remove almalinux-8 (EOL-equivalent), rockylinux-8, rockylinux-9 - Use almalinux-9 as the standard RHEL-family platform - Rename ubuntu platforms to ubuntu-2204/ubuntu-2404 to match Test Kitchen's dot-stripping normalization (was causing "No instances" errors for all ubuntu CI jobs)
Slowest examplesTop 10 slowest examples (1.61 seconds, 23.25% of total time)
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR modernizes the chef-splunk cookbook according to modern Sous Chefs standards and updates the default Splunk version to 9.4.0.
Changes:
unified_mode truefor all resources.frozen_string_literal: trueto all Ruby files.documentation/.LIMITATIONS.mdfor vendor platform support details.clientsuite todefault.Verified convergence using Test Kitchen with Dokken on Ubuntu 24.04 (ARM64).