Skip to content
Closed

Test #30

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
9fdfeb6
add no check certificate to deal with wget error
cudgel Sep 22, 2023
00ed6e9
bump version
cudgel Sep 22, 2023
33e5823
pdk update
cudgel Sep 22, 2023
3147c42
revert changes
cudgel Sep 22, 2023
0b9500e
remove lock
cudgel Sep 22, 2023
8e8a257
update ruby version in travis
cudgel Sep 25, 2023
9023684
remove stdlib
cudgel Sep 25, 2023
b50a270
update dist
cudgel Sep 25, 2023
6c26e45
remove symlink
cudgel Sep 26, 2023
6a7a58a
remote host override
cudgel Oct 5, 2023
879d50e
update fact to not rely on running state
cudgel Dec 20, 2024
bd4cf8d
get my facts straight
cudgel Dec 20, 2024
2745f47
stop and remove splunk if type is explicitly set to none
cudgel Dec 21, 2024
74bf390
cleanup
cudgel Dec 21, 2024
7215495
check before run
cudgel Dec 21, 2024
9d58402
use fact for install dir, cleaner code
cudgel Dec 22, 2024
1d014a5
use correct fact
cudgel Dec 22, 2024
aa90f33
update facts reference
cudgel Dec 22, 2024
fd15da8
linting, default for variable
cudgel Jan 2, 2025
475eb45
set variable before template
cudgel Jan 2, 2025
e0cdeff
add hostname fact
cudgel Jan 2, 2025
4ae0964
update arch
cudgel Jan 2, 2025
d17aa41
default to x64
cudgel Jan 2, 2025
1b1df7a
hard code arch temporarily
cudgel Jan 2, 2025
a324e28
cleanup
cudgel Jan 2, 2025
3e3dee0
hard code arch
cudgel Jan 2, 2025
c02ba0b
fix variable reference
cudgel Jan 2, 2025
41196ea
restore arch
cudgel Jan 2, 2025
23dd5c1
linting, fix selinux fact
cudgel Jan 2, 2025
6f1f59f
use os selinux
cudgel Jan 2, 2025
6d5d67c
update facts reference
cudgel Jan 2, 2025
2896145
disambiguate variables from facts
cudgel Jan 2, 2025
fd7e4d5
update version
cudgel Jan 2, 2025
cc06c6b
update pdk
cudgel Jan 2, 2025
7e17a32
update service file
cudgel Jan 2, 2025
e47c616
add testacl before applying acl.
cudgel Jan 6, 2025
4c40549
update args for fact
cudgel Jan 6, 2025
03a8627
updates to spec test, linting
cudgel Jan 8, 2025
bbdc5aa
update version
cudgel Jan 8, 2025
5f1e13e
use manifest instead of binary for fact
cudgel Apr 25, 2025
1b31368
new version to support changes to Splunk module naming, fixes for upd…
cudgel Sep 21, 2025
cad75eb
Migrate from Travis CI to GitHub Actions
cudgel Sep 21, 2025
3ee0653
Update modulefile
cudgel Sep 21, 2025
e0d1254
update ci for github actions
cudgel Sep 21, 2025
7f5d9a7
Merge branch 'master' into test
cudgel Sep 21, 2025
f1deb16
update ci for github actions ruby versions, gems
cudgel Sep 21, 2025
1078cb4
Merge branch 'test' of github.com:cudgel/splunk into test
cudgel Sep 21, 2025
3262a05
update ruby version
cudgel Sep 21, 2025
f920e5c
Remove problematic absolute path symlink that breaks CI
cudgel Sep 21, 2025
d134c4e
fix pdk validate issues
cudgel Sep 22, 2025
716352f
fix pdk validate issues
cudgel Sep 22, 2025
5986434
fix pdk validate issues
cudgel Sep 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
static:
runs-on: ubuntu-latest
name: Static Analysis
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.8'
bundler-cache: false

- name: Upgrade RubyGems
run: gem update --system 3.2.3

- name: Clear bundle cache
run: rm -rf .bundle vendor/bundle

- name: Install dependencies
run: bundle install

- name: Run static checks
run: bundle exec rake check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint

spec:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- ruby: '2.7.8'
puppet: '~> 7.0'
- ruby: '2.7.8'
puppet: '~> 8.0'
name: Spec Tests (Ruby ${{ matrix.ruby }}, Puppet ${{ matrix.puppet }})
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: false

