Skip to content

Commit

Permalink
New Ubuntu24 (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc authored May 2, 2024
1 parent 834aa9e commit a110421
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ubuntu/appdb/ubuntu-24.04.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
appdb:
version: 2024.04.30
expireson: 6
notes: First release of Ubuntu 24.04
url: https://api.cloud.ifca.es:8080/swift/v1/egi_endorsed_vas/Ubuntu.24.04-2024.04.30.ova
sha512: "1bb7a28db0c460fef07b9faa4aa49651bd6142f24c669cd23f495ea5e8f8b6e3eca3fb4d332012fddb1dc6099376321969d1b9f6869a3cad10e2fa89e315bbb1"
arch: x86_64
os:
family: Linux
name: Ubuntu
version: '24.04'
ram:
minimum: 1GB
format: OVA
hypervisor: VirtualBox
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
- name: cloud-init clean
command: cloud-init clean --logs --seed --machine-id -c all
65 changes: 65 additions & 0 deletions ubuntu/ubuntu-24.04.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"variables": {
"SSH_PUB_KEY": "",
"SSH_PRIVATE_KEY_FILE": ""
},
"builders": [
{
"boot_command": [
"c<wait>",
"linux /casper/vmlinuz --- autoinstall ds=\"nocloud-net;seedfrom=http://{{.HTTPIP}}:{{.HTTPPort}}/\"",
" PACKER_USER=ubuntu PACKER_AUTHORIZED_KEY={{ user `SSH_PUB_KEY` | urlquery }}",
"<enter><wait>",
"initrd /casper/initrd",
"<enter><wait>",
"boot",
"<enter>"
],
"boot_wait": "5s",
"disk_size": 8000,
"format": "qcow2",
"headless": true,
"http_directory": "httpdir",
"http_port_max": 8550,
"http_port_min": 8500,
"iso_url": "https://releases.ubuntu.com/24.04/ubuntu-24.04-live-server-amd64.iso",
"iso_checksum": "sha256:8762f7e74e4d64d72fceb5f70682e6b069932deedb4949c6975d0f0fe0a91be3",
"memory": 1024,
"ssh_timeout": "20m",
"ssh_clear_authorized_keys": true,
"ssh_private_key_file": "{{ user `SSH_PRIVATE_KEY_FILE` }}",
"shutdown_command": "sudo -- sh -c 'rm /etc/sudoers.d/99-egi-installation && shutdown -h now'",
"ssh_username": "ubuntu",
"type": "qemu",
"qemuargs": [
[ "-cpu", "host" ]
],
"vm_name": "Ubuntu.24.04-2024.04.30"
}
],
"provisioners": [
{
"playbook_file": "provisioners/init.yaml",
"type": "ansible",
"extra_arguments": [
"--extra-vars", "ansible_python_interpreter=/usr/bin/python3"
],
"use_proxy": false,
"user": "ubuntu"
},
{
"pause_before": "30s",
"playbook_file": "provisioners/base.yaml",
"type": "ansible",
"extra_arguments": [
"--extra-vars", "ansible_python_interpreter=/usr/bin/python3"
],
"use_proxy": false,
"user": "ubuntu"
},
{
"type": "shell",
"script": "provisioners/cleanup.sh"
}
]
}

0 comments on commit a110421

Please sign in to comment.