DIALECT_IDconstconst DIALECT_ID: "cloud-init"The id of the dialect.
The dialect of Archon for the install of a machine from nothing: it renders an order to the autoinstall user-data and meta-data of one machine and gives no step, because the installer carries it out at the machine's first boot, not an executor. It carries the kinds that an install can state (the administrator, the administrator's keys, the time zone, the locale, the keyboard layout and the packages) and refuses what it cannot. What the machine becomes after it boots is the Ansible dialect's render, which the machine pulls from its signed repository.
import { cloudInit, KINDS_CARRIED } from "./dialect.ts";
KINDS_CARRIED.includes("user"); // trueDIALECT_IDconstconst DIALECT_ID: "cloud-init"The id of the dialect.
KINDS_CARRIEDconstconst KINDS_CARRIED: readonly ["user", "ssh-authorized-key", "system-setting", "package"]The kinds of resource an install can state.
CloudInitOptionstypetype CloudInitOptions = {
readonly fleet: string;
readonly repository: InstallSpec["repository"];
readonly allowedSigners: string;
/** The boot server's URL for this host, ending in a slash. */
readonly base: string;
readonly mac?: string;
readonly disk?: DiskSpec;
readonly proxy?: string;
};What the dialect is given besides the order: the facts of the install that are not requirements.
installSpecOffunctionfunction installSpecOf(order: Order, o: CloudInitOptions): Result<InstallSpec, readonly string[]>The facts of an install from an order, or every reason there are not enough.
cloudInitfunctionfunction cloudInit(o: CloudInitOptions): DialectThe dialect, as the port of Archon takes it.
carriesfunctionno test imports itfunction carries(r: Requirement): booleanWhether a requirement is one this dialect states.
PRESEED_DIALECT_IDconstconst PRESEED_DIALECT_ID: "preseed"The id of the dialect of Debian's installer.
debianPreseedfunctionfunction debianPreseed(o: CloudInitOptions): DialectThe dialect of Debian's installer: the same facts as the autoinstall (CloudInitOptions), rendered as a preseed. It has no step, and it cannot lay a disk out as ZFS.
KICKSTART_DIALECT_IDconstconst KICKSTART_DIALECT_ID: "kickstart"The id of the dialect of the Red Hat family's installer.
redhatKickstartfunctionfunction redhatKickstart(o: CloudInitOptions): DialectThe dialect of Anaconda, the installer of the Red Hat family: the same facts as the autoinstall (CloudInitOptions), rendered as a Kickstart. It has no step, and it cannot lay a disk out as ZFS.