1. Docs
  2. Installation
  3. Answers file

Answers file

Reference for answers.yaml, the file that records setup wizard choices and drives headless installs with pikoinstall apply.

Everything the setup wizard does is stored in an answers file. Running it with pikoinstall apply gives exactly the same result as the wizard, which makes installs repeatable, reviewable and automatable.

sudo pikoinstall apply answers.yaml --dry-run   # show the configuration diff, change nothing
sudo pikoinstall apply answers.yaml             # install or converge

Example#

version: 1
package: hosting-vps
features:
  net.direct: false
nodes:
  - name: node1
    address: 10.0.0.11
    roles: [controller, compute, storage]
network:
  mode: nat                 # nat | nic
  management: { interface: eno1 }
  nat_cidr: 10.250.0.0/24
  dns: [1.1.1.1, 8.8.8.8]
storage:
  backend: lvm              # none | loop | lvm
  device: /dev/nvme1n1
compute:
  virt_type: auto           # auto | kvm | qemu
  cpu_mode: auto            # auto | host-passthrough | host-model | none
  cpu_allocation_ratio: 4
  ram_allocation_ratio: 1
  reserved_host_memory_mb: 4096
hosting:
  hostname: node1
  images: [ubuntu-24.04, debian-12, almalinux-9]
security:
  firewall: true
  public_ports: [22, 6080, 9999]
  trusted: [10.0.0.0/24]
engine:
  profile: core             # core | ha | cloud
  mirror: https://mirror.pikostack.com
brand:
  vendor: Example Hosting
  product: Example Cloud

Keys#

Key Meaning
version Schema version, currently 1
package A package ID
features Features to switch on (true) or off (false) relative to the package
region Region name shown to API clients
nodes[] name, address and roles (controller, compute, storage, network, monitoring)
network.mode nat or nic (dedicated interface)
network.management interface and optional address
network.external The dedicated interface in nic mode
network.nat_cidr Instance network in NAT mode
network.public cidr, gateway, pool_start, pool_end in nic mode
network.dns DNS servers given to VMs
storage backend, device (lvm) or size_gb (loop)
compute virt_type, cpu_mode, allocation ratios, reserved_host_memory_mb, service_workers
hosting hostname, images (template keys)
security firewall, public_ports, trusted
engine release, profile, mirror, registry, image_tag
brand vendor and product shown inside guests
services Engine services to enable or disable explicitly
parameters Any engine parameter from the catalog, by name
overrides Per-service configuration file overrides: file, section, key, value

Secrets such as database passwords are never written to the answers file. They are generated on the node and kept there.

Validation#

apply validates the whole file before changing anything: unknown keys, types, ranges, network overlaps, and features that are not available in the installed release are rejected with a clear message.

Something unclear or wrong on this page? Tell us. © 2026 PikoStack.