Skip to content

Commit 70129d6

Browse files
committed
fix: modernize apache2 ci baseline
1 parent 420d824 commit 70129d6

24 files changed

Lines changed: 49 additions & 77 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: ci
88

99
jobs:
1010
lint-unit:
11-
uses: sous-chefs/.github/.github/workflows/lint-unit.yml@main
11+
uses: sous-chefs/.github/.github/workflows/lint-unit.yml@6.0.0
1212
permissions:
1313
actions: write
1414
checks: write
@@ -32,7 +32,8 @@ jobs:
3232
- centos-stream-10
3333
- debian-12
3434
- debian-13
35-
- opensuse-leap-15
35+
- fedora-latest
36+
- opensuse-leap-160
3637
- oraclelinux-8
3738
- oraclelinux-9
3839
- rockylinux-8
@@ -63,17 +64,17 @@ jobs:
6364
# See: https://github.com/amazonlinux/amazon-linux-2023/issues/532
6465
- os: amazonlinux-2023
6566
suite: mod-wsgi
66-
# mod_wsgi idempotency issue on openSUSE Leap 15 - package reinstalls on second run
67-
- os: opensuse-leap-15
67+
# mod_wsgi idempotency issue on openSUSE Leap - package reinstalls on second run
68+
- os: opensuse-leap-160
6869
suite: mod-wsgi
6970

7071
steps:
7172
- name: Check out code
72-
uses: actions/checkout@v5
73-
- name: Install Chef
74-
uses: actionshub/chef-install@main
73+
uses: actions/checkout@v6
74+
- name: Install Cinc Workstation
75+
uses: sous-chefs/.github/.github/actions/install-workstation@6.0.0
7576
- name: Dokken
76-
uses: actionshub/test-kitchen@main
77+
uses: actionshub/test-kitchen@3.0.0
7778
env:
7879
CHEF_LICENSE: accept-no-persist
7980
KITCHEN_LOCAL_YAML: kitchen.dokken.yml
@@ -91,4 +92,4 @@ jobs:
9192
runs-on: ubuntu-latest
9293
needs: [integration]
9394
steps:
94-
- run: echo ${{needs.integration.outputs}}
95+
- run: echo "Integration complete"

.github/workflows/copilot-setup-steps.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
contents: read
1818
steps:
1919
- name: Check out code
20-
uses: actions/checkout@v5
21-
- name: Install Chef
22-
uses: actionshub/chef-install@main
20+
uses: actions/checkout@v6
21+
- name: Install Cinc Workstation
22+
uses: sous-chefs/.github/.github/actions/install-workstation@6.0.0
2323
- name: Install cookbooks
2424
run: berks install

LIMITATIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Apache2 Cookbook Limitations
22

3-
- Supported platforms are limited to the distributions covered by the Kitchen and CI matrices: AlmaLinux 8+, Amazon Linux 2023, CentOS Stream 9+, Debian 12+, Fedora, openSUSE Leap 15+, Oracle Linux 8+, Rocky Linux 8+, and Ubuntu 22.04+.
3+
- Supported platforms are limited to the distributions covered by the Kitchen and CI matrices: AlmaLinux 8+, Amazon Linux 2023, CentOS Stream 9+, Debian 12+, Fedora, openSUSE Leap 16+, Oracle Linux 8+, Rocky Linux 8+, and Ubuntu 22.04+.
44
- Platform-specific module package availability still depends on the underlying distribution repositories.
55
- This modernization branch no longer advertises legacy CentOS, Scientific Linux, FreeBSD, openSUSE classic, SUSE, or Arch support.

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,15 @@ On ArchLinux, if you are using the `apache2::mod_auth_openid` recipe, you also n
4242

4343
The following platforms and versions are tested and supported using [test-kitchen](https://kitchen.ci/)
4444

45+
- AlmaLinux 8+
4546
- Amazon Linux 2023
46-
- CentOS 7+ (incl. Rocky & Alma)
47-
- Debian 10+
47+
- CentOS Stream 9+
48+
- Debian 12+
4849
- Fedora latest
49-
- OpenSUSE Leap 15
50-
- Ubuntu 18.04+
50+
- OpenSUSE Leap 16+
51+
- Oracle Linux 8+
52+
- Rocky Linux 8+
53+
- Ubuntu 22.04+
5154

5255
## Usage
5356

kitchen.dokken.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ platforms:
5252
image: dokken/fedora-latest
5353
pid_one_command: /usr/lib/systemd/systemd
5454

55-
- name: opensuse-leap-15
55+
- name: opensuse-leap-16.0
5656
driver:
57-
image: dokken/opensuse-leap-15
57+
image: dokken/opensuse-leap-16.0
5858
pid_one_command: /usr/lib/systemd/systemd
5959

6060
- name: oraclelinux-8

kitchen.global.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,18 @@ verifier:
1717
platforms:
1818
- name: almalinux-8
1919
- name: almalinux-9
20+
- name: almalinux-10
2021
- name: amazonlinux-2023
2122
- name: centos-stream-9
22-
- name: debian-11
23+
- name: centos-stream-10
2324
- name: debian-12
25+
- name: debian-13
2426
- name: fedora-latest
25-
- name: opensuse-leap-15
27+
- name: opensuse-leap-16.0
2628
- name: oraclelinux-8
2729
- name: oraclelinux-9
2830
- name: rockylinux-8
2931
- name: rockylinux-9
30-
- name: ubuntu-20.04
32+
- name: rockylinux-10
3133
- name: ubuntu-22.04
3234
- name: ubuntu-24.04

kitchen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ platforms:
2222
- name: debian-12
2323
- name: debian-13
2424
- name: fedora-latest
25-
- name: opensuse-leap-15
25+
- name: opensuse-leap-16.0
2626
- name: oraclelinux-8
2727
- name: oraclelinux-9
2828
- name: rockylinux-8

libraries/helpers.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,11 @@ def default_modules
242242

243243
case node['platform_family']
244244
when 'rhel', 'fedora', 'amazon'
245-
default_modules.concat %w(log_config logio unixd systemd)
245+
default_modules.push('log_config', 'logio', 'unixd', 'systemd')
246246
when 'arch', 'freebsd'
247-
default_modules.concat %w(log_config logio unixd)
247+
default_modules.push('log_config', 'logio', 'unixd')
248248
when 'suse'
249-
default_modules.concat %w(log_config logio)
249+
default_modules.push('log_config', 'logio')
250250
else
251251
default_modules
252252
end

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
supports 'centos_stream', '>= 9.0'
1616
supports 'debian', '>= 12.0'
1717
supports 'fedora'
18-
supports 'opensuseleap', '>= 15.0'
18+
supports 'opensuseleap', '>= 16.0'
1919
supports 'oracle', '>= 8.0'
2020
supports 'rocky', '>= 8.0'
2121
supports 'ubuntu', '>= 22.04'

resources/config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
property :docroot_dir, String,
4646
default: lazy { default_docroot_dir },
47-
description: 'Apache document root.'\
47+
description: 'Apache document root.' \
4848
'Defaults to platform specific locations, see libraries/helpers.rb'
4949

5050
property :timeout, [Integer, String],
@@ -58,7 +58,7 @@
5858

5959
property :run_dir, String,
6060
default: lazy { default_run_dir },
61-
description: ' Sets the DefaultRuntimeDir directive.'\
61+
description: ' Sets the DefaultRuntimeDir directive.' \
6262
'Defaults to platform specific locations, see libraries/helpers.rb'
6363

6464
property :template_cookbook, String,

0 commit comments

Comments
 (0)