vagrant

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2013 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Overview

vagrant implements the packer.PostProcessor interface and adds a post-processor that turns artifacts of known builders into Vagrant boxes.

Index

Constants

View Source
const BuilderId = "mitchellh.post-processor.vagrant"

Variables

This section is empty.

Functions

func DirToBox

func DirToBox(dst, dir string) error

DirToBox takes the directory and compresses it into a Vagrant-compatible box. This function does not perform checks to verify that dir is actually a proper box. This is an expected precondition.

func ProcessOutputPath

func ProcessOutputPath(path string, provider string, artifact packer.Artifact) (string, error)

ProcessOutputPath takes an output path template and executes it, replacing variables with their respective values.

func WriteMetadata

func WriteMetadata(dir string, contents interface{}) error

WriteMetadata writes the "metadata.json" file for a Vagrant box.

Types

type AWSBoxConfig

type AWSBoxConfig struct {
	OutputPath          string `mapstructure:"output"`
	VagrantfileTemplate string `mapstructure:"vagrantfile_template"`
}

type AWSBoxPostProcessor

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

func (*AWSBoxPostProcessor) Configure

func (p *AWSBoxPostProcessor) Configure(raw interface{}) error

func (*AWSBoxPostProcessor) PostProcess

func (p *AWSBoxPostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (packer.Artifact, error)

type AWSVagrantfileTemplate

type AWSVagrantfileTemplate struct {
	Images map[string]string
}

type Artifact

type Artifact struct {
	Path     string
	Provider string
}

func NewArtifact

func NewArtifact(provider, path string) *Artifact

func (*Artifact) BuilderId

func (*Artifact) BuilderId() string

func (*Artifact) Destroy

func (a *Artifact) Destroy() error

func (*Artifact) Files

func (a *Artifact) Files() []string

func (*Artifact) Id

func (a *Artifact) Id() string

func (*Artifact) String

func (a *Artifact) String() string

type Config

type Config struct {
	OutputPath string `mapstructure:"output"`
}

type OutputPathTemplate

type OutputPathTemplate struct {
	ArtifactId string
	Provider   string
}

OutputPathTemplate is the structure that is availalable within the OutputPath variables.

type PostProcessor

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

func (*PostProcessor) Configure

func (p *PostProcessor) Configure(raw interface{}) error

func (*PostProcessor) PostProcess

func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (packer.Artifact, error)

type VBoxBoxConfig

type VBoxBoxConfig struct {
	OutputPath          string `mapstructure:"output"`
	VagrantfileTemplate string `mapstructure:"vagrantfile_template"`
}

type VBoxBoxPostProcessor

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

func (*VBoxBoxPostProcessor) Configure

func (p *VBoxBoxPostProcessor) Configure(raw interface{}) error

func (*VBoxBoxPostProcessor) PostProcess

func (p *VBoxBoxPostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (packer.Artifact, error)

type VBoxVagrantfileTemplate

type VBoxVagrantfileTemplate struct {
	BaseMacAddress string
}

type VMwareBoxConfig

type VMwareBoxConfig struct {
	OutputPath          string `mapstructure:"output"`
	VagrantfileTemplate string `mapstructure:"vagrantfile_template"`
}

type VMwareBoxPostProcessor

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

func (*VMwareBoxPostProcessor) Configure

func (p *VMwareBoxPostProcessor) Configure(raw interface{}) error

func (*VMwareBoxPostProcessor) PostProcess

func (p *VMwareBoxPostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (packer.Artifact, error)

Jump to

Keyboard shortcuts

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