diff --git a/Vagrantfile b/Vagrantfile index decea26e..375dee60 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -163,7 +163,7 @@ Vagrant.configure("2") do |config| box.vm.hostname = 'ipa-client-6.vagrant.example.lan' box.vbguest.installer_options = { allow_kernel_upgrade: true } box.vm.provider 'virtualbox' do |vb| - vb.customize ["modifyvm", :id, "--natnet1", "172.31.10/24"] + vb.customize ["modifyvm", :id, "--natnet1", "172.31.9/24"] vb.gui = false vb.memory = 1024 vb.customize ["modifyvm", :id, "--ioapic", "on"] @@ -173,7 +173,7 @@ Vagrant.configure("2") do |config| box.vm.provision "shell", path: "vagrant/install-puppet.sh" box.vm.provision "shell", path: "vagrant/common.sh" box.vm.provision "shell", path: "vagrant/debian.sh" - #box.vm.provision "shell", path: "vagrant/ipa-client.sh" + box.vm.provision "shell", path: "vagrant/ipa-client.sh" end config.vm.define "ipa-client-7" do |box| @@ -183,7 +183,7 @@ Vagrant.configure("2") do |config| box.vm.hostname = 'ipa-client-7.vagrant.example.lan' box.vbguest.installer_options = { allow_kernel_upgrade: true } box.vm.provider 'virtualbox' do |vb| - vb.customize ["modifyvm", :id, "--natnet1", "172.31.10/24"] + vb.customize ["modifyvm", :id, "--natnet1", "172.31.9/24"] vb.gui = false vb.memory = 1024 vb.customize ["modifyvm", :id, "--ioapic", "on"] @@ -214,4 +214,24 @@ Vagrant.configure("2") do |config| box.vm.provision "shell", path: "vagrant/debian.sh" box.vm.provision "shell", path: "vagrant/ipa-client.sh" end + + config.vm.define "ipa-client-9" do |box| + box.vm.box = "generic/debian12" + box.vm.box_version = "4.3.6" + box.vm.synced_folder '.', '/vagrant', type: "rsync", rsync__auto: true, rsync__exclude: vagrant_ignore + box.vm.hostname = 'ipa-client-9.vagrant.example.lan' + box.vbguest.installer_options = { allow_kernel_upgrade: true } + box.vm.provider 'virtualbox' do |vb| + vb.customize ["modifyvm", :id, "--natnet1", "172.31.9/24"] + vb.gui = false + vb.memory = 1024 + vb.customize ["modifyvm", :id, "--ioapic", "on"] + vb.customize ["modifyvm", :id, "--hpet", "on"] + end + box.vm.network "private_network", ip: "192.168.56.45" + box.vm.provision "shell", path: "vagrant/install-puppet.sh" + box.vm.provision "shell", path: "vagrant/common.sh" + box.vm.provision "shell", path: "vagrant/debian.sh" + box.vm.provision "shell", path: "vagrant/ipa-client.sh" + end end 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') } } diff --git a/vagrant/install-puppet.sh b/vagrant/install-puppet.sh index f33710eb..5e673531 100644 --- a/vagrant/install-puppet.sh +++ b/vagrant/install-puppet.sh @@ -38,10 +38,6 @@ detect_osfamily() { DESCR="$(lsb_release -d | awk '{ print $2}')" if [ `echo $DESCR|grep Ubuntu` ]; then UBUNTU_VERSION="$(lsb_release -c | awk '{ print $2}')" - # TODO: Remove when Puppet makes a jammy release - if [ "$UBUNTU_VERSION" = "jammy" ]; then - UBUNTU_VERSION="focal" - fi elif [ `echo $DESCR|grep Debian` ]; then DEBIAN_VERSION="$(lsb_release -c | awk '{ print $2}')" else diff --git a/vagrant/ipa-client.sh b/vagrant/ipa-client.sh index 191c733c..e0efe3a5 100644 --- a/vagrant/ipa-client.sh +++ b/vagrant/ipa-client.sh @@ -6,7 +6,7 @@ puppet apply --modulepath '/tmp/modules:/etc/puppetlabs/code/environments/produc nameservers => ['192.168.56.35'],\ }\ }\ - /(bionic|buster|focal|bullseye|jammy)/: {\ + /(bionic|buster|focal|bullseye|jammy|bookworm)/: {\ class { 'systemd':\ manage_resolved => true,\ dns => ['192.168.56.35'],\