converge

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	common.PackerConfig `mapstructure:",squash"`

	// Bootstrapping
	Bootstrap            bool   `mapstructure:"bootstrap"`
	Version              string `mapstructure:"version"`
	BootstrapCommand     string `mapstructure:"bootstrap_command"`
	PreventBootstrapSudo bool   `mapstructure:"prevent_bootstrap_sudo"`

	// Modules
	ModuleDirs []ModuleDir `mapstructure:"module_dirs"`

	// Execution
	Module           string            `mapstructure:"module"`
	WorkingDirectory string            `mapstructure:"working_directory"`
	Params           map[string]string `mapstructure:"params"`
	ExecuteCommand   string            `mapstructure:"execute_command"`
	PreventSudo      bool              `mapstructure:"prevent_sudo"`
	// contains filtered or unexported fields
}

Config for Converge provisioner

func (*Config) FlatMapstructure added in v1.4.5

func (*Config) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec }

FlatMapstructure returns a new FlatConfig. FlatConfig is an auto-generated flat version of Config. Where the contents a fields with a `mapstructure:,squash` tag are bubbled up.

type FlatConfig added in v1.4.5

type FlatConfig struct {
	PackerBuildName      *string           `mapstructure:"packer_build_name" cty:"packer_build_name" hcl:"packer_build_name"`
	PackerBuilderType    *string           `mapstructure:"packer_builder_type" cty:"packer_builder_type" hcl:"packer_builder_type"`
	PackerCoreVersion    *string           `mapstructure:"packer_core_version" cty:"packer_core_version" hcl:"packer_core_version"`
	PackerDebug          *bool             `mapstructure:"packer_debug" cty:"packer_debug" hcl:"packer_debug"`
	PackerForce          *bool             `mapstructure:"packer_force" cty:"packer_force" hcl:"packer_force"`
	PackerOnError        *string           `mapstructure:"packer_on_error" cty:"packer_on_error" hcl:"packer_on_error"`
	PackerUserVars       map[string]string `mapstructure:"packer_user_variables" cty:"packer_user_variables" hcl:"packer_user_variables"`
	PackerSensitiveVars  []string          `mapstructure:"packer_sensitive_variables" cty:"packer_sensitive_variables" hcl:"packer_sensitive_variables"`
	Bootstrap            *bool             `mapstructure:"bootstrap" cty:"bootstrap" hcl:"bootstrap"`
	Version              *string           `mapstructure:"version" cty:"version" hcl:"version"`
	BootstrapCommand     *string           `mapstructure:"bootstrap_command" cty:"bootstrap_command" hcl:"bootstrap_command"`
	PreventBootstrapSudo *bool             `mapstructure:"prevent_bootstrap_sudo" cty:"prevent_bootstrap_sudo" hcl:"prevent_bootstrap_sudo"`
	ModuleDirs           []FlatModuleDir   `mapstructure:"module_dirs" cty:"module_dirs" hcl:"module_dirs"`
	Module               *string           `mapstructure:"module" cty:"module" hcl:"module"`
	WorkingDirectory     *string           `mapstructure:"working_directory" cty:"working_directory" hcl:"working_directory"`
	Params               map[string]string `mapstructure:"params" cty:"params" hcl:"params"`
	ExecuteCommand       *string           `mapstructure:"execute_command" cty:"execute_command" hcl:"execute_command"`
	PreventSudo          *bool             `mapstructure:"prevent_sudo" cty:"prevent_sudo" hcl:"prevent_sudo"`
}

FlatConfig is an auto-generated flat version of Config. Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.

func (*FlatConfig) HCL2Spec added in v1.4.5

func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec

HCL2Spec returns the hcl spec of a Config. This spec is used by HCL to read the fields of Config. The decoded values from this spec will then be applied to a FlatConfig.

type FlatModuleDir added in v1.4.5

type FlatModuleDir struct {
	Source      *string  `mapstructure:"source" cty:"source" hcl:"source"`
	Destination *string  `mapstructure:"destination" cty:"destination" hcl:"destination"`
	Exclude     []string `mapstructure:"exclude" cty:"exclude" hcl:"exclude"`
}

FlatModuleDir is an auto-generated flat version of ModuleDir. Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.

func (*FlatModuleDir) HCL2Spec added in v1.4.5

func (*FlatModuleDir) HCL2Spec() map[string]hcldec.Spec

HCL2Spec returns the hcl spec of a ModuleDir. This spec is used by HCL to read the fields of ModuleDir. The decoded values from this spec will then be applied to a FlatModuleDir.

type ModuleDir

type ModuleDir struct {
	Source      string   `mapstructure:"source"`
	Destination string   `mapstructure:"destination"`
	Exclude     []string `mapstructure:"exclude"`
}

ModuleDir is a directory to transfer to the remote system

func (*ModuleDir) FlatMapstructure added in v1.4.5

func (*ModuleDir) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec }

FlatMapstructure returns a new FlatModuleDir. FlatModuleDir is an auto-generated flat version of ModuleDir. Where the contents a fields with a `mapstructure:,squash` tag are bubbled up.

type Provisioner

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

Provisioner for Converge

func (*Provisioner) ConfigSpec added in v1.5.0

func (p *Provisioner) ConfigSpec() hcldec.ObjectSpec

func (*Provisioner) Prepare

func (p *Provisioner) Prepare(raws ...interface{}) error

func (*Provisioner) Provision

func (p *Provisioner) Provision(ctx context.Context, ui packersdk.Ui, comm packersdk.Communicator, _ map[string]interface{}) error

Provision node somehow. TODO: actual docs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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