Documentation ¶
Overview ¶
vagrant implements the packer.PostProcessor interface and adds a post-processor that turns artifacts of known builders into Vagrant boxes.
Index ¶
- Constants
- func CopyContents(dst, src string) error
- func DirToBox(dst, dir string) error
- func WriteMetadata(dir string, contents interface{}) error
- type AWSBoxConfig
- type AWSBoxPostProcessor
- type AWSVagrantfileTemplate
- type Artifact
- type Config
- type OutputPathTemplate
- type PostProcessor
- type VBoxBoxConfig
- type VBoxBoxPostProcessor
- type VBoxVagrantfileTemplate
- type VMwareBoxConfig
- type VMwareBoxPostProcessor
Constants ¶
View Source
const BuilderId = "mitchellh.post-processor.vagrant"
Variables ¶
This section is empty.
Functions ¶
func CopyContents ¶ added in v0.1.5
Copies a file by copying the contents of the file to another place.
func DirToBox ¶
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 WriteMetadata ¶
WriteMetadata writes the "metadata.json" file for a Vagrant box.
Types ¶
type AWSBoxConfig ¶
type AWSBoxConfig struct { common.PackerConfig `mapstructure:",squash"` OutputPath string `mapstructure:"output"` VagrantfileTemplate string `mapstructure:"vagrantfile_template"` // contains filtered or unexported fields }
type AWSBoxPostProcessor ¶
type AWSBoxPostProcessor struct {
// contains filtered or unexported fields
}
func (*AWSBoxPostProcessor) Configure ¶
func (p *AWSBoxPostProcessor) Configure(raws ...interface{}) error
type AWSVagrantfileTemplate ¶
type Artifact ¶
func NewArtifact ¶
type OutputPathTemplate ¶
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(raws ...interface{}) error
type VBoxBoxConfig ¶
type VBoxBoxConfig struct { common.PackerConfig `mapstructure:",squash"` OutputPath string `mapstructure:"output"` VagrantfileTemplate string `mapstructure:"vagrantfile_template"` // contains filtered or unexported fields }
type VBoxBoxPostProcessor ¶
type VBoxBoxPostProcessor struct {
// contains filtered or unexported fields
}
func (*VBoxBoxPostProcessor) Configure ¶
func (p *VBoxBoxPostProcessor) Configure(raws ...interface{}) error
type VBoxVagrantfileTemplate ¶
type VBoxVagrantfileTemplate struct {
BaseMacAddress string
}
type VMwareBoxConfig ¶
type VMwareBoxConfig struct { common.PackerConfig `mapstructure:",squash"` OutputPath string `mapstructure:"output"` VagrantfileTemplate string `mapstructure:"vagrantfile_template"` // contains filtered or unexported fields }
type VMwareBoxPostProcessor ¶
type VMwareBoxPostProcessor struct {
// contains filtered or unexported fields
}
func (*VMwareBoxPostProcessor) Configure ¶
func (p *VMwareBoxPostProcessor) Configure(raws ...interface{}) error
Click to show internal directories.
Click to hide internal directories.