Skip to content

Commit 7e42c8b

Browse files
authored
Merge pull request #1044 from mlibrary/no_bullseye_imaging
drop support for imaging bullseye vms
2 parents b5650ec + 0ce820a commit 7e42c8b

5 files changed

Lines changed: 8 additions & 502 deletions

File tree

manifests/virtual_machine.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
# }
6161
define nebula::virtual_machine (
6262
String $addr = '127.0.0.1',
63-
String $build = 'bullseye',
63+
String $build = 'trixie',
6464
Integer $cpus = 2,
6565
Integer $disk = 16,
6666
Integer $ram = 1,
@@ -103,7 +103,7 @@
103103
}
104104
} else {
105105
# If the VM does not already exist, create it.
106-
if $build == 'bullseye' or $build == 'bookworm' or $build == 'trixie' {
106+
if $build == 'bookworm' or $build == 'trixie' {
107107
file { "${tmpdir}/preseed.cfg":
108108
content => template("nebula/virtual_machine/${build}.cfg.erb"),
109109
}

spec/classes/profile/vmhost/host_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def contain_vm(name)
5050
}
5151
end
5252

53-
it { is_expected.to contain_vm("vmname").with_build("bullseye") }
53+
it { is_expected.to contain_vm("vmname").with_build("trixie") }
5454
it { is_expected.to contain_vm("vmname").with_cpus(0) }
5555
it { is_expected.to contain_vm("vmname").with_disk(0) }
5656
it { is_expected.to contain_vm("vmname").with_ram(0) }

spec/defines/virtual_machine_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def contain_preseed
4747
%r{^d-i netcfg/get_hostname string vmname\.default\.invalid$},
4848
%r{^d-i netcfg/get_domain string default\.invalid$},
4949
%r{^d-i netcfg/hostname string vmname\.default\.invalid$},
50-
%r{^d-i apt-setup/local0/repository string https://apt\.voxpupuli\.org debian11 openvox8$.*^d-i apt-setup/local0/key string https://apt\.voxpupuli\.org/openvox-keyring\.gpg$}m,
50+
%r{^d-i apt-setup/local0/repository string https://apt\.voxpupuli\.org debian13 openvox8$.*^d-i apt-setup/local0/key string https://apt\.voxpupuli\.org/openvox-keyring\.gpg$}m,
5151
%r{\swget -O /target/etc/puppetlabs/puppet/puppet\.conf\s.*https://files\.default\.invalid/puppet\.conf}m
5252
].each do |line|
5353
it { is_expected.to contain_preseed.with_content(line) }
@@ -86,7 +86,7 @@ def contain_preseed
8686
%r{ -n 'vmname'},
8787
%r{ -r 1024},
8888
%r{ --vcpus 2},
89-
%r{ --location http://ftp\.us\.debian\.org/debian/dists/bullseye/main/installer-amd64/},
89+
%r{ --location http://ftp\.us\.debian\.org/debian/dists/trixie/main/installer-amd64/},
9090
%r{ --os-variant=debianbullseye},
9191
%r{ --disk '/var/lib/libvirt/images/vmname\.img,size=16'},
9292
%r{ --network bridge=br0,model=virtio .* --network bridge=br1,model=virtio}m,
@@ -311,8 +311,8 @@ def contain_preseed
311311
it { is_expected.not_to compile }
312312
end
313313

314-
context "with bullseye build name" do
315-
let(:params) { {build: "bullseye"} }
314+
context "with trixie build name" do
315+
let(:params) { {build: "trixie"} }
316316

317317
[
318318
%r{^d-i preseed/late_command string\b},

spec/fixtures/hiera/default.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ nebula::profile::puppet::master::fileservers:
9292
nebula::profile::puppet::master::autosign_whitelist: []
9393
nebula::profile::puppet::master::reports_dir: '/opt/puppetlabs/server/data/puppetserver/reports'
9494

95-
nebula::profile::vmhost::host::build: 'bullseye'
95+
nebula::profile::vmhost::host::build: 'trixie'
9696
nebula::profile::vmhost::host::cpus: 0
9797
nebula::profile::vmhost::host::disk: 0
9898
nebula::profile::vmhost::host::ram: 0

0 commit comments

Comments
 (0)