Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
{
"name": "VoxBox",
"image": "ghcr.io/voxpupuli/voxbox:latest"
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/create_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

name: Create Git tag

on:
workflow_dispatch:

permissions: {}

jobs:
create_tag:
uses: 'voxpupuli/gha-puppet/.github/workflows/create_tag.yml@v4'
with:
allowed_owner: 'voxpupuli'
git_name: 'pccibot'
git_email: '[email protected]'
secrets:
# Configure secrets here:
# https://docs.github.com/en/actions/security-guides/encrypted-secrets
ssh_private_key: ${{ secrets.PCCI_SSH_PRIVATE_KEY }}
5 changes: 4 additions & 1 deletion .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ permissions:

jobs:
release_prep:
uses: 'voxpupuli/gha-puppet/.github/workflows/prepare_release.yml@v3'
uses: 'voxpupuli/gha-puppet/.github/workflows/prepare_release.yml@v4'
with:
version: ${{ github.event.inputs.version }}
allowed_owner: 'voxpupuli'
git_name: 'pccibot'
git_email: '[email protected]'
secrets:
# Configure secrets here:
# https://docs.github.com/en/actions/security-guides/encrypted-secrets
github_pat: '${{ secrets.PCCI_PAT_RELEASE_PREP }}'
ssh_private_key: '${{ secrets.PCCI_SSH_PRIVATE_KEY }}'
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ name: Release
on:
push:
tags:
- '*'
# https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#onpushbranchestagsbranches-ignoretags-ignore
# https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#filter-pattern-cheat-sheet
- 'v[0-9]+.[0-9]+.[0-9]+'

permissions:
contents: write

jobs:
release:
name: Release
uses: voxpupuli/gha-puppet/.github/workflows/release.yml@v3
uses: voxpupuli/gha-puppet/.github/workflows/release.yml@v4
with:
allowed_owner: 'voxpupuli'
secrets:
Expand Down
2 changes: 1 addition & 1 deletion .msync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

modulesync_config_version: '10.5.0'
modulesync_config_version: '10.7.0'
14 changes: 13 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
# This configuration was generated by
# `rubocop --auto-gen-config --no-auto-gen-timestamp`
# using RuboCop version 1.50.2.
# using RuboCop version 1.85.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
RSpec/IncludeExamples:
Exclude:
- 'spec/acceptance/class_spec.rb'

# Offense count: 9
RSpec/LeakyLocalVariable:
Exclude:
- 'spec/acceptance/class_spec.rb'
- 'spec/classes/nodejs_spec.rb'

# Offense count: 10
# Configuration parameters: .
# SupportedStyles: have_received, receive
Expand Down
4 changes: 4 additions & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
Gemfile:
optional:
':test':
- gem: 'rexml'
spec/spec_helper_acceptance.rb:
unmanaged: true
.github/workflows/ci.yml:
Expand Down
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
source ENV['GEM_SOURCE'] || 'https://rubygems.org'

group :test do
gem 'voxpupuli-test', '~> 13.0', :require => false
gem 'voxpupuli-test', '~> 14.0', :require => false
gem 'puppet_metadata', '~> 6.0', :require => false
gem 'rexml', :require => false
end

group :development do
Expand All @@ -18,7 +19,7 @@ group :system_tests do
end

group :release do
gem 'voxpupuli-release', '~> 5.0', :require => false
gem 'voxpupuli-release', '~> 5.3', :require => false
end

gem 'rake', :require => false
Expand Down
5 changes: 3 additions & 2 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
def nodesource_unsupported(nodejs_version)
return unless fact('os.family') == 'RedHat'
return 'Only NodeJS 16 is supported on EL7' if nodejs_version != '16' && fact('os.release.major') == '7'
return 'NodeJS 16 is not supported on EL9' if nodejs_version == '16' && fact('os.release.major') == '9'

'NodeJS 16 is not supported on EL9' if nodejs_version == '16' && fact('os.release.major') == '9'
end

describe 'nodejs' do
Expand Down Expand Up @@ -51,17 +52,17 @@
end

describe package('nodejs') do
it { is_expected.to be_installed }

Check warning on line 55 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" Skipped: NodeJS 16 is not supported on EL9

Check warning on line 55 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" Skipped: NodeJS 16 is not supported on EL9

Check warning on line 55 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" Skipped: NodeJS 16 is not supported on EL9

Check warning on line 55 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" Skipped: NodeJS 16 is not supported on EL9

it 'comes from the expected source' do

Check warning on line 57 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" comes from the expected source Skipped: NodeJS 16 is not supported on EL9

Check warning on line 57 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" comes from the expected source Skipped: NodeJS 16 is not supported on EL9

Check warning on line 57 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" comes from the expected source Skipped: NodeJS 16 is not supported on EL9

Check warning on line 57 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" comes from the expected source Skipped: NodeJS 16 is not supported on EL9
pkg_output = shell(pkg_cmd)
expect(pkg_output.stdout).to match 'nodesource'
end
end

describe command('node --version') do
its(:exit_status) { is_expected.to eq 0 }

Check warning on line 64 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" exit_status Skipped: NodeJS 16 is not supported on EL9

Check warning on line 64 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" exit_status Skipped: NodeJS 16 is not supported on EL9

Check warning on line 64 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" exit_status Skipped: NodeJS 16 is not supported on EL9

Check warning on line 64 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" exit_status Skipped: NodeJS 16 is not supported on EL9
its(:stdout) { is_expected.to match(%r{^v#{nodejs_version}}) }

Check warning on line 65 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" stdout Skipped: NodeJS 16 is not supported on EL9

Check warning on line 65 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" stdout Skipped: NodeJS 16 is not supported on EL9

Check warning on line 65 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" stdout Skipped: NodeJS 16 is not supported on EL9

Check warning on line 65 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" stdout Skipped: NodeJS 16 is not supported on EL9
end
end

Expand Down Expand Up @@ -95,7 +96,7 @@
nodejs-devel
].each do |pkg|
describe package(pkg) do
it do

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 16

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 16

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 16

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 24

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 24

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 20

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 18

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 22

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 24

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 18

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 22

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 20

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 22

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 20

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 24

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 20

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 18

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 18

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 22

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 99 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 16

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed
pending('nodejs-devel and nodejs not installable together on EL9') if fact('os.release.major') == '9' && pkg == 'nodejs-devel'
is_expected.to be_installed
end
Expand All @@ -103,7 +104,7 @@
end
end

context 'RedHat with repo_class => nodejs::repo::dnfmodule', if: fact('os.family') == 'RedHat' && %w[8 9].include?(fact('os.release.major')), skip: (nodejs_version == '16' && fact('os.release.major') == '9' ? 'NodeJS 16 is not available on EL9' : nil) do
context 'RedHat with repo_class => nodejs::repo::dnfmodule', if: fact('os.family') == 'RedHat' && %w[8 9].include?(fact('os.release.major')), skip: ((nodejs_version == '16' && fact('os.release.major') == '9') ? 'NodeJS 16 is not available on EL9' : nil) do
# Node 16 is not available on EL9

include_examples 'cleanup'
Expand Down
Loading
Loading