provisioner

package
v0.0.0-...-a663b2b Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assets

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

Assets represents assets directory that can be uploaded to a remote location

func NewAssets

func NewAssets(localDir string) Assets

func (Assets) Upload

func (a Assets) Upload(remoteDir string, cmds SimpleCmds) error

type LocalManifest

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

LocalManifest represent a deployment manifest that can be uploaded to a remote location

func NewLocalManifest

func NewLocalManifest(localPath *string) LocalManifest

func (LocalManifest) IsPresent

func (m LocalManifest) IsPresent() bool

func (LocalManifest) Upload

func (m LocalManifest) Upload(remotePath *string, cmds SimpleCmds) error

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

type RemoteConfig

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

func NewRemoteConfig

func NewRemoteConfig(
	baseDir string,
	vmProvisionerConfig VMProvisionerConfig,
	localManifest LocalManifest,
	remoteManifestPath string,
	assets Assets,
) RemoteConfig

func (RemoteConfig) ConfigPath

func (c RemoteConfig) ConfigPath() string

func (RemoteConfig) ExeLogPath

func (c RemoteConfig) ExeLogPath() string

func (RemoteConfig) ExePath

func (c RemoteConfig) ExePath() string

func (RemoteConfig) Upload

func (c RemoteConfig) Upload(cmds SimpleCmds) error

type SimpleCmds

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

func NewSimpleCmds

func NewSimpleCmds(sudoCmd string, ui packer.Ui, comm packer.Communicator) SimpleCmds

func (SimpleCmds) ChmodX

func (c SimpleCmds) ChmodX(path string) error

func (SimpleCmds) MkdirP

func (c SimpleCmds) MkdirP(dir string) error

func (SimpleCmds) MkdirPNonPriv

func (c SimpleCmds) MkdirPNonPriv(dir string) error

MkdirPNonPriv creates directory chowned to user of this SSH connection

func (SimpleCmds) RunPriv

func (c SimpleCmds) RunPriv(cmd string) error

func (SimpleCmds) Upload

func (c SimpleCmds) Upload(dstPath string, input io.Reader) error

func (SimpleCmds) UploadDir

func (c SimpleCmds) UploadDir(dstDir string, srcDir string, excl []string) error

type UserConfig

type UserConfig struct {

	// Used to determine if debugging is requested
	common.PackerConfig `mapstructure:",squash"`

	// AssetsDir is a directory on a host FS with bosh-agent assets
	AssetsDir string `mapstructure:"assets_dir"`

	// ManifestPath is a path on a host FS to a deployment manifest
	ManifestPath *string `mapstructure:"manifest_path"`

	// RemoteManifestPath is a path on the guest FS to a deployment manifest
	// If a ManifestPath is provided, it will be uploaded to the RemoteManifestPath
	// If a ManifestPath is not provided, a manifest must be present at the location specified
	RemoteManifestPath string `mapstructure:"remote_manifest_path"`

	// FullStemcellCompatibility makes provisioner install additional dependencies
	FullStemcellCompatibility bool `mapstructure:"full_stemcell_compatibility"`

	// Agent configuration
	AgentInfrastructure string                 `mapstructure:"agent_infrastructure"`
	AgentPlatform       string                 `mapstructure:"agent_platform"`
	AgentConfiguration  map[string]interface{} `mapstructure:"agent_configuration"`

	// SSHPassword is used to run sudo
	SSHPassword string `mapstructure:"ssh_password"`
	// contains filtered or unexported fields
}

func NewUserConfig

func NewUserConfig(raws ...interface{}) (UserConfig, error)

func (*UserConfig) HasManifestPath

func (c *UserConfig) HasManifestPath() bool

func (*UserConfig) IsDebug

func (c *UserConfig) IsDebug() bool

func (*UserConfig) SudoCmd

func (c *UserConfig) SudoCmd() string

func (*UserConfig) Validate

func (c *UserConfig) Validate() error

type VMProvisionerConfig

type VMProvisionerConfig struct {
	FullStemcellCompatibility bool

	AgentInfrastructure string
	AgentPlatform       string
	AgentConfiguration  map[string]interface{}
}

Jump to

Keyboard shortcuts

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