From 20e8481a7c9d6115490a95aa16164a716fd0c04f Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Thu, 2 Apr 2020 13:50:11 -0400 Subject: [PATCH] add new generated partials after rebase --- .../openstack/ImageConfig-not-required.mdx | 4 +++ .../common/DriverConfig-not-required.mdx | 3 +++ .../vsphere/clone/Config-not-required.mdx | 3 ++- .../common/ExportConfig-not-required.mdx | 25 +++++++++++++++++++ .../builder/vsphere/common/ExportConfig.mdx | 21 ++++++++++++++++ .../common/OutputConfig-not-required.mdx | 10 ++++++++ .../vsphere/iso/Config-not-required.mdx | 3 +++ 7 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 website/pages/partials/builder/vsphere/common/ExportConfig-not-required.mdx create mode 100644 website/pages/partials/builder/vsphere/common/ExportConfig.mdx create mode 100644 website/pages/partials/builder/vsphere/common/OutputConfig-not-required.mdx diff --git a/website/pages/partials/builder/openstack/ImageConfig-not-required.mdx b/website/pages/partials/builder/openstack/ImageConfig-not-required.mdx index 8c962fa1f..90fe512ec 100644 --- a/website/pages/partials/builder/openstack/ImageConfig-not-required.mdx +++ b/website/pages/partials/builder/openstack/ImageConfig-not-required.mdx @@ -8,6 +8,10 @@ usually a project (also called the "tenant") with whom the image is shared. +- `image_auto_accept_members` (bool) - When true, perform the image accept so the members can see the image in their + project. This requires a user with priveleges both in the build project and + in the members provided. Defaults to false. + - `image_disk_format` (string) - Disk format of the resulting image. This option works if use_blockstorage_volume is true. diff --git a/website/pages/partials/builder/vmware/common/DriverConfig-not-required.mdx b/website/pages/partials/builder/vmware/common/DriverConfig-not-required.mdx index 65e403370..c120700a2 100644 --- a/website/pages/partials/builder/vmware/common/DriverConfig-not-required.mdx +++ b/website/pages/partials/builder/vmware/common/DriverConfig-not-required.mdx @@ -1,5 +1,8 @@ +- `cleanup_remote_cache` (bool) - When set to true, Packer will cleanup the cache folder where the ISO file is stored during the build on the remote machine. + By default, this is set to false. + - `fusion_app_path` (string) - Path to "VMware Fusion.app". By default this is /Applications/VMware Fusion.app but this setting allows you to customize this. diff --git a/website/pages/partials/builder/vsphere/clone/Config-not-required.mdx b/website/pages/partials/builder/vsphere/clone/Config-not-required.mdx index 479da57e2..98fbd4276 100644 --- a/website/pages/partials/builder/vsphere/clone/Config-not-required.mdx +++ b/website/pages/partials/builder/vsphere/clone/Config-not-required.mdx @@ -4,4 +4,5 @@ for linked clones. Defaults to `false`. - `convert_to_template` (bool) - Convert VM to a template. Defaults to `false`. - \ No newline at end of file + +- `export` (\*common.ExportConfig) - Export \ No newline at end of file diff --git a/website/pages/partials/builder/vsphere/common/ExportConfig-not-required.mdx b/website/pages/partials/builder/vsphere/common/ExportConfig-not-required.mdx new file mode 100644 index 000000000..ad09fc4d8 --- /dev/null +++ b/website/pages/partials/builder/vsphere/common/ExportConfig-not-required.mdx @@ -0,0 +1,25 @@ + + +- `name` (string) - name of the ovf. defaults to the name of the VM + +- `force` (bool) - overwrite ovf if it exists + +- `images` (bool) - include iso and img image files that are attached to the VM + +- `manifest` (string) - generate manifest using sha1, sha256, sha512. Defaults to 'sha256'. Use 'none' for no manifest. + +- `options` ([]string) - Advanced ovf export options. Options can include: + * mac - MAC address is exported for all ethernet devices + * uuid - UUID is exported for all virtual machines + * extraconfig - all extra configuration options are exported for a virtual machine + * nodevicesubtypes - resource subtypes for CD/DVD drives, floppy drives, and serial and parallel ports are not exported + + For example, adding the following export config option would output the mac addresses for all Ethernet devices in the ovf file: + + ```json + ... + "export": { + "options": ["mac"] + }, + ``` + \ No newline at end of file diff --git a/website/pages/partials/builder/vsphere/common/ExportConfig.mdx b/website/pages/partials/builder/vsphere/common/ExportConfig.mdx new file mode 100644 index 000000000..8415998f2 --- /dev/null +++ b/website/pages/partials/builder/vsphere/common/ExportConfig.mdx @@ -0,0 +1,21 @@ + +You may optionally export an ovf from VSphere to the instance running Packer. + +Example usage: + +```json +... + "vm_name": "example-ubuntu", +... + "export": { + "force": true, + "output_directory": "./output_vsphere" + }, +``` +The above configuration would create the following files: + +```text +./output_vsphere/example-ubuntu-disk-0.vmdk +./output_vsphere/example-ubuntu.mf +./output_vsphere/example-ubuntu.ovf +``` diff --git a/website/pages/partials/builder/vsphere/common/OutputConfig-not-required.mdx b/website/pages/partials/builder/vsphere/common/OutputConfig-not-required.mdx new file mode 100644 index 000000000..738898ba8 --- /dev/null +++ b/website/pages/partials/builder/vsphere/common/OutputConfig-not-required.mdx @@ -0,0 +1,10 @@ + + +- `output_directory` (string) - This setting specifies the directory that + artifacts from the build, such as the virtual machine files and disks, + will be output to. The path to the directory may be relative or + absolute. If relative, the path is relative to the working directory + packer is executed from. This directory must not exist or, if + created, must be empty prior to running the builder. By default this is + "output-BUILDNAME" where "BUILDNAME" is the name of the build. + \ No newline at end of file diff --git a/website/pages/partials/builder/vsphere/iso/Config-not-required.mdx b/website/pages/partials/builder/vsphere/iso/Config-not-required.mdx index a51e32583..c7f6b7fc1 100644 --- a/website/pages/partials/builder/vsphere/iso/Config-not-required.mdx +++ b/website/pages/partials/builder/vsphere/iso/Config-not-required.mdx @@ -4,4 +4,7 @@ for linked clones. Defaults to `false`. - `convert_to_template` (bool) - Convert VM to a template. Defaults to `false`. + +- `export` (\*common.ExportConfig) - Configuration for exporting VM to an ovf file. + The VM will not be exported if no [Export Configuration](#export-configuration) is specified. \ No newline at end of file