vagrant

package
v0.0.0-...-21311fb Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(stateDir string, config Config) (*vagrant, error)

func NewFromState

func NewFromState(config Config, stateConfig infra.ProvisionerState) (*vagrant, error)

Types

type Config

type Config struct {
	infra.Config
	// ScriptPath is the path to the Vagrantfile for provisioning
	ScriptPath string `json:"script_path"`
	// InstallerURL is a path to the installer
	InstallerURL string `json:"installer_url"`
	// NumNodes defines the capacity of the cluster to provision
	NumNodes int `json:"nodes"`
	// DockerDevice block device for docker data - set to /dev/xvdb
	DockerDevice string `json:"docker_device"`
}

func (*Config) Validate

func (r *Config) Validate() error

Validate validates the configuration

Jump to

Keyboard shortcuts

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