65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
# Path to the Badger key-value database directory
|
|
database:
|
|
path: "/var/lib/two/data/"
|
|
|
|
# REST API server
|
|
api:
|
|
address: "0.0.0.0"
|
|
port: 8080
|
|
|
|
# Prometheus metrics server
|
|
prometheus:
|
|
address: "0.0.0.0"
|
|
port: 9090
|
|
|
|
# Worker pool that executes dispatched commands
|
|
worker:
|
|
# Number of concurrent worker goroutines
|
|
count: 4
|
|
# Maximum number of commands queued before Dispatch blocks
|
|
buffer_size: 100
|
|
|
|
# Timing for commands that wait on resource state transitions
|
|
dispatcher:
|
|
# How long (in seconds) to wait before giving up
|
|
timeout_seconds: 300
|
|
# Interval (in seconds) between each state check
|
|
poll_seconds: 2
|
|
|
|
# Bridge interface used when the requested iface_type is not found in interfaces
|
|
default_interface: br-000000
|
|
|
|
# Map of logical interface types to physical bridge names on this host
|
|
interfaces:
|
|
vms: br-000000
|
|
internet: br-000000
|
|
admin: br-000000
|
|
|
|
# Metadata server runtime directory (cloud-init files per VM)
|
|
metadata:
|
|
run_dir: "/run/two/metadata"
|
|
|
|
# QEMU runtime paths
|
|
qemu:
|
|
# UEFI firmware (requires apt install ovmf on Debian/Ubuntu)
|
|
ovmf_code_path: "/usr/share/OVMF/OVMF_CODE.fd"
|
|
ovmf_vars_template: "/usr/share/OVMF/OVMF_VARS.fd"
|
|
# Per-VM UEFI variable store (writable copy, created at start / deleted at stop)
|
|
uefi_vars_dir: "/run/two/vms/efi"
|
|
# QEMU Unix socket directories
|
|
serial_dir: "/run/two/vms/serial"
|
|
monitor_dir: "/run/two/vms/monitor"
|
|
qmp_dir: "/run/two/vms/qmp"
|
|
|
|
# Admin API (read-only DB inspection, loopback only)
|
|
admin:
|
|
enabled: false
|
|
address: "127.0.0.1"
|
|
port: 9091
|
|
|
|
# Logging configuration
|
|
logger:
|
|
# Log level: debug, info, warn, error (default: info)
|
|
level: info
|
|
# Force debug level regardless of level setting (default: false)
|
|
debug: false
|