provision

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: AGPL-3.0 Imports: 35 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigOverride string

ConfigOverride is the explicit global CLI --config path.

Functions

func AddConfigSource added in v0.26.0

func AddConfigSource(location, name, ref string) error

AddConfigSource detects role/playbook roots, refusing duplicate names.

func ConfigLocation added in v0.26.0

func ConfigLocation() (string, string)

ConfigLocation reports the effective path and its precedence origin.

func ConfigSources added in v0.26.0

func ConfigSources() (roleSources []ConfiguredSource, playbookSources []ConfiguredSource, err error)

ConfigSources returns role sources and playbook-only sources in their configured precedence order.

func DefaultProvisionPlaybookPath added in v0.10.0

func DefaultProvisionPlaybookPath() string

func PrepareSelection added in v0.26.0

func PrepareSelection(roles []string, playbook string) (string, func(), error)

PrepareSelection resolves catalog names and creates a private, disposable role playbook.

func RemoveConfigSource added in v0.26.0

func RemoveConfigSource(name string) error

func RunProvision

func RunProvision(vm alchemy_build.VirtualMachineConfig, check bool) error

func RunProvisionWithOptions added in v0.10.0

func RunProvisionWithOptions(vm alchemy_build.VirtualMachineConfig, options ProvisionOptions) error

func ValidateLocalWindowsProvisionProtocol added in v0.11.0

func ValidateLocalWindowsProvisionProtocol(protocol LocalWindowsProvisionProtocol) error

func ValidateProvisionVerbosity added in v0.10.0

func ValidateProvisionVerbosity(verbosity int) error

Types

type CatalogEntry added in v0.26.0

type CatalogEntry struct {
	Kind        string   `json:"kind"`
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Source      string   `json:"source"`
	Path        string   `json:"path"`
	Platforms   []string `json:"platforms"`
	Compatible  bool     `json:"compatible"`
	Shadows     []string `json:"shadows"`
}

CatalogEntry describes the first effective role or playbook with a given name.

func Catalog added in v0.26.0

func Catalog(targetOS string, refresh bool) ([]CatalogEntry, error)

Catalog reads cached Git sources without fetching unless refresh is requested. A missing checkout is cloned on first use.

type ConfiguredSource added in v0.26.0

type ConfiguredSource struct {
	Name          string
	Type          string
	Path          string
	URL           string
	Ref           string
	RolesPath     string
	PlaybooksPath string
}

ConfiguredSource is a read-only view of one configured role or playbook source.

type LocalWindowsProvisionProtocol added in v0.11.0

type LocalWindowsProvisionProtocol string
const (
	LocalWindowsProvisionProtocolWinRM LocalWindowsProvisionProtocol = "winrm"
	LocalWindowsProvisionProtocolSSH   LocalWindowsProvisionProtocol = "ssh"
)

func DefaultLocalWindowsProvisionProtocol added in v0.11.0

func DefaultLocalWindowsProvisionProtocol() LocalWindowsProvisionProtocol

type ProvisionOptions added in v0.10.0

type ProvisionOptions struct {
	Check                           bool
	AskBecomePass                   bool
	Verbosity                       int
	PlaybookPath                    string
	PlaybookPathExplicit            bool
	InventoryPath                   string
	ExtraArgs                       []string
	LocalWindowsProtocol            LocalWindowsProvisionProtocol
	LocalWindowsForceWinRMUninstall bool
	LocalWindowsForceSSHUninstall   bool
}

Jump to

Keyboard shortcuts

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