initial commit

This commit is contained in:
2025-11-23 11:29:12 +07:00
commit 382b57ed83
33 changed files with 2360 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
<!-- Minimal libvirt domain template rendered by jagacloud -->
<domain type='kvm'>
<name>{{.Name}}</name>
<memory unit='MiB'>{{.MemoryMB}}</memory>
<vcpu>{{.CPU}}</vcpu>
<os>
<type arch='x86_64'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/><apic/><pae/>
</features>
<cpu mode='host-model'/>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
{{range .Disks}}
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='{{.Path}}'/>
<target dev='vd{{.Name}}' bus='{{.Bus}}'/>
</disk>
{{end}}
{{if .CloudInitISO}}
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='{{.CloudInitISO}}'/>
<target dev='sata0' bus='sata'/>
<readonly/>
</disk>
{{end}}
{{range .NICs}}
<interface type='bridge'>
<source bridge='{{.Bridge}}'/>
<model type='{{.Model}}'/>
{{if gt .VLAN 0}}<vlan><tag id='{{.VLAN}}'/></vlan>{{end}}
</interface>
{{end}}
<console type='pty'/>
<graphics type='vnc' autoport='yes'/>
</devices>
</domain>

View File

@@ -0,0 +1,4 @@
# Default LXC config for Jagacloud
lxc.include = /usr/share/lxc/config/common.conf
lxc.arch = linux64
# TODO: idmap, rootfs, network sections will be rendered per CT.

View File

@@ -0,0 +1,3 @@
[NetDev]
Name={{.Name}}
Kind=bridge

View File

@@ -0,0 +1,2 @@
# Podman config template for containers inside LXC
# TODO: adjust per container runtime needs.

View File

@@ -0,0 +1,4 @@
# Example storage pool definition
type: {{.Type}} # dir|lvm|zfs
name: {{.Name}}
path: {{.Path}}