From f301a6454dc9a6346c645d4d4da3b30b2fbcfe81 Mon Sep 17 00:00:00 2001 From: Olivier Tremblay Date: Thu, 20 Aug 2015 07:37:24 -0400 Subject: [PATCH] Added documentation, renamed config param to iso_target_path --- builder/parallels/iso/builder.go | 2 +- builder/qemu/builder.go | 2 +- builder/virtualbox/iso/builder.go | 2 +- builder/vmware/iso/builder.go | 2 +- website/source/docs/builders/parallels-iso.html.markdown | 4 ++++ website/source/docs/builders/qemu.html.markdown | 4 ++++ website/source/docs/builders/virtualbox-iso.html.markdown | 4 ++++ website/source/docs/builders/vmware-iso.html.markdown | 4 ++++ 8 files changed, 20 insertions(+), 4 deletions(-) diff --git a/builder/parallels/iso/builder.go b/builder/parallels/iso/builder.go index e6e72d7fb..72706748a 100644 --- a/builder/parallels/iso/builder.go +++ b/builder/parallels/iso/builder.go @@ -46,7 +46,7 @@ type Config struct { ISOChecksumType string `mapstructure:"iso_checksum_type"` ISOUrls []string `mapstructure:"iso_urls"` VMName string `mapstructure:"vm_name"` - TargetPath string `mapstructure:"target_path"` + TargetPath string `mapstructure:"iso_target_path"` RawSingleISOUrl string `mapstructure:"iso_url"` diff --git a/builder/qemu/builder.go b/builder/qemu/builder.go index 8369495d8..76b90421a 100644 --- a/builder/qemu/builder.go +++ b/builder/qemu/builder.go @@ -105,7 +105,7 @@ type Config struct { ShutdownCommand string `mapstructure:"shutdown_command"` SSHHostPortMin uint `mapstructure:"ssh_host_port_min"` SSHHostPortMax uint `mapstructure:"ssh_host_port_max"` - TargetPath string `mapstructure:"target_path"` + TargetPath string `mapstructure:"iso_target_path"` VNCPortMin uint `mapstructure:"vnc_port_min"` VNCPortMax uint `mapstructure:"vnc_port_max"` VMName string `mapstructure:"vm_name"` diff --git a/builder/virtualbox/iso/builder.go b/builder/virtualbox/iso/builder.go index 8a19678c0..fcc062ecb 100644 --- a/builder/virtualbox/iso/builder.go +++ b/builder/virtualbox/iso/builder.go @@ -49,7 +49,7 @@ type Config struct { ISOChecksumType string `mapstructure:"iso_checksum_type"` ISOInterface string `mapstructure:"iso_interface"` ISOUrls []string `mapstructure:"iso_urls"` - TargetPath string `mapstructure:"target_path"` + TargetPath string `mapstructure:"iso_target_path"` VMName string `mapstructure:"vm_name"` RawSingleISOUrl string `mapstructure:"iso_url"` diff --git a/builder/vmware/iso/builder.go b/builder/vmware/iso/builder.go index c35719dc9..9f7d4cb1f 100755 --- a/builder/vmware/iso/builder.go +++ b/builder/vmware/iso/builder.go @@ -49,7 +49,7 @@ type Config struct { VMName string `mapstructure:"vm_name"` BootCommand []string `mapstructure:"boot_command"` SkipCompaction bool `mapstructure:"skip_compaction"` - TargetPath string `mapstructure:"target_path"` + TargetPath string `mapstructure:"iso_target_path"` VMXTemplatePath string `mapstructure:"vmx_template_path"` VMXDiskTemplatePath string `mapstructure:"vmx_disk_template_path"` diff --git a/website/source/docs/builders/parallels-iso.html.markdown b/website/source/docs/builders/parallels-iso.html.markdown index 76278ec2b..766404ade 100644 --- a/website/source/docs/builders/parallels-iso.html.markdown +++ b/website/source/docs/builders/parallels-iso.html.markdown @@ -138,6 +138,10 @@ builder. to force the HTTP server to be on one port, make this minimum and maximum port the same. By default the values are 8000 and 9000, respectively. +- `iso_target_path` (string) - The path where the iso should be saved after + download. By default will go in the packer cache, with a hash of the + original filename as its name. + - `iso_urls` (array of strings) - Multiple URLs for the ISO to download. Packer will try these in order. If anything goes wrong attempting to download or while downloading a single URL, it will move on to the next. All diff --git a/website/source/docs/builders/qemu.html.markdown b/website/source/docs/builders/qemu.html.markdown index 651c69122..7f2226aa5 100644 --- a/website/source/docs/builders/qemu.html.markdown +++ b/website/source/docs/builders/qemu.html.markdown @@ -168,6 +168,10 @@ builder. to force the HTTP server to be on one port, make this minimum and maximum port the same. By default the values are 8000 and 9000, respectively. +- `iso_target_path` (string) - The path where the iso should be saved after + download. By default will go in the packer cache, with a hash of the + original filename as its name. + - `iso_urls` (array of strings) - Multiple URLs for the ISO to download. Packer will try these in order. If anything goes wrong attempting to download or while downloading a single URL, it will move on to the next. All diff --git a/website/source/docs/builders/virtualbox-iso.html.markdown b/website/source/docs/builders/virtualbox-iso.html.markdown index 61e5d3e16..a3421b630 100644 --- a/website/source/docs/builders/virtualbox-iso.html.markdown +++ b/website/source/docs/builders/virtualbox-iso.html.markdown @@ -170,6 +170,10 @@ builder. to, defaults to "ide". When set to "sata", the drive is attached to an AHCI SATA controller. +- `iso_target_path` (string) - The path where the iso should be saved after + download. By default will go in the packer cache, with a hash of the + original filename as its name. + - `iso_urls` (array of strings) - Multiple URLs for the ISO to download. Packer will try these in order. If anything goes wrong attempting to download or while downloading a single URL, it will move on to the next. All diff --git a/website/source/docs/builders/vmware-iso.html.markdown b/website/source/docs/builders/vmware-iso.html.markdown index 594d77cee..e2140b5d7 100644 --- a/website/source/docs/builders/vmware-iso.html.markdown +++ b/website/source/docs/builders/vmware-iso.html.markdown @@ -148,6 +148,10 @@ builder. to force the HTTP server to be on one port, make this minimum and maximum port the same. By default the values are 8000 and 9000, respectively. +- `iso_target_path` (string) - The path where the iso should be saved after + download. By default will go in the packer cache, with a hash of the + original filename as its name. + - `iso_urls` (array of strings) - Multiple URLs for the ISO to download. Packer will try these in order. If anything goes wrong attempting to download or while downloading a single URL, it will move on to the next. All