recipe

package
v0.30.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FabName                      = "fab.yaml"
	WiringName                   = "wiring.yaml"
	InstallSuffix                = "-install"
	InstallArchiveSuffix         = InstallSuffix + ".tgz"
	InstallIgnitionSuffix        = InstallSuffix + ".ign"
	InstallUSBImageWorkdirSuffix = InstallSuffix + "-usb.wip"
	InstallUSBImageSuffix        = InstallSuffix + "-usb.img"
	InstallHashSuffix            = InstallSuffix + ".inhash"
	RecipeBin                    = "hhfab-recipe"
)
View Source
const (
	ControlUSBRootRef  = "fabricator/control-usb-root"
	ControlUSBIgnition = "ignition.json"
	ControlOSTarget    = "/opt/hedgehog/install"
)
View Source
const (
	InstallLog            = "/var/log/install.log"
	HedgehogDir           = "/opt/hedgehog"
	InstallMarkerFile     = HedgehogDir + "/.install"
	InstallMarkerComplete = "complete"
)

Variables

Functions

func DoControlInstall

func DoControlInstall(ctx context.Context, workDir string) error

Types

type ControlInstall

type ControlInstall struct {
	WorkDir  string
	Fab      fabapi.Fabricator
	Control  fabapi.ControlNode
	Wiring   *apiutil.Loader
	RegUsers map[string]string
}

func (*ControlInstall) Run

func (c *ControlInstall) Run(ctx context.Context) error

type ControlInstallBuilder

type ControlInstallBuilder struct {
	WorkDir    string
	Fab        fabapi.Fabricator
	Control    fabapi.ControlNode
	Wiring     client.Reader
	USBImage   bool
	Downloader *artificer.Downloader
}

func (*ControlInstallBuilder) Build

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL