Documentation
¶
Overview ¶
This package implements a provisioner for Packer that executes a saltstack state within the remote machine
Code generated by "mapstructure-to-hcl2 -type Config"; DO NOT EDIT.
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"` // If true, run the salt-bootstrap script SkipBootstrap bool `mapstructure:"skip_bootstrap"` BootstrapArgs string `mapstructure:"bootstrap_args"` DisableSudo bool `mapstructure:"disable_sudo"` // Custom state to run instead of highstate CustomState string `mapstructure:"custom_state"` // Local path to the minion config MinionConfig string `mapstructure:"minion_config"` // Local path to the minion grains GrainsFile string `mapstructure:"grains_file"` // Local path to the salt state tree LocalStateTree string `mapstructure:"local_state_tree"` // Local path to the salt pillar roots LocalPillarRoots string `mapstructure:"local_pillar_roots"` // Remote path to the salt state tree RemoteStateTree string `mapstructure:"remote_state_tree"` // Remote path to the salt pillar roots RemotePillarRoots string `mapstructure:"remote_pillar_roots"` // Where files will be copied before moving to the /srv/salt directory TempConfigDir string `mapstructure:"temp_config_dir"` // Don't exit packer if salt-call returns an error code NoExitOnFailure bool `mapstructure:"no_exit_on_failure"` // Set the logging level for the salt-call run LogLevel string `mapstructure:"log_level"` // Arguments to pass to salt-call SaltCallArgs string `mapstructure:"salt_call_args"` // Directory containing salt-call SaltBinDir string `mapstructure:"salt_bin_dir"` // Command line args passed onto salt-call CmdArgs string "" // The Guest OS Type (unix or windows) GuestOSType string `mapstructure:"guest_os_type"` // contains filtered or unexported fields }
func (*Config) FlatMapstructure ¶ added in v1.4.5
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"` PackerBuilderType *string `mapstructure:"packer_builder_type" cty:"packer_builder_type"` PackerDebug *bool `mapstructure:"packer_debug" cty:"packer_debug"` PackerForce *bool `mapstructure:"packer_force" cty:"packer_force"` PackerOnError *string `mapstructure:"packer_on_error" cty:"packer_on_error"` PackerUserVars map[string]string `mapstructure:"packer_user_variables" cty:"packer_user_variables"` PackerSensitiveVars []string `mapstructure:"packer_sensitive_variables" cty:"packer_sensitive_variables"` SkipBootstrap *bool `mapstructure:"skip_bootstrap" cty:"skip_bootstrap"` BootstrapArgs *string `mapstructure:"bootstrap_args" cty:"bootstrap_args"` DisableSudo *bool `mapstructure:"disable_sudo" cty:"disable_sudo"` CustomState *string `mapstructure:"custom_state" cty:"custom_state"` MinionConfig *string `mapstructure:"minion_config" cty:"minion_config"` GrainsFile *string `mapstructure:"grains_file" cty:"grains_file"` LocalStateTree *string `mapstructure:"local_state_tree" cty:"local_state_tree"` LocalPillarRoots *string `mapstructure:"local_pillar_roots" cty:"local_pillar_roots"` RemoteStateTree *string `mapstructure:"remote_state_tree" cty:"remote_state_tree"` RemotePillarRoots *string `mapstructure:"remote_pillar_roots" cty:"remote_pillar_roots"` TempConfigDir *string `mapstructure:"temp_config_dir" cty:"temp_config_dir"` NoExitOnFailure *bool `mapstructure:"no_exit_on_failure" cty:"no_exit_on_failure"` LogLevel *string `mapstructure:"log_level" cty:"log_level"` SaltCallArgs *string `mapstructure:"salt_call_args" cty:"salt_call_args"` SaltBinDir *string `mapstructure:"salt_bin_dir" cty:"salt_bin_dir"` CmdArgs *string `cty:"cmd_args"` GuestOSType *string `mapstructure:"guest_os_type" cty:"guest_os_type"` }
FlatConfig is an auto-generated flat version of Config. Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.
type Provisioner ¶
type Provisioner struct {
// contains filtered or unexported fields
}
func (*Provisioner) ConfigSpec ¶ added in v1.5.0
func (p *Provisioner) ConfigSpec() hcldec.ObjectSpec
func (*Provisioner) Prepare ¶
func (p *Provisioner) Prepare(raws ...interface{}) error
Click to show internal directories.
Click to hide internal directories.