Skip to content

Commit

Permalink
Drop EL7 and Debian 10, add Debian 12 and Ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Nov 27, 2024
1 parent e3abaff commit b0fcb7f
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 32 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
fail-fast: false
matrix:
include:
- ruby: 2.7.7
- ruby: 2.7.8
puppet: 7
fixtures: .fixtures.yml
allow_failure: false
- ruby: 3.2.2
- ruby: 3.2.3
puppet: 8
fixtures: .fixtures.yml
allow_failure: false
Expand Down Expand Up @@ -48,13 +48,13 @@ jobs:
fail-fast: false
matrix:
set:
- "el7"
- "el8"
- "el9"
- "debian-10"
- "debian-11"
- "debian-12"
- "ubuntu-2004"
- "ubuntu-2204"
- "ubuntu-2404"
puppet:
- "puppet7"
- "puppet8"
Expand Down
10 changes: 9 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,15 @@ Style/TernaryParentheses:
Style/TrailingCommaInArguments:
Description: Prefer always trailing comma on multiline argument lists. This makes
diffs, and re-ordering nicer.
EnforcedStyleForMultiline: comma
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInArrayLiteral:
Description: Prefer always trailing comma on multiline argument lists. This makes
diffs, and re-ordering nicer.
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInHashLiteral:
Description: Prefer always trailing comma on multiline argument lists. This makes
diffs, and re-ordering nicer.
EnforcedStyleForMultiline: consistent_comma
Style/SymbolArray:
Description: Using percent style obscures symbolic intent of array's contents.
EnforcedStyle: brackets
Expand Down
5 changes: 3 additions & 2 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
.github/workflows/ci.yaml:
acceptance_matrix:
set:
- el7
- ---el7
- el8
- el9
- debian-10
- debian-11
- debian-12
- ubuntu-2004
- ubuntu-2204
- ubuntu-2404
puppet:
- puppet7
- puppet8
Expand Down
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments
minor_version = ruby_version_segments[0..1].join('.')

group :development do
gem "voxpupuli-test", '5.4.1', require: false
gem "voxpupuli-test", '7.0.0', require: false
gem "faraday", '~> 1.0', require: false
gem "github_changelog_generator", require: false
gem "puppet-blacksmith", require: false
Expand All @@ -29,8 +29,8 @@ group :system_tests do
gem "beaker-pe", require: false
gem "beaker-hostgenerator"
gem "beaker-rspec"
gem "beaker-docker"
gem "beaker-puppet"
gem "beaker-docker", git: 'https://github.com/treydock/beaker-docker.git', branch: 'amazon-2023'
gem "beaker-puppet", git: 'https://github.com/puppetlabs/beaker-puppet.git', ref: '6063d22b6c4449df795731f5853c3c75241240c4'
gem "beaker-puppet_install_helper", require: false
gem "beaker-module_install_helper", require: false
end
Expand Down
16 changes: 5 additions & 11 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,10 @@
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"7",
"8",
"9"
]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"7"
]
},
{
"operatingsystem": "Rocky",
"operatingsystemrelease": [
Expand All @@ -49,15 +42,16 @@
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"10",
"11"
"11",
"12"
]
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"20.04",
"22.04"
"22.04",
"24.04"
]
}
],
Expand All @@ -72,5 +66,5 @@
],
"pdk-version": "2.7.1",
"template-url": "https://github.com/treydock/pdk-templates.git#master",
"template-ref": "heads/master-0-g70732db"
"template-ref": "heads/master-0-gd2de99e"
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
HOSTS:
debian10:
debian12:
roles:
- agent
platform: debian-10-amd64
platform: debian-12-amd64
hypervisor: docker
image: debian:10
image: debian:12
docker_preserve_image: true
docker_cmd:
- '/sbin/init'
Expand All @@ -18,7 +18,7 @@ HOSTS:
- LANG=en_US.UTF-8
- LANGUAGE=en_US.UTF-8
- LC_ALL=en_US.UTF-8
docker_container_name: 'munge-debian10'
docker_container_name: 'munge-debian12'
CONFIG:
log_level: debug
type: foss
Expand Down
4 changes: 2 additions & 2 deletions spec/acceptance/nodesets/el8.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
HOSTS:
rocky-8:
el8:
roles:
- agent
platform: el-8-x86_64
hypervisor: docker
image: almalinux:8
image: rockylinux:8
docker_preserve_image: true
docker_cmd:
- '/usr/sbin/init'
Expand Down
4 changes: 2 additions & 2 deletions spec/acceptance/nodesets/el9.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
HOSTS:
almalinux-9:
el9:
roles:
- agent
platform: el-9-x86_64
hypervisor: docker
image: almalinux:9
image: rockylinux:9
docker_preserve_image: true
docker_cmd:
- '/usr/sbin/init'
Expand Down
25 changes: 25 additions & 0 deletions spec/acceptance/nodesets/ubuntu-2404.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
HOSTS:
ubuntu2404:
roles:
- agent
platform: ubuntu-24.04-amd64
hypervisor : docker
image: ubuntu:24.04
docker_preserve_image: true
docker_cmd: '["/sbin/init"]'
docker_image_commands:
- "rm -f /etc/dpkg/dpkg.cfg.d/excludes"
- 'apt-get install -y wget net-tools iproute2 locales apt-transport-https ca-certificates'
- 'locale-gen en_US.UTF-8'
docker_env:
- LANG=en_US.UTF-8
- LANGUAGE=en_US.UTF-8
- LC_ALL=en_US.UTF-8
docker_container_name: 'munge-ubuntu2404'
CONFIG:
log_level: debug
type: foss
ssh:
password: root
auth_methods: ["password"]

4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@

default_facts = {
puppetversion: Puppet.version,
facterversion: Facter.version
facterversion: Facter.version,
}

default_fact_files = [
File.expand_path(File.join(File.dirname(__FILE__), 'default_facts.yml')),
File.expand_path(File.join(File.dirname(__FILE__), 'default_module_facts.yml'))
File.expand_path(File.join(File.dirname(__FILE__), 'default_module_facts.yml')),
]

default_fact_files.each do |f|
Expand Down
3 changes: 2 additions & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
Dir["#{dir}/acceptance/shared_examples/**/*.rb"].sort.each { |f| require f }
require 'spec_helper_acceptance_local' if File.file?(File.join(File.dirname(__FILE__), 'spec_helper_acceptance_local.rb'))

run_puppet_install_helper
run_puppet_install_helper unless ['debian-12', 'ubuntu-2404'].include?(ENV['BEAKER_set'])
on hosts, 'apt install -y puppet-agent' if ['debian-12', 'ubuntu-2404'].include?(ENV['BEAKER_set'])
install_module_on(hosts)
install_module_dependencies_on(hosts)

Expand Down

0 comments on commit b0fcb7f

Please sign in to comment.