The boot server: the answers to what a machine asks over TFTP and HTTP, from the pinned files, the menus, the arming kept in a file and what the fleet gives for each host (its install data, its MAC and the secret that is put in as the file is served). A host that is not armed boots its own disk. An install's files are served only under the token it was armed with; the password hash is put in as the file is served and is never kept in a rendered file; the guard's decision is the server's; and the installer's done disarms the host, so that its next network boot does not reinstall it.
type BootProvider = {
/** The hosts that can be installed, with their MAC addresses where the fleet knows them. */
h…(617 characters)
typeBootProvider= {
/** The hosts that can be installed, with their MAC addresses where the fleet knows them. */hosts():Promise<ReadonlyArray<{ readonlyname:string; readonlymac?:string }>>;
/** The install's `user-data` for a host, as rendered (with the placeholders). */userData(host:string):Promise<string|undefined>;
/** The install's `meta-data` for a host. */metaData(host:string):Promise<string|undefined>;
/** The hash of the administrator's password, kept on the boot machine and never in the fleet's repository. */passwordHash(host:string):Promise<string|undefined>;
};
type BootOptions = {
readonly stateFile: string;
readonly assets: Assets;
/** The profile of the distribution this…(642 characters)
typeBootOptions= {
readonlystateFile:string;
readonlyassets:Assets;
/** The profile of the distribution this server serves: its files, its menu entries and its install document. */readonlyprofile:BootProfile;
readonlyprovider:BootProvider;
readonlyhttp: { readonlyport:number; readonlyhostname?:string };
readonlytftp: { readonlyport:number; readonlyhostname?:string };
/** The server's own URL as a machine reaches it, ending in a slash; the address the request was made to where it is not given. */readonlybaseUrl?:string;
readonlynow?: () =>string;
readonlyemit?: (e:BootEvent) =>void;
};
type BootProvider = {
/** The hosts that can be installed, with their MAC addresses where the fleet knows them. */
h…(617 characters)
typeBootProvider= {
/** The hosts that can be installed, with their MAC addresses where the fleet knows them. */hosts():Promise<ReadonlyArray<{ readonlyname:string; readonlymac?:string }>>;
/** The install's `user-data` for a host, as rendered (with the placeholders). */userData(host:string):Promise<string|undefined>;
/** The install's `meta-data` for a host. */metaData(host:string):Promise<string|undefined>;
/** The hash of the administrator's password, kept on the boot machine and never in the fleet's repository. */passwordHash(host:string):Promise<string|undefined>;
};
type BootOptions = {
readonly stateFile: string;
readonly assets: Assets;
/** The profile of the distribution this…(642 characters)
typeBootOptions= {
readonlystateFile:string;
readonlyassets:Assets;
/** The profile of the distribution this server serves: its files, its menu entries and its install document. */readonlyprofile:BootProfile;
readonlyprovider:BootProvider;
readonlyhttp: { readonlyport:number; readonlyhostname?:string };
readonlytftp: { readonlyport:number; readonlyhostname?:string };
/** The server's own URL as a machine reaches it, ending in a slash; the address the request was made to where it is not given. */readonlybaseUrl?:string;
readonlynow?: () =>string;
readonlyemit?: (e:BootEvent) =>void;
};