itamaelocal

package
v0.0.0-...-fc21073 Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//
	DefaultCommand = "itamae"

	//
	DefaultStagingDir = "/tmp/packer-itamae"
)
View Source
const Version = "0.1.0"

Variables

View Source
var (
	//
	DefaultGems = []string{
		"itamae",
		"specinfra-ec2_metadata-tags",
	}

	//
	DefaultRetrySleep = 5 * time.Second
)
View Source
var Revision string

Functions

This section is empty.

Types

type Config

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

	//
	Command string

	//
	Gems []string

	//
	Vars []string `mapstructure:"environment_vars"`

	//
	InstallCommand string `mapstructure:"install_command"`

	//
	InstallRetryTimeout time.Duration `mapstructure:"install_retry_timeout"`

	//
	SkipInstall bool `mapstructure:"skip_install"`

	//
	ExecuteCommand string `mapstructure:"execute_command"`

	//
	PreventSudo bool `mapstructure:"prevent_sudo"`

	//
	StagingDir string `mapstructure:"staging_directory"`

	//
	CleanStagingDir bool `mapstructure:"clean_staging_directory"`

	//
	SourceDir string `mapstructure:"source_directory"`

	//
	LogLevel string `mapstructure:"log_level"`

	//
	Shell string `mapstructure:"shell"`

	//
	NodeJSON string `mapstructure:"node_json"`

	//
	NodeYAML string `mapstructure:"node_yaml"`

	//
	Color *bool `mapstructure:"color"`

	//
	ConfigFile string `mapstructure:"config_file"`

	//
	ExtraArguments []string `mapstructure:"extra_arguments"`

	//
	Recipes []string `mapstructure:"recipes"`

	//
	IgnoreExitCodes bool `mapstructure:"ignore_exit_codes"`
	// contains filtered or unexported fields
}

type ExecuteTemplate

type ExecuteTemplate struct {
	Command        string
	Vars           string
	Sudo           bool
	StagingDir     string
	LogLevel       string
	Shell          string
	NodeJSON       string
	NodeYAML       string
	Color          bool
	ColorValue     bool
	ConfigFile     string
	ExtraArguments string
	Recipes        string
}

type InstallTemplate

type InstallTemplate struct {
	Gems string
	Sudo bool
}

type Provisioner

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

func (*Provisioner) Cancel

func (p *Provisioner) Cancel()

func (*Provisioner) Prepare

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

func (*Provisioner) Provision

func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error

Jump to

Keyboard shortcuts

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