Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modulesync 9.3.0 #1053

Merged
merged 5 commits into from
Jan 24, 2025
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
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

name: CI

# yamllint disable-line rule:truthy
on:
pull_request: {}
push:
Expand All @@ -18,7 +19,7 @@ concurrency:
jobs:
puppet:
name: Puppet
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v2
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v3
with:
timeout_minutes: 75
unit_runs_on: 'cern-self-hosted'
1 change: 1 addition & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

name: "Pull Request Labeler"

# yamllint disable-line rule:truthy
on:
pull_request_target: {}

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

name: Release

# yamllint disable-line rule:truthy
on:
push:
tags:
Expand All @@ -12,7 +13,7 @@ on:
jobs:
release:
name: Release
uses: voxpupuli/gha-puppet/.github/workflows/release.yml@v2
uses: voxpupuli/gha-puppet/.github/workflows/release.yml@v3
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: '9.1.0'
modulesync_config_version: '9.3.0'
1 change: 1 addition & 0 deletions .pmtignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/.github/
/.librarian/
/Puppetfile.lock
/Puppetfile
*.iml
/.editorconfig
/.fixtures.yml
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ end
gem 'rake', :require => false
gem 'facter', ENV['FACTER_GEM_VERSION'], :require => false, :groups => [:test]

puppetversion = ENV['PUPPET_GEM_VERSION'] || '~> 7.24'
puppetversion = ENV['PUPPET_GEM_VERSION'] || [">= 7.24", "< 9"]
gem 'puppet', puppetversion, :require => false, :groups => [:test]

# vim: syntax=ruby
2 changes: 1 addition & 1 deletion manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
}

if $collectd::utils and ( $facts['os']['family'] == 'Debian' or ( $facts['os']['family'] == 'RedHat' and versioncmp($facts['os']['release']['major'],'8') >= 0 )) {
if $collectd::utils and ( $facts['os']['family'] == 'Debian' or $facts['os']['family'] == 'RedHat' ) {
package { 'collectd-utils':
ensure => $collectd::package_ensure,
}
Expand Down
3 changes: 1 addition & 2 deletions manifests/plugin/python.pp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
$ensure_real = 'absent'
}

if $facts['os']['name'] == 'Amazon' or
($facts['os']['family'] == 'RedHat' and versioncmp($facts['os']['release']['major'],'8') >= 0) {
if $facts['os']['name'] == 'Amazon' or ($facts['os']['family'] == 'RedHat') {
if $_manage_package {
package { 'collectd-python':
ensure => $ensure_real,
Expand Down
4 changes: 1 addition & 3 deletions manifests/plugin/rabbitmq.pp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@
) {
include collectd

if $facts['os']['family'] == 'Debian' or
$facts['os']['family'] == 'RedHat' and versioncmp($facts['os']['release']['major'], '8') >= 0 or
$facts['os']['name'] == 'Ubuntu' {
if $facts['os']['family'] == 'Debian' or $facts['os']['family'] == 'RedHat' {
fail('https://pypi.org/project/collectd-rabbitmq/ does not support Python 3')
}

Expand Down
6 changes: 3 additions & 3 deletions manifests/plugin/write_http.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
if $manage_package !~ Undef {
$_manage_package = $manage_package
} else {
if $facts['os']['family'] == 'RedHat' and versioncmp($facts['os']['release']['major'],'8') >= 0 {
$_manage_package = true
$_manage_package = if $facts['os']['family'] == 'RedHat' {
true
} else {
$_manage_package = false
false
}
}
if $_manage_package {
Expand Down
11 changes: 0 additions & 11 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,33 +33,23 @@
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"7",
"8",
"9"
]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"7",
"8",
"9"
]
},
{
"operatingsystem": "OracleLinux",
"operatingsystemrelease": [
"7",
"8",
"9"
]
},
{
"operatingsystem": "Scientific",
"operatingsystemrelease": [
"7"
]
},
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
Expand All @@ -77,7 +67,6 @@
{
"operatingsystem": "FreeBSD",
"operatingsystemrelease": [
"12",
"13",
"14"
]
Expand Down
14 changes: 7 additions & 7 deletions spec/classes/collectd_plugin_rabbitmq_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
end

case [facts['os']['family'], facts['os']['release']['major']]
when %w[RedHat 8], %w[Ubuntu 20.04]
when %w[RedHat 8], %w[RedHat 9], %w[Ubuntu 20.04]
it { is_expected.to raise_error(%r{does not support Python 3}) }
else
it 'import collectd_rabbitmq.collectd_plugin in python-config' do
Expand Down Expand Up @@ -69,7 +69,7 @@
end

case [facts['os']['family'], facts['os']['release']['major']]
when %w[RedHat 8], %w[Ubuntu 20.04]
when %w[RedHat 8], %w[RedHat 9], %w[Ubuntu 20.04]
it { is_expected.to raise_error(%r{does not support Python 3}) }
else
it 'override custom TypesDB' do
Expand All @@ -84,7 +84,7 @@
end

case [facts['os']['family'], facts['os']['release']['major']]
when %w[RedHat 8], %w[Ubuntu 20.04]
when %w[RedHat 8], %w[RedHat 9], %w[Ubuntu 20.04]
it { is_expected.to raise_error(%r{does not support Python 3}) }
else
it 'override Username to foo in python-config' do
Expand All @@ -99,7 +99,7 @@
end

case [facts['os']['family'], facts['os']['release']['major']]
when %w[RedHat 8], %w[Ubuntu 20.04]
when %w[RedHat 8], %w[RedHat 9], %w[Ubuntu 20.04]
it { is_expected.to raise_error(%r{does not support Python 3}) }
else
it 'override Username to foo in python-config' do
Expand All @@ -114,7 +114,7 @@
end

case [facts['os']['family'], facts['os']['release']['major']]
when %w[RedHat 8], %w[Ubuntu 20.04]
when %w[RedHat 8], %w[RedHat 9], %w[Ubuntu 20.04]
it { is_expected.to raise_error(%r{does not support Python 3}) }
else
it 'override Username to foo in python-config' do
Expand All @@ -130,7 +130,7 @@
end

case [facts['os']['family'], facts['os']['release']['major']]
when %w[RedHat 8], %w[Ubuntu 20.04]
when %w[RedHat 8], %w[RedHat 9], %w[Ubuntu 20.04]
it { is_expected.to raise_error(%r{does not support Python 3}) }
else
it 'Will remove python-config' do
Expand All @@ -157,7 +157,7 @@
end

case [facts['os']['family'], facts['os']['release']['major']]
when %w[RedHat 8], %w[Ubuntu 20.04]
when %w[RedHat 8], %w[RedHat 9], %w[Ubuntu 20.04]
it { is_expected.to raise_error(%r{does not support Python 3}) }
else
it do
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/collectd_plugin_write_http_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
)
end

case [facts['os']['family'], facts['os']['release']['major']]
when %w[RedHat 8]
case facts['os']['family']
when 'RedHat'
it { is_expected.to contain_package('collectd-write_http') }
else
it { is_expected.not_to contain_package('collectd-write_http') }
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def baseline_os_hash
supported_os: [
{
'operatingsystem' => 'CentOS',
'operatingsystemrelease' => %w[7 8]
'operatingsystemrelease' => %w[9]
}
]
}
Expand Down
Loading