Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for 2405 #443

Merged
merged 4 commits into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pr: none
resources:
pipelines:
- pipeline: source
source: ubuntu-server.2204-lts.hyperv
source: ubuntu-server.2404-lts.hyperv

stages:
- template: ../../stages.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pr: none
resources:
pipelines:
- pipeline: source
source: ubuntu-server.2204-lts.virtualbox
source: ubuntu-server.2404-lts.virtualbox

stages:
- template: ../../stages.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pr: none
resources:
pipelines:
- pipeline: source
source: ubuntu-server.2204-lts.vmware
source: ubuntu-server.2404-lts.vmware

stages:
- template: ../../stages.yml
Expand Down
2 changes: 1 addition & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var configuration = Argument("configuration", string.Empty);
var target = Argument("target", "default");

var author = Argument("author", "gusztavvargadr");
var version = Argument("version", "2404");
var version = Argument("version", "2405");

var configurationParts = configuration.Split('/', StringSplitOptions.RemoveEmptyEntries);
var sample = configurationParts.ElementAtOrDefault(0) ?? Argument<string>("sample");
Expand Down
2 changes: 1 addition & 1 deletion samples/docker-linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ See the links below for the details of the available images:

The template has the following settings:

- [**Ubuntu Server 22.04 LTS**](../ubuntu-server/README.md#2204-lts)
- [**Ubuntu Server 24.04 LTS**](../ubuntu-server/README.md#2404-lts)
- [**Docker Engine**](https://docs.docker.com/engine/)
4 changes: 2 additions & 2 deletions samples/docker-linux/images.pkrvars.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ images = {
"community-ubuntu-server" = {
core = {
image_description = "Docker Community on Ubuntu Server"
image_version = "2600.2204"
image_version = "2600.2404"
}

native = {
source_image = "ubuntu-server/2204-lts"
source_image = "ubuntu-server/2404-lts"
}

vagrant = {
Expand Down
4 changes: 2 additions & 2 deletions samples/ubuntu-desktop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ See the links below for the details of the available images:

## 24.04 LTS Ubuntu

[Vagrant box](https://app.vagrantup.com/gusztavvargadr/boxes/ubuntu-desktop-2404-lts)
[Vagrant box](https://app.vagrantup.com/gusztavvargadr/boxes/ubuntu-desktop-2404-lts) | [Vagrant alias](https://app.vagrantup.com/gusztavvargadr/boxes/ubuntu-desktop)

The template has the following settings:

Expand All @@ -41,7 +41,7 @@ The template has the following settings:

## 22.04 LTS Ubuntu

[Vagrant box](https://app.vagrantup.com/gusztavvargadr/boxes/ubuntu-desktop-2204-lts) | [Vagrant alias](https://app.vagrantup.com/gusztavvargadr/boxes/ubuntu-desktop)
[Vagrant box](https://app.vagrantup.com/gusztavvargadr/boxes/ubuntu-desktop-2204-lts)

The template has the following settings:

Expand Down
2 changes: 1 addition & 1 deletion samples/ubuntu-desktop/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ load "#{File.dirname(__FILE__)}/../core.Vagrantfile"

Vagrant.configure("2") do |config|
config_vm_define config, "2404-lts-ubuntu", "ubuntu-desktop-2404-lts"
config_vm_define config, "2404-lts-ubuntu-alias", "ubuntu-desktop"
config_vm_define config, "2404-lts-xubuntu", "xubuntu-desktop-2404-lts"
config_vm_define config, "2204-lts-ubuntu", "ubuntu-desktop-2204-lts"
config_vm_define config, "2204-lts-ubuntu-alias", "ubuntu-desktop"
config_vm_define config, "2204-lts-xubuntu", "xubuntu-desktop-2204-lts"
config_vm_define config, "2004-lts-ubuntu", "ubuntu-desktop-2004-lts"
config_vm_define config, "2004-lts-xubuntu", "ubuntu-desktop-2004-lts-xfce"
Expand Down
4 changes: 2 additions & 2 deletions samples/ubuntu-desktop/images.pkrvars.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ images = {
memory = "4096"
ports = "3389"
box_name = "ubuntu-desktop-2404-lts"
box_alias = "ubuntu-desktop"
}

virtualbox = {
Expand All @@ -38,7 +39,7 @@ images = {

native = {
source_iso_url_local = "xubuntu-24.04-desktop-amd64.iso"
source_iso_url_remote = "https://nl.archive.ubuntu.com/ubuntu-cdimage-xubuntu/releases/24.04/release/xubuntu-24.04-desktop-amd64.iso"
source_iso_url_remote = "https://cdimage.ubuntu.com/xubuntu/releases/24.04/release/xubuntu-24.04-desktop-amd64.iso"
source_iso_checksum = "sha256:8c47b15c4089473bcc58e369a472cabf83d137c7bf8ad7d9465ad086e7bd5272"

chef_attributes = "xubuntu"
Expand Down Expand Up @@ -76,7 +77,6 @@ images = {
memory = "4096"
ports = "3389"
box_name = "ubuntu-desktop-2204-lts"
box_alias = "ubuntu-desktop"
}
}

Expand Down
4 changes: 2 additions & 2 deletions samples/ubuntu-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ See the links below for the details of the available images:

## 24.04 LTS

[Vagrant box](https://app.vagrantup.com/gusztavvargadr/boxes/ubuntu-server-2404-lts)
[Vagrant box](https://app.vagrantup.com/gusztavvargadr/boxes/ubuntu-server-2404-lts) | [Vagrant alias](https://app.vagrantup.com/gusztavvargadr/boxes/ubuntu-server)

The template has the following settings:

Expand All @@ -25,7 +25,7 @@ The template has the following settings:

## 22.04 LTS

[Vagrant box](https://app.vagrantup.com/gusztavvargadr/boxes/ubuntu-server-2204-lts) | [Vagrant alias](https://app.vagrantup.com/gusztavvargadr/boxes/ubuntu-server)
[Vagrant box](https://app.vagrantup.com/gusztavvargadr/boxes/ubuntu-server-2204-lts)

The template has the following settings:

Expand Down
2 changes: 1 addition & 1 deletion samples/ubuntu-server/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ load "#{File.dirname(__FILE__)}/../core.Vagrantfile"

Vagrant.configure("2") do |config|
config_vm_define config, "2404-lts", "ubuntu-server-2404-lts"
config_vm_define config, "2404-lts-alias", "ubuntu-server"
config_vm_define config, "2204-lts", "ubuntu-server-2204-lts"
config_vm_define config, "2204-lts-alias", "ubuntu-server"
config_vm_define config, "2004-lts", "ubuntu-server-2004-lts"

config.vm.provision "shell", inline: <<-EOH
Expand Down
11 changes: 5 additions & 6 deletions samples/ubuntu-server/images.pkrvars.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ images = {

native = {
source_iso_url_local = "ubuntu-24.04-live-server-amd64.iso"
source_iso_url_remote = "https://releases.ubuntu.com/24.04/ubuntu-24.04-live-server-amd64.iso"
source_iso_url_remote = "https://app.vagrantup.com/gusztavvargadr-iso/boxes/ubuntu-server/versions/2404.0.2404/providers/iso/amd64/vagrant.box"
source_iso_checksum = "sha256:8762f7e74e4d64d72fceb5f70682e6b069932deedb4949c6975d0f0fe0a91be3"
}

vagrant = {
box_alias = "ubuntu-server"
}

virtualbox = {
guest_os_type = "Ubuntu_64"
}
Expand All @@ -20,7 +24,6 @@ images = {
}
}


"2204-lts" = {
core = {
image_description = "Ubuntu Server 22.04 LTS"
Expand All @@ -33,10 +36,6 @@ images = {
source_iso_checksum = "sha256:a4acfda10b18da50e2ec50ccaf860d7f20b389df8765611142305c0e911d16fd"
}

vagrant = {
box_alias = "ubuntu-server"
}

virtualbox = {
guest_os_type = "Ubuntu_64"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
if vbox?
vbox_version = (shell_out('VBoxControl -v').stdout rescue '').strip

unless vbox_version.include?('6.')
unless vbox_version.include?('6.') || vbox_version.include?('7.')
apt_package [ 'build-essential', 'cryptsetup', 'libssl-dev', 'libreadline-dev', 'zlib1g-dev', 'linux-source', 'dkms', 'linux-headers-generic' ] do
action :upgrade
notifies :run, 'bash[guest-additions]', :immediately
Expand Down
2 changes: 1 addition & 1 deletion src/windows/boot/autounattend-first-logon.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $ProgressPreference = 'SilentlyContinue'
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Write-Host "Install Chocolatey"
%{ for chocolatey_version in compact([lookup(boot, "boot_chocolatey_version", "2.2.2")]) ~}
%{ for chocolatey_version in compact([lookup(boot, "boot_chocolatey_version", "2.3.0")]) ~}
$env:chocolateyVersion = '${chocolatey_version}'
%{ endfor ~}
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-WebRequest https://chocolatey.org/install.ps1 -UseBasicParsing | Invoke-Expression
Expand Down
2 changes: 1 addition & 1 deletion src/windows/boot/autounattend.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Size>1000</Size>
<Size>500</Size>
<Type>Primary</Type>
</CreatePartition>
<CreatePartition wcm:action="add">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
if vbox?
vbox_version = (powershell_out('& "C:/Program Files/Oracle/VirtualBox Guest Additions/VBoxControl.exe" -v').stdout rescue '').strip

unless vbox_version.include?('6.')
unless vbox_version.include?('6.') || vbox_version.include?('7.')
vbox_version = powershell_out('cat $env:HOME/.vbox_version').stdout.strip
vbox_guest_additions_path = "#{Chef::Config['file_cache_path']}/VBoxGuestAdditions.iso"
vbox_guest_additions_source = "https://download.virtualbox.org/virtualbox/#{vbox_version}/VBoxGuestAdditions_#{vbox_version}.iso"
Expand Down