Refactorized scripts

This commit is contained in:
2025-07-17 17:39:48 +02:00
parent e2c3ec0f13
commit b99db7713c
11 changed files with 540 additions and 13 deletions

2
files/meta-data Normal file
View File

@ -0,0 +1,2 @@
instance-id: __VMname__
local-hostname: __VMname__

14
files/network.xml Normal file
View File

@ -0,0 +1,14 @@
<network>
<name>YOURNETWORK</name>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
</forward>
<bridge name='virbr1' stp='on' delay='0'/>
<ip address='192.168.100.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.100.100' end='192.168.100.254'/>
</dhcp>
</ip>
</network>

68
files/os_options.json Normal file
View File

@ -0,0 +1,68 @@
{
"os_variants": [
{
"id": 1,
"name": "Debian 12",
"variant": "$GUEST_OS_TYPE_DEBIAN",
"url": "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2",
"origin_image_name": "debian-12-generic-amd64.qcow2",
"md5sum": "https://cdimage.debian.org/images/cloud/bookworm/latest/SHA512SUMS",
"boot_type": "bios"
},
{
"id": 2,
"name": "Ubuntu 20.04 server",
"variant": "ubuntu20.04",
"url": "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img",
"origin_image_name": "focal-server-cloudimg-amd64.img",
"md5sum": "https://cloud-images.ubuntu.com/focal/current/SHA256SUMS",
"boot_type": "bios"
},
{
"id": 3,
"name": "Ubuntu 20.04 minimal",
"variant": "ubuntu20.04",
"url": "https://cloud-images.ubuntu.com/minimal/releases/focal/release/ubuntu-20.04-minimal-cloudimg-amd64.img",
"origin_image_name": "ubuntu-20.04-minimal-cloudimg-amd64.img",
"md5sum": "https://cloud-images.ubuntu.com/minimal/releases/focal/release/SHA256SUMS",
"boot_type": "bios"
},
{
"id": 4,
"name": "Ubuntu 22.04 server",
"variant": "ubuntu22.04",
"url": "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img",
"origin_image_name": "jammy-server-cloudimg-amd64.img",
"md5sum": "https://cloud-images.ubuntu.com/jammy/current/SHA256SUMS",
"boot_type": "uefi"
},
{
"id": 5,
"name": "Ubuntu 22.04 minimal",
"variant": "ubuntu22.04",
"url": "https://cloud-images.ubuntu.com/minimal/releases/jammy/release/ubuntu-22.04-minimal-cloudimg-amd64.img",
"origin_image_name": "ubuntu-22.04-minimal-cloudimg-amd64.img",
"md5sum": "https://cloud-images.ubuntu.com/minimal/releases/jammy/release/SHA256SUMS",
"boot_type": "uefi"
},
{
"id": 6,
"name": "Ubuntu 24.04 server",
"variant": "ubuntu22.04",
"url": "https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img",
"origin_image_name": "noble-server-cloudimg-amd64.img",
"md5sum": "https://cloud-images.ubuntu.com/noble/current/SHA256SUMS",
"boot_type": "uefi"
},
{
"id": 7,
"name": "Ubuntu 24.04 minimal",
"variant": "ubuntu22.04",
"url": "https://cloud-images.ubuntu.com/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img",
"origin_image_name": "ubuntu-24.04-minimal-cloudimg-amd64.img",
"md5sum": "https://cloud-images.ubuntu.com/minimal/releases/noble/release/SHA256SUMS",
"boot_type": "uefi"
}
]
}

12
files/user-data Normal file
View File

@ -0,0 +1,12 @@
ssh_pwauth: true
disable_root: true
users:
- name: user
ssh_authorized_keys:
- __SSH_KEY__
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
groups: sudo
shell: /bin/bash
hashed_passwd: __USER_PASSWORD__
lock-passwd: false