inject

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package inject implements cloud-init ISO inject logic.

Index

Constants

View Source
const CloudInitISODevice = "ide0"

CloudInitISODevice default device used to inject cdrom iso.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapDataFormat added in v0.6.0

type BootstrapDataFormat string

BootstrapDataFormat represents the format of the bootstrap data.

const (
	// CloudConfigFormat represents the cloud-config format.
	CloudConfigFormat BootstrapDataFormat = cloudinit.FormatCloudConfig
	// IgnitionFormat represents the Ignition format.
	IgnitionFormat BootstrapDataFormat = ignition.FormatIgnition
)

type ISOInjector

type ISOInjector struct {
	VirtualMachine *proxmox.VirtualMachine

	BootstrapData []byte

	MetaRenderer    cloudinit.Renderer
	NetworkRenderer cloudinit.Renderer

	IgnitionEnricher *ignition.Enricher
}

ISOInjector used to Inject cloudinit userdata, metadata and network-config into a Proxmox VirtualMachine.

func (*ISOInjector) Inject

func (i *ISOInjector) Inject(ctx context.Context, format BootstrapDataFormat) error

Inject injects cloudinit userdata, metadata and network-config into a Proxmox VirtualMachine.

Jump to

Keyboard shortcuts

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