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 DirToBox(dst, dir string) error
- func ProcessOutputPath(path string, provider string, artifact packer.Artifact) (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 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 ProcessOutputPath ¶
ProcessOutputPath takes an output path template and executes it, replacing variables with their respective values.
func WriteMetadata ¶
WriteMetadata writes the "metadata.json" file for a Vagrant box.
Types ¶
type AWSBoxConfig ¶
type AWSBoxPostProcessor ¶
type AWSBoxPostProcessor struct {
// contains filtered or unexported fields
}
func (*AWSBoxPostProcessor) Configure ¶
func (p *AWSBoxPostProcessor) Configure(raw 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(raw interface{}) error
type VBoxBoxConfig ¶
type VBoxBoxPostProcessor ¶
type VBoxBoxPostProcessor struct {
// contains filtered or unexported fields
}
func (*VBoxBoxPostProcessor) Configure ¶
func (p *VBoxBoxPostProcessor) Configure(raw interface{}) error
type VBoxVagrantfileTemplate ¶
type VBoxVagrantfileTemplate struct {
BaseMacAddress string
}
type VMwareBoxConfig ¶
type VMwareBoxPostProcessor ¶
type VMwareBoxPostProcessor struct {
// contains filtered or unexported fields
}
func (*VMwareBoxPostProcessor) Configure ¶
func (p *VMwareBoxPostProcessor) Configure(raw interface{}) error
Click to show internal directories.
Click to hide internal directories.