Deploy

Describe a machine in one file. Start the ISO: it installs, reboots, then installs the packages, starts the services and runs your commands. Nobody answers anything.

Written for 0.7.0, to be tested in a VM.

The answers file

[install]
confirm = "erase"            # required: without it, nothing is erased
disk = "/dev/vda"

[system]
hostname = "web-01"
keyboard = "fr"

[accounts]
root_password_hash = "$6$..."     # openssl passwd -6
[accounts.user]
name = "admin"
password_hash = "$6$..."

[provision]                       # the first boot
packages = ["openssh-server", "nginx"]
enable = ["ssh.service", "nginx.service"]

A complete commented example: senbit-install.example.toml. The installer also writes the answers of every installation to /etc/senbit/install.toml: install one machine by hand, copy that file, install a hundred more.

Four ways to give it to a machine

Kernel command line

senbit.answers=https://host/web-01.toml, a device, or a path. One generic ISO, PXE or a boot menu, one address per machine.

QEMU fw_cfg

-fw_cfg name=opt/senbit/install.toml,file=web-01.toml. Virtual machines, no extra disk, no network.

A disk or a USB stick

senbit-install.toml at its root. Hardware without network, a rack, a stick per profile.

In the ISO

devtool build iso --answers web-01.toml. One ISO per profile: start it and it installs.

Safe by design

  • Nothing is erased unless the file says confirm = "erase".
  • A countdown shows what will be erased, and Enter cancels it.
  • A machine that already has a Senbit is left alone, unless force = true.
  • A file with a mistake is refused with the reason, and the interactive installer starts.
  • Passwords are given as SHA-512 hashes.

A disk image instead

./scripts/devtool build
./scripts/devtool build image --answers web-01.toml

The real ISO installs a disk in QEMU, then the disk boots once so that the packages, services and commands are done inside the image. You get a compressed qcow2 that boots ready, and its .sha256. Details: docs/INSTALLER.md.