{ "type": "object", "$schema": "http://json-schema.org/draft-04/schema#", "title": "Input Parameters", "properties": { "frontend": { "title": "KVM frontend (web socket)", "description": "Front end used to provide VNC.", "properties": { "frontend-instance-guid": { "title": "Frontend Instance ID", "description": "Unique identifier of the frontend instance, like \"SOFTINST-11031\".", "type": "string" }, "frontend-software-type": { "title": "Frontend Software Type", "description": "Type of the frontend instance, like \"default\".", "type": "string", "default": "default" }, "frontend-software-url": { "title": "Frontend Software URL", "description": "Software Release URL of the frontend instance, like \"http://example.com/path/to/software.cfg\".", "type": "string", "format": "uri", "default": "http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg" }, "frontend-additional-instance-guid": { "title": "Additional Frontend Instance ID", "description": "Unique identifier of the additional frontend instance, like \"SOFTINST-11031\". Note that if the 3 options 'frontend-additional-instance-guid', 'frontend-additional-software-type' and 'frontend-additional-software-url' are empty, the additional frontend won't be requested.", "type": "string" }, "frontend-additional-software-type": { "title": "Additional Frontend Software Type", "description": "Type of the additional frontend instance, like \"default\". Note that if the 3 options 'frontend-additional-instance-guid', 'frontend-additional-software-type' and 'frontend-additional-software-url' are empty, the additional frontend won't be requested.", "type": "string", "default": "default" }, "frontend-additional-software-url": { "title": "Additional Frontend Software URL", "description": "Software Release URL of the additional frontend instance, like \"http://example.com/path/to/software.cfg\". Note that if the 3 options 'frontend-additional-instance-guid', 'frontend-additional-software-type' and 'frontend-additional-software-url' are empty, the additional frontend won't be requested.", "type": "string", "format": "uri", "default": "http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg" } }, "type": "object" }, "slave-frontend": { "title": "Web frontend", "description": "Front end used to provide web access for internal services at the kvm.", "properties": { "instance-guid": { "title": "Main Frontend Instance ID", "description": "Unique identifier of the frontend instance, like \"SOFTINST-11031\".", "type": "string", "default": "" }, "frontend-software-type": { "title": "Frontend Software Type", "description": "Type of the frontend instance, like \"frontend\".", "type": "string", "default": "custom-personal" }, "frontend-software-url": { "title": "Frontend Software URL", "description": "Software Release URL of the frontend instance, like \"http://example.com/path/to/software.cfg\".", "type": "string", "format": "uri", "default": "http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg" }, "slave-frontend-dict": { "title": "Shared Front end definition", "description": "Shared Front end definition", "patternProperties": { ".*": { "properties": { "domain": { "title": "Name of the domain to be used", "description": "Name of the domain to be used (example: mydomain.com). Subdomains of this domain will be used for the shared instances (example: instance12345.mydomain.com).", "type": "string", "default": "" }, "url": { "title": "URL of backend to use.", "description": "URL of backend to use. This URL will be used to request frontend if parameter 'kvm-partition-name' is not set.", "format": "uri", "type": "string", "default": "" }, "enable-cache": { "title": "Use cache for this shared frontend.", "description": "Specify if shared frontend should use a cache to connect to backend.", "type": "boolean", "default": false }, "type": { "title": "Specify if shared frontend will redirect to a zope backend.", "description": "If specified, Apache RewriteRule will use Zope's Virtual Host Daemon. Possible values: 'zope', 'default'.", "type": "string", "default": "default" }, "zope-path": { "title": "Path to the VirtualHostRoot of the zope.", "description": "Only used if type is 'zope'. Will append the specified path to the VirtualHostRoot of the zope's VirtualHostMonster.", "type": "string", "default": "" }, "https-only": { "title": "Access website with https url only.", "description": "Specify if website should be accessed using https only. If so, the frontend will redirect the user to https if accessed from http.", "type": "boolean", "default": false }, "kvm-partition-name": { "title": "Reference name in kvm instance definition to get url from.", "description": "Compose url from kvm definition. Only work if 'use-nat' is true and 'service-port' is set. This will allow to get URL from defined nat-rules. Play the same as url, but help if you don't know kvm ipv6 yet.", "type": "string", "default": "" }, "service-port": { "title": "Port of service into the VM (require: kvm-name).", "description": "This will allow to get URL from defined nat-rules. The port should exist in nat-rules of KVM you have referenced by 'kvm-partition-name'", "type": "integer" }, "url-scheme": { "title": "Scheme of HTTP service into the VM (require: kvm-name).", "description": "Say If HTTP service to run/or running into the Virtual Machine will use http or https. Possible values: http, https.", "type": "string", "enum": [ "http", "https" ], "default": "http" } }, "type": "object" } }, "type": "object" } }, "type": "object" }, "fw-restricted-access": { "title": "Restrict all access to VM with firewall.", "description": "When Firewall is enabled, this parameter define if only vm of this cluster and authorized sources ip should have access to cluster.", "type": "string", "enum": [ "on", "off" ], "default": "off" }, "fw-authorized-sources": { "title": "List of IP/Network address authorized to cluster.", "description": "When Firewall is enabled, this contain the list of IP address to authorize for access to all VM of this cluster.", "type": "array", "optional": true }, "fw-reject-sources": { "title": "List of IP/Network address rejected, if 'Restrict all access' is off.", "description": "When Firewall is enabled, this contain the list of IP address which should not access to all VM of this cluster.", "type": "array", "optional": true }, "authorized-keys": { "title": "Public keys for virtual machines.", "description": "Set the list of public keys to add in your virtual machine. The public key file will be available in the VM via url http://10.0.2.100/authorized_keys if you keep the NAT interface enabled", "type": "array" }, "bootstrap-script-url": { "title": "Virtual Machines bootstrap script URL.", "description": "If dedicaced disk image is used, this script will be downloaded and run at first boot of the virtual machine. Set md5sum to URL like: http://example.com/file#MD5SUM. Get file in vm at http://10.0.2.100/vm-bootstrap.", "type": "string", "format": "uri" }, "cluster-data": { "title": "Text content to share with virtual machines.", "description": "Text content which will be written in a file data of cluster http server. All VM will be able to download that file via the static URL of cluster HTTP server: https://10.0.2.101/FOLDER_HASH/data.", "type": "string" }, "monitor-interface-url": { "title": "Monitor Web Interface URL", "description": "Give Url of HTML web interface that will be used to render this monitor instance.", "type": "string", "format": "uri", "default": "https://monitor.app.officejs.com" }, "monitor-cors-domains": { "title": "Monitor CORS domains", "description": "List of cors domains separated with space. Needed for ajax query on this monitor instance from a different domain.", "type": "string", "default": "monitor.app.officejs.com" }, "kvm-partition-dict": { "title": "kvm instances definition", "description": "kvm instances definition", "patternProperties": { ".*": { "properties": { "computer-guid": { "title": "ID of the computer where to deploy this VM.", "description": "Unique identifier of the computer, like \"COMP-1234\". By default, let Master choose a computer.", "type": "string", "default": "" }, "state": { "title": "State of this Virtual Machine", "description": "Define if SlapOS should start or stop this VM.", "type": "string", "default": "started", "enum": [ "started", "stopped" ] }, "enable-device-hotplug": { "title": "Enable device hotplug mode", "description": "Allows to increase amount of RAM (ram-size) and CPU (cmp-count) without restart of the VM process, up to defined maximums (ram-max-size and cpu-max-count). Operation system have to support online addition of RAM and CPU.", "type": "boolean", "default": false }, "ram-size": { "title": "RAM size", "description": "RAM size, in MB.", "type": "integer", "default": 4096, "minimum": 1024, "multipleOf": 512 }, "ram-max-size": { "title": "Maximum RAM size, in MB", "description": "Define the maximum size of the memory. The size is in MB and should be a multiple of 512. Defaults to ram-size + 512", "type": "integer", "default": 4608, "minimum": 1024, "multipleOf": 512 }, "ram-hotplug-slot-size": { "title": "Size of Hotpluggable RAM slot, in MB", "description": "Define the RAM size to plug on one hotpluggable slot in MB, understand the size of one RAM bar. The RAM hotplugged on each slot will always have the same RAM size.", "type": "integer", "default": 512, "minimum": 512, "multipleOf": 512 }, "auto-ballooning": { "title": "Enable qemu auto ballooning.", "description": "Enable virtio balloon device to allows KVM guests to reduce/re-increase their memory size.", "type": "boolean", "default": true }, "disk-size": { "title": "Disk size", "description": "Disk size, in GB.", "type": "integer", "default": 40, "minimum": 1 }, "disk-format": { "title": "Disk format.", "description": "Format of QEMU disk drive, to create.", "type": "string", "default": "qcow2", "enum": [ "qcow2", "raw", "vdi", "vmdk", "cloop", "qed" ] }, "disk-type": { "title": "Disk type", "description": "Type of QEMU disk drive.", "type": "string", "default": "virtio", "enum": [ "ide", "sd", "mtd", "floppy", "pflash", "virtio" ] }, "disk-cache": { "title": "Cache option to use with Disk.", "description": "Disk cache controls how the host cache is used to access block data.", "type": "string", "default": "writeback", "enum": [ "none", "writeback", "unsafe", "directsync", "writethrough" ] }, "disk-aio": { "title": "Disk aio to use.", "description": "Selects between pthread based disk I/O and native Linux AIO.", "type": "string", "default": "threads", "enum": [ "threads", "native" ] }, "cpu-count": { "title": "CPU count", "description": "Number of CPU cores.", "type": "integer", "default": 2, "minimum": 1 }, "cpu-max-count": { "title": "Maximum CPU amount", "description": "Specifies the maximum number of CPUs. Defaults to cpu-count + 1", "type": "integer", "minimum": 1 }, "numa": { "title": "Simulate a multi node NUMA system.", "description": "Simulate a multi node NUMA system. If mem and cpus are omitted, resources are split equally. Each numa option are separated by space: node,nodeid=4,cpus=40-49,mem=64g node,nodeid=1,cpus=10-19,mem=128g. Set this option if you know what you're doing.", "type": "string" }, "machine-options": { "title": "Machine options.", "description": "Select the emulated machine by name. Ex: pc-i440fx-2.4,accel=kvm", "type": "string" }, "cpu-model": { "title": "CPU model.", "description": "Select the emulated CPU model. Ex: SandyBridge,+erms,+smep,+smx,+vmx", "type": "string", "default": "host" }, "network-adapter": { "title": "Network adapter", "description": "Network adapter provided to the guest. Allows to support legacy guests, which do not have drivers for default virtio-net-pci.", "type": "string", "default": "virtio-net-pci", "enum": [ "virtio-net-pci", "e1000", "ne2k_isa", "ne2k_pci", "pcnet", "rtl8139", "usb-net", "vmxnet3" ] }, "virtual-hard-drive-url": { "title": "Existing disk image URL", "description": "If specified, will download an existing disk image (qcow2, raw, ...), and will use it as main virtual hard drive. Can be used to download and use an already installed and customized virtual hard drive.", "format": "uri", "type": "string" }, "virtual-hard-drive-md5sum": { "title": "Checksum of virtual hard drive", "description": "MD5 checksum of virtual hard drive, required if virtual-hard-drive-url is specified.", "type": "string" }, "virtual-hard-drive-gzipped": { "title": "Virtual hard drive to download is gzipped", "description": "Define if virtual hard drive to download is gzipped using gzip. This help to reduce size of file to download.", "type": "boolean", "default": false }, "wipe-disk-ondestroy": { "title": "Wipe disks when destroy the VM", "description": "Say if disks should be wiped by writing new data over every single bit before delete them. This option is used to securely delete VM disks", "type": "boolean", "default": false }, "wipe-disk-iterations": { "title": "Wipe disk iterations", "description": "Number of disk overwrite iterations with random data. Default is 1. WARNING: Increase this value will slow down partition destruction and increase IO.", "type": "integer", "default": 1, "minimum": 1 }, "use-tap": { "title": "Enable QEMU TAP network interface", "description": "Use QEMU TAP network interface, might require a bridge on SlapOS Node.", "type": "boolean", "default": true }, "use-nat": { "title": "Enable QEMU USER Mode interface (NAT)", "description": "Use QEMU user-mode network stack (NAT).", "type": "boolean", "default": true }, "nat-rules": { "title": "List of rules for NAT of QEMU user mode network stack.", "description": "List of rules for NAT of QEMU user mode network stack, as comma-separated list of ports. For each port specified, it will redirect port x of the VM (example: 80) to the port x + 10000 of the public IPv6 (example: 10080). Defaults to \"22 80 443\".", "type": "array", "default": [] }, "nat-restrict-mode": { "title": "Isolate the NAT Interface (No Internet access)", "description": "If this option is enabled, the NAT interface will be isolated, i.e. it will not be able to contact the host and no guest IP packets will be routed over the host to the outside. This option does not affect any explicitly set nat rules.", "type": "boolean", "default": false }, "enable-vhost": { "title": "Use vhost-net to improve network performance of tap interface", "description": "The vhost-net provides much improved network performance for your VM. Only work if the vhost-net kernel module is loaded and available on host machine, please keep this option off if you're not shure.", "type": "boolean", "default": false }, "bootstrap-script-url": { "title": "VM bootstrap script URL.", "description": "If dedicaced disk image is used, this script will be downloaded and run at first boot of the virtual machine. Set md5sum to URL like: http://example.com/file#MD5SUM. Get file in vm at http://10.0.2.100/vm-bootstrap.", "type": "string", "format": "uri" }, "data-to-vm": { "title": "Text content to send to this virtual machine.", "description": "Text content which will be written in a file 'data' of http server of this virtual machine instance. The file will be available via URL: http://10.0.2.100/data in the VM.", "type": "string", "textarea": true }, "disable-ansible-promise": { "title": "Desactivate Ansible promise check", "description": "If the VM of cluster doesn't run Ansible and report status to this SlapOS instances, then this allow to disable ansible promise so your instance will not fail to check ansible promise.", "type": "boolean", "default": false }, "boot-image-url-select": { "title": "Boot image", "type": "string", "description": "Selectable list of provided ISO images.", "default": "Debian Bookworm 12 netinst x86_64", "enum": [ "Debian Bookworm 12 netinst x86_64", "Debian Bullseye 11 netinst x86_64", "Centos 8.2004 Minimal x86_64", "Ubuntu Noble 24.04 Live Server x86_64", "Ubuntu Jammy 22.04 Live Server x86_64", "Ubuntu Focal 20.04 Live Server x86_64", "openSUSE Leap 15 NET x86_64", "Arch Linux 2020.09.01 x86_64", "Fedora Server 32 netinst x86_64", "FreeBSD 12.1 RELEASE bootonly x86_64", "SUSE Linux Enterprise Server 15 SP6 x86_64" ] }, "boot-image-url-list": { "title": "[EXPERT] Boot image list", "description": "The list shall be list of direct URLs to images, followed by hash (#), then by image MD5SUM. Each image shall appear on newline, like: \"https://example.com/image.iso#06226c7fac5bacfa385872a19bb99684<newline>https://example.com/another-image.iso#31b40d58b18e038498ddb46caea1361c\". They will be provided in KVM image list according to the order on the list. Maximum images: 4. Maximum image size: 20GB. Download tires: 4. Maximum download time: 4h.", "type": "string", "textarea": true }, "whitelist-domains": { "title": "Whitelist domains", "description": "List of whitelisted domain names to be accessed from the VM. They will be resolved to IPs depending on where the VM end up. IPs can be used too.", "type": "string", "textarea": true }, "external-disk": { "title": "External disks", "description": "Allows to set paths and types of manually provided external disks. Use index to order disks. Changing this parameter leads to kvm process restart.", "type": "object", "default": {}, "patternProperties": { ".*": { "properties": { "path": { "title": "Path of the provided image", "description": "Absolute or relative path (to the partition root path) of the provided image. Image has to be provided, with read and write permissions of the partition user. Please note, that if the name starts with 'rbd:' it's considered special and won't be used as relative path.", "type": "string" }, "format": { "title": "Format of a disk image", "description": "Format of a disk image. Note: rbd type is experimental.", "type": "string", "default": "autodetect", "enum": [ "autodetect", "qcow2", "rbd", "raw", "vdi", "vmdk", "cloop", "qed" ] }, "cache": { "title": "Cache value for the disk", "description": "Cache value directly passed to the kvm -drive invocation as cache=value.", "type": "string", "default": "writeback", "enum": [ "writeback", "none", "unsafe", "directsync", "writethrough" ] }, "index": { "title": "Index of a disk", "description": "An index value used to order disks for the VM, required if more than one disk is used to have stable ordering.", "type": "integer", "default": 0 } } } } } }, "type": "object" } }, "type": "object" } } }