Skip to content

Commit b698c03

Browse files
authored
Merge pull request #428 from flichtenheld/u24
Add support for Debian 12 and Ubuntu 24.04
2 parents 72e6d63 + 45aabc0 commit b698c03

File tree

13 files changed

+159
-4
lines changed

13 files changed

+159
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ jobs:
5858
- "el8"
5959
- "el9"
6060
- "debian-11"
61+
- "debian-12"
6162
- "ubuntu-2004"
6263
- "ubuntu-2204"
64+
- "ubuntu-2404"
6365
puppet:
6466
- "puppet7"
6567
- "puppet8"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ known to work on many, many platforms since its creation in 2010.
3232
* Archlinux
3333
* Debian 10
3434
* Debian 11
35+
* Debian 12
3536
* EL 7
3637
* EL 8
3738
* EL 9
3839
* Ubuntu 18.04 LTS
3940
* Ubuntu 20.04 LTS
4041
* Ubuntu 22.04 LTS
42+
* Ubuntu 24.04 LTS
4143
* Solaris 10
4244
* Solaris 11
4345

data/os/Debian/12.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
# Debian 12 defaults in alphabetical order per class
3+
ssh::gss_api_authentication: 'yes'
4+
ssh::hash_known_hosts: 'yes'
5+
ssh::host: '*'
6+
ssh::include: '/etc/ssh/ssh_config.d/*.conf'
7+
ssh::packages:
8+
- 'openssh-client'
9+
ssh::send_env:
10+
- 'LANG'
11+
- 'LC_*'
12+
13+
ssh::server::accept_env:
14+
- 'LANG'
15+
- 'LC_*'
16+
ssh::server::kbd_interactive_authentication: 'no'
17+
ssh::server::include: '/etc/ssh/sshd_config.d/*.conf'
18+
ssh::server::packages:
19+
- 'openssh-server'
20+
ssh::server::print_motd: 'no'
21+
ssh::server::service_name: 'ssh'
22+
ssh::server::subsystem: 'sftp /usr/lib/openssh/sftp-server'
23+
ssh::server::use_pam: 'yes'
24+
ssh::server::x11_forwarding: 'yes'

data/os/Ubuntu/24.04.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
# Ubuntu 24.04 defaults in alphabetical order per class
3+
ssh::gss_api_authentication: 'yes'
4+
ssh::hash_known_hosts: 'yes'
5+
ssh::host: '*'
6+
ssh::include: '/etc/ssh/ssh_config.d/*.conf'
7+
ssh::packages:
8+
- 'openssh-client'
9+
ssh::send_env:
10+
- 'LANG'
11+
- 'LC_*'
12+
13+
ssh::server::accept_env:
14+
- 'LANG'
15+
- 'LC_*'
16+
ssh::server::kbd_interactive_authentication: 'no'
17+
ssh::server::include: '/etc/ssh/sshd_config.d/*.conf'
18+
ssh::server::packages:
19+
- 'openssh-server'
20+
ssh::server::password_authentication: 'yes'
21+
ssh::server::print_motd: 'no'
22+
ssh::server::service_name: 'ssh'
23+
ssh::server::subsystem: 'sftp /usr/lib/openssh/sftp-server'
24+
ssh::server::use_pam: 'yes'
25+
ssh::server::x11_forwarding: 'yes'

metadata.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
{
4444
"operatingsystem": "Debian",
4545
"operatingsystemrelease": [
46-
"11"
46+
"11",
47+
"12"
4748
]
4849
},
4950
{
@@ -86,7 +87,8 @@
8687
"operatingsystem": "Ubuntu",
8788
"operatingsystemrelease": [
8889
"20.04",
89-
"22.04"
90+
"22.04",
91+
"24.04"
9092
]
9193
}
9294
],
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
HOSTS:
2+
debian12:
3+
roles:
4+
- agent
5+
platform: debian-12-amd64
6+
hypervisor: docker
7+
image: debian:12
8+
docker_preserve_image: true
9+
docker_cmd:
10+
- '/sbin/init'
11+
docker_image_commands:
12+
- 'apt-get install -y wget net-tools systemd-sysv locales apt-transport-https ca-certificates'
13+
- 'echo "LC_ALL=en_US.UTF-8" >> /etc/environment'
14+
- 'echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen'
15+
- 'echo "LANG=en_US.UTF-8" > /etc/locale.conf'
16+
- 'locale-gen en_US.UTF-8'
17+
docker_env:
18+
- LANG=en_US.UTF-8
19+
- LANGUAGE=en_US.UTF-8
20+
- LC_ALL=en_US.UTF-8
21+
docker_container_name: 'ssh-debian12'
22+
CONFIG:
23+
log_level: debug
24+
type: foss
25+
ssh:
26+
password: root
27+
auth_methods: ["password"]
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
HOSTS:
2+
ubuntu2404:
3+
roles:
4+
- agent
5+
platform: ubuntu-24.04-amd64
6+
hypervisor : docker
7+
image: ubuntu:24.04
8+
docker_preserve_image: true
9+
docker_cmd: '["/sbin/init"]'
10+
docker_image_commands:
11+
- "rm -f /etc/dpkg/dpkg.cfg.d/excludes"
12+
- 'apt-get install -y wget net-tools iproute2 locales apt-transport-https ca-certificates'
13+
- 'locale-gen en_US.UTF-8'
14+
docker_env:
15+
- LANG=en_US.UTF-8
16+
- LANGUAGE=en_US.UTF-8
17+
- LC_ALL=en_US.UTF-8
18+
docker_container_name: 'ssh-ubuntu2404'
19+
CONFIG:
20+
log_level: debug
21+
type: foss
22+
ssh:
23+
password: root
24+
auth_methods: ["password"]

spec/classes/init_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
when %r{Debian-10}, %r{Ubuntu-18.04}
2323
packages_client = ['openssh-client']
2424
packages_server = ['openssh-server']
25-
when %r{Debian-11}, %r{Ubuntu-(20.04|22.04)}
25+
when %r{Debian-1[12]}, %r{Ubuntu-(20.04|22.04|24.04)}
2626
packages_client = ['openssh-client']
2727
packages_server = ['openssh-server']
2828
include_dir = '/etc/ssh/ssh_config.d'

spec/classes/server_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
packages = ['openssh-server']
4040
service_hasstatus = true
4141
service_name = 'ssh'
42-
when %r{Debian-11}, %r{Ubuntu-(20.04|22.04)}
42+
when %r{Debian-1[12]}, %r{Ubuntu-(20.04|22.04|24.04)}
4343
config_mode = '0600'
4444
packages = ['openssh-server']
4545
service_hasstatus = true
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This file is being maintained by Puppet.
2+
# DO NOT EDIT
3+
#
4+
# See https://man.openbsd.org/ssh_config for more info
5+
6+
Host *
7+
GSSAPIAuthentication yes
8+
HashKnownHosts yes
9+
Include /etc/ssh/ssh_config.d/*.conf
10+
SendEnv LANG
11+
SendEnv LC_*

0 commit comments

Comments
 (0)