provisioner

package
v0.0.0-...-335731d Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package provisioner implements the Omni cloud provider QEMU provisioner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provisioner

type Provisioner struct {
	// contains filtered or unexported fields
}

Provisioner is the Omni cloud provider QEMU provisioner.

It watches the MachineRequest resources and provisions them as QEMU VMs as needed.

func New

func New(talosctlPath, clusterName, subnetCIDR string, nameservers []string, numMachines, ipxeServerPort int, logger *zap.Logger) (*Provisioner, error)

New creates a new QEMU provisioner.

func (*Provisioner) ClearState

func (provisioner *Provisioner) ClearState(ctx context.Context) error

ClearState clears the state of the provisioner.

func (*Provisioner) ResetMachine

func (provisioner *Provisioner) ResetMachine(ctx context.Context, uuid string) error

ResetMachine resets the machine with the given UUID by wiping its disk and rebooting it.

func (*Provisioner) Run

func (provisioner *Provisioner) Run(ctx context.Context) error

Run starts the provisioner by provisioning a QEMU cluster with the given number of machines. If the cluster already exists, it is loaded instead.

Jump to

Keyboard shortcuts

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