Documentation
¶
Index ¶
- Variables
- type Fixer
- type FixerAmazonEnhancedNetworking
- type FixerAmazonShutdownBehavior
- type FixerCreateTime
- type FixerISOMD5
- type FixerManifestFilename
- type FixerParallelsDeprecations
- type FixerParallelsHeadless
- type FixerSSHDisableAgent
- type FixerSSHKeyPath
- type FixerVMwareRename
- type FixerVagrantPPOverride
- type FixerVirtualBoxGAAttach
- type FixerVirtualBoxRename
Constants ¶
This section is empty.
Variables ¶
var FixerOrder []string
FixerOrder is the default order the fixers should be run.
var Fixers map[string]Fixer
Fixers is the map of all available fixers, by name.
Functions ¶
This section is empty.
Types ¶
type Fixer ¶
type Fixer interface {
// Fix takes a raw map structure input, potentially transforms it
// in some way, and returns the new, transformed structure. The
// Fix method is allowed to mutate the input.
Fix(input map[string]interface{}) (map[string]interface{}, error)
// Synopsis returns a string description of what the fixer actually
// does.
Synopsis() string
}
A Fixer is something that can perform a fix operation on a template.
type FixerAmazonEnhancedNetworking ¶ added in v1.1.0
type FixerAmazonEnhancedNetworking struct{}
FixerAmazonEnhancedNetworking is a Fixer that replaces the "enhanced_networking" configuration key with the clearer "ena_support". This disambiguates ena_support from sriov_support.
type FixerAmazonShutdownBehavior ¶ added in v0.12.1
type FixerAmazonShutdownBehavior struct{}
FixerAmazonShutdownBehavior fix the spelling of "shutdown_behavior" template in a Amazon builder
type FixerCreateTime ¶
type FixerCreateTime struct{}
FixerCreateTime is a Fixer that replaces the ".CreateTime" template calls with "{{timestamp}"
type FixerISOMD5 ¶
type FixerISOMD5 struct{}
FixerISOMD5 is a Fixer that replaces the "iso_md5" configuration key with the newer "iso_checksum" and "iso_checksum_type" within builders.
type FixerManifestFilename ¶ added in v0.12.1
type FixerManifestFilename struct{}
FixerManifestFilename renames any Filename to Output
type FixerParallelsDeprecations ¶ added in v0.9.0
type FixerParallelsDeprecations struct{}
FixerParallelsDeprecations removes "parallels_tools_host_path" from a template in a Parallels builder and changes "guest_os_distribution" to "guest_os_type", possibly overwriting any existing "guest_os_type"
type FixerParallelsHeadless ¶ added in v0.9.0
type FixerParallelsHeadless struct{}
FixerParallelsHeadless removes "headless" from a template in a Parallels builder
type FixerSSHDisableAgent ¶ added in v1.1.0
type FixerSSHDisableAgent struct{}
FixerSSHDisableAgent changes the "ssh_disable_agent" of a template to "ssh_disable_agent_forwarding".
type FixerSSHKeyPath ¶ added in v0.9.0
type FixerSSHKeyPath struct{}
FixerSSHKeyPath changes the "ssh_key_path" of a template to "ssh_private_key_file".
type FixerVMwareRename ¶
type FixerVMwareRename struct{}
FixerVMwareRename changes "virtualbox" builders to "virtualbox-iso"
type FixerVagrantPPOverride ¶
type FixerVagrantPPOverride struct{}
FixerVagrantPPOvveride is a Fixer that replaces the provider-specific overrides for the Vagrant post-processor with the new style introduced as part of Packer 0.5.0.
type FixerVirtualBoxGAAttach ¶
type FixerVirtualBoxGAAttach struct{}
FixerVirtualBoxGAAttach changes the "guest_additions_attach" of a template to "guest_additions_mode".
type FixerVirtualBoxRename ¶
type FixerVirtualBoxRename struct{}
FixerVirtualBoxRename changes "virtualbox" builders to "virtualbox-iso"
Source Files
¶
- fixer.go
- fixer_amazon_enhanced_networking.go
- fixer_amazon_shutdown_behavior.go
- fixer_createtime.go
- fixer_iso_md5.go
- fixer_parallels_deprecations.go
- fixer_parallels_headless.go
- fixer_pp_manifest_filename.go
- fixer_pp_vagrant_override.go
- fixer_sshdisableagent.go
- fixer_sshkeypath.go
- fixer_virtualbox_gaattach.go
- fixer_virtualbox_rename.go
- fixer_vmware_rename.go