diff --git a/Vagrantfile b/Vagrantfile index 71b9f7c..2dd1342 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -3,7 +3,13 @@ Vagrant.configure("2") do |config| config.vm.synced_folder ".", "/vagrant", disabled: true - config.vm.provision "shell", inline: "apt-get update" + config.vm.provision "shell" do |shell| + shell.inline = <<-SHELL + export DEBIAN_FRONTEND=noninteractive + apt-get update + apt-get autoremove -y --purge unattended-upgrades + SHELL + end config.vm.define "lime2-test" do |lime2| lime2.vm.box = "debian/bookworm64" @@ -26,6 +32,7 @@ Vagrant.configure("2") do |config| end mailserver.vm.provision "shell" do |shell| shell.inline = <<-SHELL + export DEBIAN_FRONTEND=noninteractive apt-get install -y lvm2 vgcreate vg_$HOSTNAME /dev/vdb SHELL