Skip to content

Commit

Permalink
Major updates - READ DESCRIPTION
Browse files Browse the repository at this point in the history
* Drop Debian 10
* Drop EL7
* Add Debian 11 and Debian 12
* Add Ubuntu 22.04
  • Loading branch information
treydock committed Oct 14, 2024
1 parent a7c490a commit 80732f4
Show file tree
Hide file tree
Showing 19 changed files with 144 additions and 81 deletions.
3 changes: 3 additions & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ fixtures:
repo: puppet/logrotate
yum:
repo: puppet/yum
# Needed by logrotate
systemd:
repo: puppet/systemd
symlinks:
nhc: "#{source_dir}"
4 changes: 2 additions & 2 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
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
11 changes: 7 additions & 4 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,17 @@ spec/acceptance/nodesets/el8.yml:
spec/acceptance/nodesets/el9.yml:
packages:
- git
spec/acceptance/nodesets/debian-10.yml:
spec/acceptance/nodesets/debian-11.yml:
packages:
- git
spec/acceptance/nodesets/debian-12.yml:
packages:
- git
spec/acceptance/nodesets/debian-11.yml:
delete: true
spec/acceptance/nodesets/ubuntu-2004.yml:
packages:
- cron
- git
spec/acceptance/nodesets/ubuntu-2204.yml:
delete: true
packages:
- cron
- git
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
2 changes: 1 addition & 1 deletion manifests/conf.pp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
'NAME' => $program_name,
}

$configs = merge($default_configs, $config_overrides)
$configs = $default_configs + $config_overrides

if $_conf_dir != $nhc::conf_dir {
file { $_conf_dir:
Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
'NAME' => $program_name,
}

$configs = merge($default_configs, $config_overrides)
$configs = $default_configs + $config_overrides

contain nhc::install
contain nhc::config
Expand Down
15 changes: 5 additions & 10 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,10 @@
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"7",
"8",
"9"
]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"7"
]
},
{
"operatingsystem": "Rocky",
"operatingsystemrelease": [
Expand All @@ -57,13 +50,15 @@
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"10"
"11",
"12"
]
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"20.04"
"20.04",
"22.04"
]
}
],
Expand All @@ -80,5 +75,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-g39aea04"
}
4 changes: 2 additions & 2 deletions spec/acceptance/02_nhc_from_source_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class { 'nhc':
expected = [
'* || export MARK_OFFLINE=0',
'* || check_fs_mount_rw -f /',
'* || check_fs_mount_rw -t tmpfs -f /tmp'
'* || check_fs_mount_rw -t tmpfs -f /tmp',
]
expect(content).to match_array(expected)
end
Expand All @@ -68,7 +68,7 @@ class { 'nhc':
'DETACHED_MODE=0',
'DETACHED_MODE_FAIL_NODATA=0',
'INCDIR=/etc/nhc/scripts',
'NAME=nhc'
'NAME=nhc',
]
expect(content).to match_array(expected)
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
HOSTS:
debian10:
debian11:
roles:
- agent
platform: debian-10-amd64
platform: debian-11-amd64
hypervisor: docker
image: debian:10
image: debian:11
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: 'nhc-debian10'
docker_container_name: 'nhc-debian11'
CONFIG:
log_level: debug
type: foss
Expand Down
28 changes: 28 additions & 0 deletions spec/acceptance/nodesets/debian-12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
HOSTS:
debian12:
roles:
- agent
platform: debian-12-amd64
hypervisor: docker
image: debian:12
docker_preserve_image: true
docker_cmd:
- '/sbin/init'
docker_image_commands:
- 'apt-get install -y wget net-tools systemd-sysv locales apt-transport-https ca-certificates git'
- 'echo "LC_ALL=en_US.UTF-8" >> /etc/environment'
- 'echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen'
- 'echo "LANG=en_US.UTF-8" > /etc/locale.conf'
- '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: 'nhc-debian12'
CONFIG:
log_level: debug
type: foss
ssh:
password: root
auth_methods: ["password"]

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-2204.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
HOSTS:
ubuntu2204:
roles:
- agent
platform: ubuntu-22.04-amd64
hypervisor : docker
image: ubuntu:22.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 cron git'
- '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: 'nhc-ubuntu2204'
CONFIG:
log_level: debug
type: foss
ssh:
password: root
auth_methods: ["password"]

Loading

0 comments on commit 80732f4

Please sign in to comment.