- name: Upgrade RubyGems
run: gem update --system 3.2.3

- name: Clear bundle cache
run: rm -rf .bundle vendor/bundle

- name: Install dependencies
run: bundle install

- name: Run spec tests
run: bundle exec rake parallel_spec
env:
PUPPET_GEM_VERSION: ${{ matrix.puppet }}

acceptance:
runs-on: ubuntu-latest
name: Acceptance Tests
if: github.event_name == 'pull_request'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.8'
bundler-cache: false

- name: Upgrade RubyGems
run: gem update --system 3.2.3

- name: Clear bundle cache
run: rm -rf .bundle vendor/bundle

- name: Install dependencies
run: bundle install

- name: Run acceptance tests
run: |
# Add acceptance test commands here if you have them
echo "Acceptance tests would run here"
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Deploy to Forge

on:
push:
tags:
- 'v*'

jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy to Puppet Forge
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.5.3'
bundler-cache: true

- name: Build and publish to Forge
run: |
bundle exec rake build
bundle exec rake forge:publish
env:
BLACKSMITH_FORGE_URL: https://forgeapi.puppetlabs.com
BLACKSMITH_FORGE_USERNAME: ${{ secrets.FORGE_USERNAME }}
BLACKSMITH_FORGE_PASSWORD: ${{ secrets.FORGE_API_KEY }}
41 changes: 0 additions & 41 deletions .gitlab-ci.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ 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.1] - 2025-09-21

### Changed

- Migrated CI/CD from Travis CI to GitHub Actions
- Updated deployment workflow to use Puppet Forge API key authentication
- Improved build performance with bundler caching and matrix builds

### Added

- GitHub Actions workflow for continuous integration
- GitHub Actions workflow for automated Puppet Forge deployment
- Support for MFA-enabled Puppet Forge accounts

## [v2.3.0] - 2025-09-21

### Added
Expand Down
17 changes: 10 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@ def location_for(place_or_version, fake_version = nil)
end

group :development do
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "json", '= 2.3.0', require: false if Gem::Requirement.create(['>= 2.7.0', '< 3.0.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "json", '= 2.5.1', require: false if Gem::Requirement.create(['>= 3.0.0', '< 3.0.5']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "json", '= 2.6.1', require: false if Gem::Requirement.create(['>= 3.1.0', '< 3.1.3']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "json", '= 2.3.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "json", '= 2.6.3', require: false if Gem::Requirement.create(['>= 2.7.0', '< 3.0.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "json", '= 2.6.3', require: false if Gem::Requirement.create(['>= 3.0.0', '< 3.0.5']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "json", '= 2.6.3', require: false if Gem::Requirement.create(['>= 3.1.0', '< 3.1.3']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "json", '= 2.6.3', require: false if Gem::Requirement.create(['>= 3.2.0', '< 4.0.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "puppet-syntax", '~> 3.2.0', require: false
gem "rspec", '~> 3.10.0', require: false
gem "rspec-puppet", '~> 2.0', require: false
gem "racc", '~> 1.4.0', require: false if Gem::Requirement.create(['>= 2.7.0', '< 3.0.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "deep_merge", '~> 1.2.2', require: false
gem "voxpupuli-puppet-lint-plugins", '~> 5.0', require: false
gem "voxpupuli-puppet-lint-plugins", '~> 4.0', require: false
gem "facterdb", '~> 2.1', require: false
gem "metadata-json-lint", '~> 4.0', require: false
gem "metadata-json-lint", '~> 4.3.0', require: false
gem "rspec-puppet-facts", '~> 4.0', require: false
gem "dependency_checker", '~> 1.0.0', require: false
gem "parallel_tests", '= 3.12.1', require: false
Expand All @@ -38,7 +41,7 @@ group :development do
end
group :development, :release_prep do
gem "puppet-strings", '~> 4.0', require: false
gem "puppetlabs_spec_helper", '~> 8.0', require: false
gem "puppetlabs_spec_helper", '~> 6.0', require: false
gem "puppet-blacksmith", '~> 7.0', require: false
end
group :system_tests do
Expand Down
2 changes: 0 additions & 2 deletions Gemfile.local

This file was deleted.

16 changes: 0 additions & 16 deletions Modulefile

This file was deleted.

56 changes: 0 additions & 56 deletions appveyor.yml

This file was deleted.

29 changes: 0 additions & 29 deletions bin/metadata-json-lint

This file was deleted.

Loading
Loading