From 0fe7f47dc65e65f588f55b2093bf53538ef5eeb7 Mon Sep 17 00:00:00 2001 From: Robert Grizzell Date: Tue, 28 Nov 2023 23:30:26 -0600 Subject: [PATCH] Add support for Debian 12 Bookworm --- manifests/install/client/debian.pp | 4 ++-- manifests/params.pp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/install/client/debian.pp b/manifests/install/client/debian.pp index 5eb5e706..2b74a69d 100644 --- a/manifests/install/client/debian.pp +++ b/manifests/install/client/debian.pp @@ -1,6 +1,6 @@ # # @summary Ensure that home directories get created on Debian and Ubuntu clients. -# +# # This code is needed as the --mkhomedir parameter passed to ipa-client-install does # not configure PAM even though it does install the required packages. # @@ -8,7 +8,7 @@ # class easy_ipa::install::client::debian { case $facts['os']['distro']['codename'] { - /^(xenial|stretch|bionic|focal|buster|bullseye|jammy)$/: { + /^(xenial|stretch|bionic|focal|buster|bullseye|jammy|bookworm)$/: { # Ensure that required packages are present even if they do not get pulled # in as freeipa-client package dependencies stdlib::ensure_packages(['oddjob','oddjob-mkhomedir'], { 'ensure' => 'present' }) diff --git a/manifests/params.pp b/manifests/params.pp index fd451248..d9e8e81d 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -16,7 +16,7 @@ } 'Debian': { case $facts['os']['distro']['codename'] { - /(trusty|xenial|bionic|buster|focal|bullseye|jammy)/: { $ipa_client_package_ensure = 'present' } + /(trusty|xenial|bionic|buster|focal|bullseye|jammy|bookworm)/: { $ipa_client_package_ensure = 'present' } /(stretch)/: { $ipa_client_package_ensure = 'absent' } default: { fail('ERROR: unsupported operating system') } }