diff --git a/website/.npm-upgrade.json b/website/.npm-upgrade.json
deleted file mode 100644
index a899aa88d..000000000
--- a/website/.npm-upgrade.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "ignore": {
- "marked": {
- "versions": "0.8.2",
- "reason": "IE breaks"
- }
- }
-}
\ No newline at end of file
diff --git a/website/babel.config.js b/website/babel.config.js
deleted file mode 100644
index 3cf0d791c..000000000
--- a/website/babel.config.js
+++ /dev/null
@@ -1,4 +0,0 @@
-module.exports = {
- presets: ['next/babel'],
- plugins: ['import-glob-array'],
-}
diff --git a/website/pages/community-plugins/index.mdx b/website/content/community-plugins.mdx
similarity index 98%
rename from website/pages/community-plugins/index.mdx
rename to website/content/community-plugins.mdx
index 5d3b64d17..858ef2323 100644
--- a/website/pages/community-plugins/index.mdx
+++ b/website/content/community-plugins.mdx
@@ -1,5 +1,4 @@
---
-layout: index
page_title: Community vs HashiCorp Maintained Plugins
description: Packer maintains these core plugins.
---
diff --git a/website/pages/community-tools/index.mdx b/website/content/community-tools.mdx
similarity index 99%
rename from website/pages/community-tools/index.mdx
rename to website/content/community-tools.mdx
index 247c83d8e..ce6cc00d7 100644
--- a/website/pages/community-tools/index.mdx
+++ b/website/content/community-tools.mdx
@@ -1,7 +1,6 @@
---
-layout: index
page_title: Download Packer Community Projects
-description: |-
+description: >-
Packer has a vibrant community of contributors who have built a number of
great tools on top of Packer. There are also quite a few projects
demonstrating the power of Packer templates.
diff --git a/website/pages/docs/builders/alicloud-ecs.mdx b/website/content/docs/builders/alicloud-ecs.mdx
similarity index 99%
rename from website/pages/docs/builders/alicloud-ecs.mdx
rename to website/content/docs/builders/alicloud-ecs.mdx
index 5ac55661d..daa2d7d76 100644
--- a/website/pages/docs/builders/alicloud-ecs.mdx
+++ b/website/content/docs/builders/alicloud-ecs.mdx
@@ -2,7 +2,6 @@
description: |
The `alicloud-ecs` Packer builder plugin provide the capability to build
customized images based on an existing base images.
-layout: docs
page_title: Alicloud Image Builder
sidebar_title: Alicloud ECS
---
@@ -48,6 +47,7 @@ builder.
@include 'packer-plugin-sdk/communicator/SSH-Agent-Auth-not-required.mdx'
# Disk Devices Configuration:
+
@include 'builder/alicloud/ecs/AlicloudDiskDevice-not-required.mdx'
## Basic Example
diff --git a/website/pages/docs/builders/amazon/chroot.mdx b/website/content/docs/builders/amazon/chroot.mdx
similarity index 99%
rename from website/pages/docs/builders/amazon/chroot.mdx
rename to website/content/docs/builders/amazon/chroot.mdx
index 8f399d077..c5aca27ff 100644
--- a/website/pages/docs/builders/amazon/chroot.mdx
+++ b/website/content/docs/builders/amazon/chroot.mdx
@@ -8,7 +8,6 @@ description: >
instance storage and EBS-backed instances, storage for the root device section
in the EC2 documentation.
-layout: docs
page_title: Amazon chroot - Builders
sidebar_title: chroot
---
@@ -256,7 +255,6 @@ For debian based distributions you can setup a
file which will prevent packages installed by your provisioners from starting
services:
-
diff --git a/website/pages/docs/builders/amazon/ebs.mdx b/website/content/docs/builders/amazon/ebs.mdx
similarity index 99%
rename from website/pages/docs/builders/amazon/ebs.mdx
rename to website/content/docs/builders/amazon/ebs.mdx
index 57bda42ec..c0f018f75 100644
--- a/website/pages/docs/builders/amazon/ebs.mdx
+++ b/website/content/docs/builders/amazon/ebs.mdx
@@ -4,7 +4,6 @@ description: |
volumes for use in EC2. For more information on the difference between
EBS-backed instances and instance-store backed instances, see the storage for
the root device section in the EC2 documentation.
-layout: docs
page_title: Amazon EBS - Builders
sidebar_title: EBS
---
@@ -226,7 +225,7 @@ configuration of `launch_block_device_mappings` will expand the root volume
```json
{
"builders": [
- {
+ {
"type": "amazon-ebs",
"region": "us-east-1",
"source_ami": "ami-fce3c696",
@@ -593,7 +592,6 @@ build {
-
## Windows 2016 Sysprep Commands - For Amazon Windows AMIs Only
For Amazon Windows 2016 AMIs it is necessary to run Sysprep commands which can
@@ -627,5 +625,4 @@ provisioner "powershell" {
-
@include 'builders/aws-ssh-differentiation-table.mdx'
diff --git a/website/pages/docs/builders/amazon/ebssurrogate.mdx b/website/content/docs/builders/amazon/ebssurrogate.mdx
similarity index 99%
rename from website/pages/docs/builders/amazon/ebssurrogate.mdx
rename to website/content/docs/builders/amazon/ebssurrogate.mdx
index d78c9bd5b..3f555396e 100644
--- a/website/pages/docs/builders/amazon/ebssurrogate.mdx
+++ b/website/content/docs/builders/amazon/ebssurrogate.mdx
@@ -4,7 +4,6 @@ description: >
not
require running inside an EC2 instance.
-layout: docs
page_title: Amazon EBS Surrogate - Builders
sidebar_title: EBS Surrogate
---
diff --git a/website/pages/docs/builders/amazon/ebsvolume.mdx b/website/content/docs/builders/amazon/ebsvolume.mdx
similarity index 99%
rename from website/pages/docs/builders/amazon/ebsvolume.mdx
rename to website/content/docs/builders/amazon/ebsvolume.mdx
index f0ed2e689..158649e3c 100644
--- a/website/pages/docs/builders/amazon/ebsvolume.mdx
+++ b/website/content/docs/builders/amazon/ebsvolume.mdx
@@ -2,7 +2,6 @@
description: |
The amazon-ebsvolume Packer builder is like the EBS builder, but is
intended to create EBS volumes rather than a machine image.
-layout: docs
page_title: Amazon EBS Volume - Builders
sidebar_title: EBS Volume
---
diff --git a/website/pages/docs/builders/amazon/index.mdx b/website/content/docs/builders/amazon/index.mdx
similarity index 99%
rename from website/pages/docs/builders/amazon/index.mdx
rename to website/content/docs/builders/amazon/index.mdx
index f35f1dbd4..68459ecc6 100644
--- a/website/pages/docs/builders/amazon/index.mdx
+++ b/website/content/docs/builders/amazon/index.mdx
@@ -2,7 +2,6 @@
description: |
Packer is able to create Amazon AMIs. To achieve this, Packer comes with
multiple builders depending on the strategy you want to use to build the AMI.
-layout: docs
page_title: Amazon AMI - Builders
sidebar_title: Amazon EC2
---
@@ -161,7 +160,6 @@ source "amazon-ebs" "basic-example" {
-
### IAM Task or Instance Role
Finally, Packer will use credentials provided by the task's or instance's IAM
diff --git a/website/pages/docs/builders/amazon/instance.mdx b/website/content/docs/builders/amazon/instance.mdx
similarity index 99%
rename from website/pages/docs/builders/amazon/instance.mdx
rename to website/content/docs/builders/amazon/instance.mdx
index 44441afff..1474a4f59 100644
--- a/website/pages/docs/builders/amazon/instance.mdx
+++ b/website/content/docs/builders/amazon/instance.mdx
@@ -8,7 +8,6 @@ description: >
root
device section in the EC2 documentation.
-layout: docs
page_title: Amazon instance-store - Builders
sidebar_title: Instance
---
diff --git a/website/pages/docs/builders/azure/arm.mdx b/website/content/docs/builders/azure/arm.mdx
similarity index 99%
rename from website/pages/docs/builders/azure/arm.mdx
rename to website/content/docs/builders/azure/arm.mdx
index 8fd1f0704..10f7afbfe 100644
--- a/website/pages/docs/builders/azure/arm.mdx
+++ b/website/content/docs/builders/azure/arm.mdx
@@ -1,6 +1,5 @@
---
description: Packer supports building VHDs in Azure Resource manager.
-layout: docs
page_title: Azure arm - Builders
sidebar_title: ARM
---
diff --git a/website/pages/docs/builders/azure/chroot.mdx b/website/content/docs/builders/azure/chroot.mdx
similarity index 99%
rename from website/pages/docs/builders/azure/chroot.mdx
rename to website/content/docs/builders/azure/chroot.mdx
index 4e80ce2b9..f72861b9f 100644
--- a/website/pages/docs/builders/azure/chroot.mdx
+++ b/website/content/docs/builders/azure/chroot.mdx
@@ -4,7 +4,6 @@ description: >
leveraging
a VM in Azure.
-layout: docs
page_title: Azure chroot - Builders
sidebar_title: chroot
---
diff --git a/website/pages/docs/builders/azure/index.mdx b/website/content/docs/builders/azure/index.mdx
similarity index 99%
rename from website/pages/docs/builders/azure/index.mdx
rename to website/content/docs/builders/azure/index.mdx
index 50b62be43..a1b3c0254 100644
--- a/website/pages/docs/builders/azure/index.mdx
+++ b/website/content/docs/builders/azure/index.mdx
@@ -4,7 +4,6 @@ description: >
multiple builders depending on the strategy you want to use to build the
images.
-layout: docs
page_title: Azure images - Builders
sidebar_title: Azure
---
@@ -111,6 +110,7 @@ This method will skip all other options provided and only use the credentials th
Works with both normal user (`az login`) as well as service principal (`az login --service-principal --username APP_ID --password PASSWORD --tenant TENANT_ID`).
To enable az cli authentication, use the following:
+
- `"use_azure_cli_auth": true`
This mode will use the `tenant_id` and `subscription_id` from the current active az session which can be found by running: `az account show`
diff --git a/website/pages/docs/builders/cloudstack.mdx b/website/content/docs/builders/cloudstack.mdx
similarity index 99%
rename from website/pages/docs/builders/cloudstack.mdx
rename to website/content/docs/builders/cloudstack.mdx
index 18c8e2d40..0aee5b58e 100644
--- a/website/pages/docs/builders/cloudstack.mdx
+++ b/website/content/docs/builders/cloudstack.mdx
@@ -4,7 +4,6 @@ description: |
CloudStack. The builder takes either an ISO or an existing template as it's
source, runs any provisioning necessary on the instance after launching it and
then creates a new template from that instance.
-layout: docs
page_title: CloudStack - Builders
sidebar_title: CloudStack
---
diff --git a/website/pages/docs/builders/community-supported.mdx b/website/content/docs/builders/community-supported.mdx
similarity index 97%
rename from website/pages/docs/builders/community-supported.mdx
rename to website/content/docs/builders/community-supported.mdx
index 743bcde2a..8f9fc26e3 100644
--- a/website/pages/docs/builders/community-supported.mdx
+++ b/website/content/docs/builders/community-supported.mdx
@@ -2,7 +2,6 @@
description: |
Community-maintained builders are not part of the core Packer binary, but
can run alongside Packer with minimal extra effort.
-layout: docs
page_title: Community - Builders
sidebar_title: Community-Supported
---
diff --git a/website/pages/docs/builders/custom.mdx b/website/content/docs/builders/custom.mdx
similarity index 97%
rename from website/pages/docs/builders/custom.mdx
rename to website/content/docs/builders/custom.mdx
index 520cf577d..b69550783 100644
--- a/website/pages/docs/builders/custom.mdx
+++ b/website/content/docs/builders/custom.mdx
@@ -3,7 +3,6 @@ description: |
Packer is extensible, allowing you to write new builders without having to
modify the core source code of Packer itself. Documentation for creating new
builders is covered in the custom builders page of the Packer plugin section.
-layout: docs
page_title: Custom - Builders
sidebar_title: Custom
---
diff --git a/website/pages/docs/builders/digitalocean.mdx b/website/content/docs/builders/digitalocean.mdx
similarity index 99%
rename from website/pages/docs/builders/digitalocean.mdx
rename to website/content/docs/builders/digitalocean.mdx
index 22d49002e..5df946c87 100644
--- a/website/pages/docs/builders/digitalocean.mdx
+++ b/website/content/docs/builders/digitalocean.mdx
@@ -10,7 +10,6 @@ description: >
reusable image can then be used as the foundation of new servers that are
launched within DigitalOcean.
-layout: docs
page_title: DigitalOcean - Builders
sidebar_title: DigitalOcean
---
diff --git a/website/pages/docs/builders/docker.mdx b/website/content/docs/builders/docker.mdx
similarity index 99%
rename from website/pages/docs/builders/docker.mdx
rename to website/content/docs/builders/docker.mdx
index f62cae8da..8b528e08a 100644
--- a/website/pages/docs/builders/docker.mdx
+++ b/website/content/docs/builders/docker.mdx
@@ -6,7 +6,6 @@ description: >
a Docker container, runs provisioners within this container, then exports the
container for reuse or commits the image.
-layout: docs
page_title: Docker - Builders
sidebar_title: Docker
---
@@ -223,7 +222,7 @@ for JSON and [contextual variables](/docs/from-1.5/contextual-variables) for HCL
The generated variable available for this builder is:
- `ImageSha256` - When committing a container to an image, this will give the image SHA256. Because the image is not available at the provision step,
-this variable is only available for post-processors.
+ this variable is only available for post-processors.
## Using the Artifact: Export
diff --git a/website/pages/docs/builders/file.mdx b/website/content/docs/builders/file.mdx
similarity index 99%
rename from website/pages/docs/builders/file.mdx
rename to website/content/docs/builders/file.mdx
index 32475e09a..069c0fc1c 100644
--- a/website/pages/docs/builders/file.mdx
+++ b/website/content/docs/builders/file.mdx
@@ -3,7 +3,6 @@ description: |
The file Packer builder is not really a builder, it just creates an artifact
from a file. It can be used to debug post-processors without incurring high
wait times.
-layout: docs
page_title: File - Builders
sidebar_title: File
---
diff --git a/website/pages/docs/builders/googlecompute.mdx b/website/content/docs/builders/googlecompute.mdx
similarity index 98%
rename from website/pages/docs/builders/googlecompute.mdx
rename to website/content/docs/builders/googlecompute.mdx
index f2c2946c7..2140175d6 100644
--- a/website/pages/docs/builders/googlecompute.mdx
+++ b/website/content/docs/builders/googlecompute.mdx
@@ -2,7 +2,6 @@
description: |
The googlecompute Packer builder is able to create images for use with Google
Cloud Compute Engine (GCE) based on existing images.
-layout: docs
page_title: Google Compute - Builders
sidebar_title: Google Cloud
---
@@ -40,7 +39,6 @@ You don't need to specify an _account file_ if you are using this method. Your u
must have at least `Compute Instance Admin (v1)` & `Service Account User` roles
to use Packer succesfully.
-
### Running on Google Cloud
If you run the `googlecompute` Packer builder on GCE or GKE, you can
@@ -50,9 +48,10 @@ Packer to authenticate to Google Cloud without having to bake in a separate
credential/authentication file.
It is recommended that you create a custom service account for Packer and assign it
- `Compute Instance Admin (v1)` & `Service Account User` roles.
+`Compute Instance Admin (v1)` & `Service Account User` roles.
For `gcloud`, you can run the following commands:
+
```shell-session
$ gcloud iam service-accounts create packer \
--project YOUR_GCP_PROJECT \
@@ -98,7 +97,7 @@ straightforwarded, it is documented here.
5. Generate a JSON Key and save it in a secure location.
-5. Set the Environment Variable `GOOGLE_APPLICATION_CREDENTIALS` to point to the path of the service account key.
+6. Set the Environment Variable `GOOGLE_APPLICATION_CREDENTIALS` to point to the path of the service account key.
### Precedence of Authentication Methods
@@ -401,7 +400,6 @@ The GCS location must be writeable by the service account of the instance that P
@include 'packer-plugin-sdk/communicator/SSHTemporaryKeyPair-not-required.mdx'
-
### Gotchas
CentOS and recent Debian images have root ssh access disabled by default. Set
diff --git a/website/pages/docs/builders/hetzner-cloud.mdx b/website/content/docs/builders/hetzner-cloud.mdx
similarity index 98%
rename from website/pages/docs/builders/hetzner-cloud.mdx
rename to website/content/docs/builders/hetzner-cloud.mdx
index 86626e681..5600e08da 100644
--- a/website/pages/docs/builders/hetzner-cloud.mdx
+++ b/website/content/docs/builders/hetzner-cloud.mdx
@@ -5,7 +5,6 @@ description: |
necessary on the image after launching it, then snapshots it into a reusable
image. This reusable image can then be used as the foundation of new servers
that are launched within the Hetzner Cloud.
-layout: docs
page_title: Hetzner Cloud - Builders
sidebar_title: Hetzner Cloud
---
@@ -58,9 +57,7 @@ builder.
```json
{
"image_filter": {
- "with_selector": [
- "name==my-image"
- ],
+ "with_selector": ["name==my-image"],
"most_recent": true
}
}
diff --git a/website/pages/docs/builders/hyperone.mdx b/website/content/docs/builders/hyperone.mdx
similarity index 99%
rename from website/pages/docs/builders/hyperone.mdx
rename to website/content/docs/builders/hyperone.mdx
index c2dfdfc94..b9d09ef96 100644
--- a/website/pages/docs/builders/hyperone.mdx
+++ b/website/content/docs/builders/hyperone.mdx
@@ -3,7 +3,6 @@ description: |
HyperOne Packer builder creates new images on the HyperOne platform.
The builder takes a source image, runs any provisioning necessary on
the image after launching it, then creates a reusable image.
-layout: docs
page_title: HyperOne - Builders
sidebar_title: HyperOne
---
diff --git a/website/pages/docs/builders/hyperv/index.mdx b/website/content/docs/builders/hyperv/index.mdx
similarity index 98%
rename from website/pages/docs/builders/hyperv/index.mdx
rename to website/content/docs/builders/hyperv/index.mdx
index 8c97d6cc7..ea9817d71 100644
--- a/website/pages/docs/builders/hyperv/index.mdx
+++ b/website/content/docs/builders/hyperv/index.mdx
@@ -2,7 +2,6 @@
description: |
The Hyper-V Packer builder is able to create Hyper-V virtual machines and
export them.
-layout: docs
page_title: Hyper-V - Builders
sidebar_title: Hyper-V
---
diff --git a/website/pages/docs/builders/hyperv/iso.mdx b/website/content/docs/builders/hyperv/iso.mdx
similarity index 99%
rename from website/pages/docs/builders/hyperv/iso.mdx
rename to website/content/docs/builders/hyperv/iso.mdx
index 7f222474d..8384df0db 100644
--- a/website/pages/docs/builders/hyperv/iso.mdx
+++ b/website/content/docs/builders/hyperv/iso.mdx
@@ -4,7 +4,6 @@ modeline: |
description: |
The Hyper-V Packer builder is able to create Hyper-V virtual machines and
export them.
-layout: docs
page_title: Hyper-V ISO - Builders
sidebar_title: ISO
---
diff --git a/website/pages/docs/builders/hyperv/vmcx.mdx b/website/content/docs/builders/hyperv/vmcx.mdx
similarity index 99%
rename from website/pages/docs/builders/hyperv/vmcx.mdx
rename to website/content/docs/builders/hyperv/vmcx.mdx
index c5817932d..54ce4b114 100644
--- a/website/pages/docs/builders/hyperv/vmcx.mdx
+++ b/website/content/docs/builders/hyperv/vmcx.mdx
@@ -4,7 +4,6 @@ modeline: |
description: >-
The Hyper-V Packer builder is able to clone an existing Hyper-V virtual
machine and export them.
-layout: docs
page_title: Hyper-V Builder (from a vmcx)
sidebar_title: VMCX
---
diff --git a/website/pages/docs/builders/index.mdx b/website/content/docs/builders/index.mdx
similarity index 97%
rename from website/pages/docs/builders/index.mdx
rename to website/content/docs/builders/index.mdx
index efa668869..385c540d5 100644
--- a/website/pages/docs/builders/index.mdx
+++ b/website/content/docs/builders/index.mdx
@@ -2,7 +2,6 @@
description: |
Builders are responsible for creating machines and generating images from them
for various platforms.
-layout: docs
page_title: Builders
sidebar_title: Builders
---
diff --git a/website/pages/docs/builders/jdcloud.mdx b/website/content/docs/builders/jdcloud.mdx
similarity index 99%
rename from website/pages/docs/builders/jdcloud.mdx
rename to website/content/docs/builders/jdcloud.mdx
index 1a408b34f..1102483ea 100644
--- a/website/pages/docs/builders/jdcloud.mdx
+++ b/website/content/docs/builders/jdcloud.mdx
@@ -2,7 +2,6 @@
description: |
The `jdcloud` Packer builder helps you to build instance images
based on an existing image
-layout: docs
page_title: JDCloud Image Builder
sidebar_title: JDCloud
---
@@ -37,6 +36,7 @@ are given below:
- `subnet_id` (string) - An instance is supposed to exists in an subnet, if not specified , we will create new one for you
In addition to the above configuration options, a communicator can be configured for this builder:
+
### Communicator Configuration
#### Optional:
diff --git a/website/pages/docs/builders/linode.mdx b/website/content/docs/builders/linode.mdx
similarity index 99%
rename from website/pages/docs/builders/linode.mdx
rename to website/content/docs/builders/linode.mdx
index 43f9146f7..15023fe2c 100644
--- a/website/pages/docs/builders/linode.mdx
+++ b/website/content/docs/builders/linode.mdx
@@ -10,7 +10,6 @@ description: >
image can then be used as the foundation of new servers that are launched
within all Linode regions.
-layout: docs
page_title: Linode - Builders
sidebar_title: Linode
---
diff --git a/website/pages/docs/builders/lxc.mdx b/website/content/docs/builders/lxc.mdx
similarity index 99%
rename from website/pages/docs/builders/lxc.mdx
rename to website/content/docs/builders/lxc.mdx
index 83302d3ae..ac3e0ef97 100644
--- a/website/pages/docs/builders/lxc.mdx
+++ b/website/content/docs/builders/lxc.mdx
@@ -3,7 +3,6 @@ description: |
The `lxc` Packer builder builds containers for lxc1. The builder starts an LXC
container, runs provisioners within this container, then exports the container
as a tar.gz of the root file system.
-layout: docs
page_title: LXC - Builders
sidebar_title: LXC
---
diff --git a/website/pages/docs/builders/lxd.mdx b/website/content/docs/builders/lxd.mdx
similarity index 99%
rename from website/pages/docs/builders/lxd.mdx
rename to website/content/docs/builders/lxd.mdx
index 1ddfe5b8e..4adf9a8d9 100644
--- a/website/pages/docs/builders/lxd.mdx
+++ b/website/content/docs/builders/lxd.mdx
@@ -6,7 +6,6 @@ description: >
as
an LXD image.
-layout: docs
page_title: LXD - Builders
sidebar_title: LXD
---
diff --git a/website/pages/docs/builders/ncloud.mdx b/website/content/docs/builders/ncloud.mdx
similarity index 99%
rename from website/pages/docs/builders/ncloud.mdx
rename to website/content/docs/builders/ncloud.mdx
index 86a1eff3a..6fafabd04 100644
--- a/website/pages/docs/builders/ncloud.mdx
+++ b/website/content/docs/builders/ncloud.mdx
@@ -2,7 +2,6 @@
description: |
The ncloud builder allows you to create server images using the NAVER Cloud
Platform.
-layout: docs
page_title: Naver Cloud Platform - Builders
sidebar_title: NAVER Cloud
---
diff --git a/website/pages/docs/builders/null.mdx b/website/content/docs/builders/null.mdx
similarity index 98%
rename from website/pages/docs/builders/null.mdx
rename to website/content/docs/builders/null.mdx
index 376b12f8f..52acdb774 100644
--- a/website/pages/docs/builders/null.mdx
+++ b/website/content/docs/builders/null.mdx
@@ -4,7 +4,6 @@ description: |
connection and runs the provisioners. It can be used to debug provisioners
without incurring high wait times. It does not create any kind of image or
artifact.
-layout: docs
page_title: Null - Builders
sidebar_title: 'Null'
---
diff --git a/website/pages/docs/builders/oneandone.mdx b/website/content/docs/builders/oneandone.mdx
similarity index 99%
rename from website/pages/docs/builders/oneandone.mdx
rename to website/content/docs/builders/oneandone.mdx
index 49effb90f..e94d9c91d 100644
--- a/website/pages/docs/builders/oneandone.mdx
+++ b/website/content/docs/builders/oneandone.mdx
@@ -1,6 +1,5 @@
---
description: The 1&1 builder is able to create images for 1&1 cloud.
-layout: docs
page_title: 1&1 - Builders
sidebar_title: 1&1
---
diff --git a/website/pages/docs/builders/openstack.mdx b/website/content/docs/builders/openstack.mdx
similarity index 99%
rename from website/pages/docs/builders/openstack.mdx
rename to website/content/docs/builders/openstack.mdx
index 71a5f12da..ad7c527b1 100644
--- a/website/pages/docs/builders/openstack.mdx
+++ b/website/content/docs/builders/openstack.mdx
@@ -10,7 +10,6 @@ description: >
image can then be used as the foundation of new servers that are launched
within OpenStack.
-layout: docs
page_title: OpenStack - Builders
sidebar_title: OpenStack
---
diff --git a/website/pages/docs/builders/oracle/classic.mdx b/website/content/docs/builders/oracle/classic.mdx
similarity index 99%
rename from website/pages/docs/builders/oracle/classic.mdx
rename to website/content/docs/builders/oracle/classic.mdx
index 57ceba05b..308486296 100644
--- a/website/pages/docs/builders/oracle/classic.mdx
+++ b/website/content/docs/builders/oracle/classic.mdx
@@ -2,7 +2,6 @@
description: |
The oracle-classic builder is able to create new custom images for use with
Oracle Cloud Infrastructure Classic Compute.
-layout: docs
page_title: Oracle Cloud Infrastructure Classic - Builders
sidebar_title: Oracle Classic
---
@@ -183,7 +182,6 @@ If this is set, a few more options become available.
variables: `{{ .Username }}`, `{{ .Password }}`, `{{ .AccountID }}`,
`{{ .ImageFile }}`, and `{{ .SegmentPath }}`.
-
### Communicator Configuration
The `builder_communicator` has the following options:
diff --git a/website/pages/docs/builders/oracle/index.mdx b/website/content/docs/builders/oracle/index.mdx
similarity index 98%
rename from website/pages/docs/builders/oracle/index.mdx
rename to website/content/docs/builders/oracle/index.mdx
index 33635db83..109f1cc85 100644
--- a/website/pages/docs/builders/oracle/index.mdx
+++ b/website/content/docs/builders/oracle/index.mdx
@@ -1,6 +1,5 @@
---
description: Packer is able to create custom images using Oracle Cloud Infrastructure.
-layout: docs
page_title: Oracle - Builders
sidebar_title: Oracle
---
diff --git a/website/pages/docs/builders/oracle/oci.mdx b/website/content/docs/builders/oracle/oci.mdx
similarity index 91%
rename from website/pages/docs/builders/oracle/oci.mdx
rename to website/content/docs/builders/oracle/oci.mdx
index a291d52d0..1b9b7dc87 100644
--- a/website/pages/docs/builders/oracle/oci.mdx
+++ b/website/content/docs/builders/oracle/oci.mdx
@@ -2,7 +2,6 @@
description: |
The oracle-oci builder is able to create new custom images for use with Oracle
Cloud Infrastructure (OCI).
-layout: docs
page_title: Oracle OCI - Builders
sidebar_title: Oracle OCI
---
@@ -74,17 +73,19 @@ can also be supplied to override the typical auto-generated key:
the user can supply search criteria, and Packer will use the the most recent image that meets
all search criteria. If no image meets all search criteria, Packer returns an error. The
following fields, if specified, must match exactly:
- - `compartment_id` - The OCID of the compartment to find the image. If not specified, will use `compartment_ocid`
- used for the instance.
- - `display_name` - The full name of the image, e.g., `Oracle-Linux-7.8-2020.05.26-0`
- - `operating_system` - The operating system used on the image, e.g., `Oracle Linux`
- - `operating_system_version` - The version of the operating system on the image, e.g., `7.8`
- - `shape` - A shape that the image supports. If not specified, will use `shape` used for the instance
+
+ - `compartment_id` - The OCID of the compartment to find the image. If not specified, will use `compartment_ocid`
+ used for the instance.
+ - `display_name` - The full name of the image, e.g., `Oracle-Linux-7.8-2020.05.26-0`
+ - `operating_system` - The operating system used on the image, e.g., `Oracle Linux`
+ - `operating_system_version` - The version of the operating system on the image, e.g., `7.8`
+ - `shape` - A shape that the image supports. If not specified, will use `shape` used for the instance
Additionally, the following field takes a regular expression:
- - `display_name_search` - a regular expression for the display name, e.g., `^Oracle-Linux`. This
- is ignored if `display_name` is also specified under `base_image_filter`. If no images match
- the expression, Packer returns an error. If multiple images match, the most recent is used.
+
+ - `display_name_search` - a regular expression for the display name, e.g., `^Oracle-Linux`. This
+ is ignored if `display_name` is also specified under `base_image_filter`. If no images match
+ the expression, Packer returns an error. If multiple images match, the most recent is used.
`base_image_filter` is ignored if `base_image_ocid` is also specified.
@@ -288,6 +289,7 @@ Build 'oracle-oci' finished.
```
## Assigning Tags and Network Security Groups to the Instance
+
Tags are useful for breaking down costs and usage. The keys `instance_tags`
and `instance_defined_tags` are assigned to the temporary instance,
whereas `tags` and `defined_tags` are assigned to the resulting image.
@@ -297,19 +299,20 @@ to the instance. Depending on network (VCN and subnet) setup, this may be
required for Packer to successfully SSH into the instance. NSGs are a property
of the virtual network interface card (VNIC) attached to the instance, and
are listed in `nsg_ids` under `create_vnic_details`.
+
```json
{
- "name": "base-image-{{isotime \"20060102030405\"}}",
- "type": "oracle-oci",
+ "name": "base-image-{{isotime \"20060102030405\"}}",
+ "type": "oracle-oci",
"availability_domain": "aaaa:PHX-AD-1",
- "base_image_ocid": "ocid1.image.oc1.iad.aaa",
- "compartment_ocid": "ocid1.compartment.oc1..aaa",
- "image_name": "my-image-{{isotime \"20060102030405\"}}",
- "shape": "VM.Standard.E2.1",
- "subnet_ocid": "ocid1.subnet.oc1.iad.aaa",
- "use_private_ip": "true",
- "instance_name": "packer-build-{{isotime \"20060102030405\"}}",
- "instance_tags": { "testing": "yes" },
+ "base_image_ocid": "ocid1.image.oc1.iad.aaa",
+ "compartment_ocid": "ocid1.compartment.oc1..aaa",
+ "image_name": "my-image-{{isotime \"20060102030405\"}}",
+ "shape": "VM.Standard.E2.1",
+ "subnet_ocid": "ocid1.subnet.oc1.iad.aaa",
+ "use_private_ip": "true",
+ "instance_name": "packer-build-{{isotime \"20060102030405\"}}",
+ "instance_tags": { "testing": "yes" },
"instance_defined_tags": {
"Operations": {
"Team": "CostCenter",
@@ -322,16 +325,18 @@ are listed in `nsg_ids` under `create_vnic_details`.
"nsg_ids": ["ocid1.networksecuritygroup.oc1.iad.aaa"]
},
"tags": {
- "CreationDate": "{{isotime \"20060102 03:04:05 MST\"}}"
+ "CreationDate": "{{isotime \"20060102 03:04:05 MST\"}}"
}
}
```
## Base Image Filter Example
+
Note that `base_image_filter` gets passed as a string, then interpreted as a
regular expression. This means that all back-slashes must be doubled, e.g.,
use `\\w+` to mean `\w+`, and `\\\\` to create the regular expression equivalent
of `\\` (which will search for a literal back-slash).
+
```json
{
"name": "base-image-{{isotime \"20060102030405\"}}",
@@ -344,3 +349,4 @@ of `\\` (which will search for a literal back-slash).
}
...
}
+```
diff --git a/website/pages/docs/builders/outscale/bsu.mdx b/website/content/docs/builders/outscale/bsu.mdx
similarity index 99%
rename from website/pages/docs/builders/outscale/bsu.mdx
rename to website/content/docs/builders/outscale/bsu.mdx
index 7036d011b..17c2cd90d 100644
--- a/website/pages/docs/builders/outscale/bsu.mdx
+++ b/website/content/docs/builders/outscale/bsu.mdx
@@ -6,7 +6,6 @@ description: >
BSU-backed VMs and VM-store backed VMs, see the storage for
the root device section in the Outscale documentation.
-layout: docs
page_title: Outscale BSU - Builders
sidebar_title: BSU
---
diff --git a/website/pages/docs/builders/outscale/bsusurrogate.mdx b/website/content/docs/builders/outscale/bsusurrogate.mdx
similarity index 99%
rename from website/pages/docs/builders/outscale/bsusurrogate.mdx
rename to website/content/docs/builders/outscale/bsusurrogate.mdx
index 74c213798..838fb43c3 100644
--- a/website/pages/docs/builders/outscale/bsusurrogate.mdx
+++ b/website/content/docs/builders/outscale/bsusurrogate.mdx
@@ -2,7 +2,6 @@
description: |
The osc-bsusurrogate Packer builder is like the chroot builder, but does not
require running inside an Outscale virtual machine.
-layout: docs
page_title: Outscale BSU Surrogate - Builders
sidebar_title: BSU Surrogate
---
diff --git a/website/pages/docs/builders/outscale/bsuvolume.mdx b/website/content/docs/builders/outscale/bsuvolume.mdx
similarity index 99%
rename from website/pages/docs/builders/outscale/bsuvolume.mdx
rename to website/content/docs/builders/outscale/bsuvolume.mdx
index 5f094e083..32ea11280 100644
--- a/website/pages/docs/builders/outscale/bsuvolume.mdx
+++ b/website/content/docs/builders/outscale/bsuvolume.mdx
@@ -2,7 +2,6 @@
description: |
The osc-bsuvolume Packer builder is like the BSU builder, but is intended to
create BSU volumes rather than a machine image.
-layout: docs
page_title: Outscale BSU Volume - Builders
sidebar_title: BSU Volume
---
diff --git a/website/pages/docs/builders/outscale/chroot.mdx b/website/content/docs/builders/outscale/chroot.mdx
similarity index 99%
rename from website/pages/docs/builders/outscale/chroot.mdx
rename to website/content/docs/builders/outscale/chroot.mdx
index cd857e2a5..591ba2d8c 100644
--- a/website/pages/docs/builders/outscale/chroot.mdx
+++ b/website/content/docs/builders/outscale/chroot.mdx
@@ -8,7 +8,6 @@ description: >
instance storage and BSU-backed instances, storage for the root device section
in the Outscale documentation.
-layout: docs
page_title: Outscale chroot - Builders
sidebar_title: chroot
---
@@ -331,8 +330,6 @@ services:
"chmod a+x /usr/sbin/policy-rc.d"
]
},
-// ...
-
{
"type": "shell",
"inline": ["rm -f /usr/sbin/policy-rc.d"]
diff --git a/website/pages/docs/builders/outscale/index.mdx b/website/content/docs/builders/outscale/index.mdx
similarity index 99%
rename from website/pages/docs/builders/outscale/index.mdx
rename to website/content/docs/builders/outscale/index.mdx
index 365d33c34..d1b5d0058 100644
--- a/website/pages/docs/builders/outscale/index.mdx
+++ b/website/content/docs/builders/outscale/index.mdx
@@ -4,7 +4,6 @@ description: >
Packer comes with
multiple builders depending on the strategy you want to use to build the OMI.
-layout: docs
page_title: Outscale OMI - Builders
sidebar_title: Outscale
---
@@ -85,7 +84,6 @@ This adds an additional layer of security, especially desirable on SecNumCloud c
You can set this certificates either by environment variables or by the static credentials inside the packer configuration file.
-
#### Environment variables
```bash
@@ -100,11 +98,10 @@ export OUTSCALE_X509KEY="the/path/to/your/x509key"
"x509_cert_path": "the/path/to/your/x509cert",
"x509_key_path": "the/path/to/your/x509key",
"region": "cloudgouv-eu-west-1",
- "type": "osc-bsu",
+ "type": "osc-bsu"
}
```
-
### Checking that system time is current
Outscale uses the current time as part of the [request signing
diff --git a/website/pages/docs/builders/parallels/index.mdx b/website/content/docs/builders/parallels/index.mdx
similarity index 99%
rename from website/pages/docs/builders/parallels/index.mdx
rename to website/content/docs/builders/parallels/index.mdx
index 8531fa84f..c3f57acef 100644
--- a/website/pages/docs/builders/parallels/index.mdx
+++ b/website/content/docs/builders/parallels/index.mdx
@@ -2,7 +2,6 @@
description: |
The Parallels Packer builder is able to create Parallels Desktop for Mac
virtual machines and export them in the PVM format.
-layout: docs
page_title: Parallels - Builders
sidebar_title: Parallels
---
diff --git a/website/pages/docs/builders/parallels/iso.mdx b/website/content/docs/builders/parallels/iso.mdx
similarity index 99%
rename from website/pages/docs/builders/parallels/iso.mdx
rename to website/content/docs/builders/parallels/iso.mdx
index 4c340f870..79d0eae09 100644
--- a/website/pages/docs/builders/parallels/iso.mdx
+++ b/website/content/docs/builders/parallels/iso.mdx
@@ -5,7 +5,6 @@ description: |
The Parallels Packer builder is able to create Parallels Desktop for Mac
virtual machines and export them in the PVM format, starting from an ISO
image.
-layout: docs
page_title: Parallels ISO - Builders
sidebar_title: ISO
---
diff --git a/website/pages/docs/builders/parallels/pvm.mdx b/website/content/docs/builders/parallels/pvm.mdx
similarity index 99%
rename from website/pages/docs/builders/parallels/pvm.mdx
rename to website/content/docs/builders/parallels/pvm.mdx
index 0a1d76f00..3cc967fff 100644
--- a/website/pages/docs/builders/parallels/pvm.mdx
+++ b/website/content/docs/builders/parallels/pvm.mdx
@@ -5,7 +5,6 @@ description: |
This Parallels builder is able to create Parallels Desktop for Mac virtual
machines and export them in the PVM format, starting from an existing PVM
(exported virtual machine image).
-layout: docs
page_title: Parallels PVM - Builders
sidebar_title: PVM
---
diff --git a/website/pages/docs/builders/profitbricks.mdx b/website/content/docs/builders/profitbricks.mdx
similarity index 99%
rename from website/pages/docs/builders/profitbricks.mdx
rename to website/content/docs/builders/profitbricks.mdx
index ddb50aef3..ea4f1715a 100644
--- a/website/pages/docs/builders/profitbricks.mdx
+++ b/website/content/docs/builders/profitbricks.mdx
@@ -1,6 +1,5 @@
---
description: The ProfitBricks builder is able to create images for ProfitBricks cloud.
-layout: docs
page_title: ProfitBricks - Builders
sidebar_title: ProfitBricks
---
diff --git a/website/pages/docs/builders/proxmox/clone.mdx b/website/content/docs/builders/proxmox/clone.mdx
similarity index 98%
rename from website/pages/docs/builders/proxmox/clone.mdx
rename to website/content/docs/builders/proxmox/clone.mdx
index 892c5e739..c7f80510c 100644
--- a/website/pages/docs/builders/proxmox/clone.mdx
+++ b/website/content/docs/builders/proxmox/clone.mdx
@@ -4,7 +4,6 @@ description: |
Proxmox VE. The builder takes a cloud-init enabled virtual machine
template name, runs any provisioning necessary on the image after
launching it, then creates a virtual machine template.
-layout: docs
page_title: Proxmox Clone - Builders
sidebar_title: Clone
---
@@ -191,7 +190,7 @@ in the image's Cloud-Init settings for provisioning.
- `full_clone` (bool) - Whether to run a full or shallow clone from the base clone_vm. Defaults to `true`.
- `boot` - (string) - Override default boot order. Format example `order=virtio0;ide2;net0`.
- Prior to Proxmox 6.2-15 the format was `cdn` (c:CDROM -> d:Disk -> n:Network)
+ Prior to Proxmox 6.2-15 the format was `cdn` (c:CDROM -> d:Disk -> n:Network)
## Example: Cloud-Init enabled Debian
@@ -233,5 +232,4 @@ that there exists a Cloud-Init enabled image on the Proxmox server named
],
"description": "A template for building a base"
}
-
```
diff --git a/website/pages/docs/builders/proxmox/index.mdx b/website/content/docs/builders/proxmox/index.mdx
similarity index 88%
rename from website/pages/docs/builders/proxmox/index.mdx
rename to website/content/docs/builders/proxmox/index.mdx
index 3c907b1f9..bfc3f6862 100644
--- a/website/pages/docs/builders/proxmox/index.mdx
+++ b/website/content/docs/builders/proxmox/index.mdx
@@ -1,9 +1,7 @@
---
description: >
- The Proxmox Packer builder is able to create Cloud-Init
- virtual machine images on a Proxmox server.
-
-layout: docs
+ The Proxmox Packer builder is able to create Cloud-Init virtual machine images
+ on a Proxmox server.
page_title: Proxmox - Builders
sidebar_title: Proxmox
---
diff --git a/website/pages/docs/builders/proxmox/iso.mdx b/website/content/docs/builders/proxmox/iso.mdx
similarity index 96%
rename from website/pages/docs/builders/proxmox/iso.mdx
rename to website/content/docs/builders/proxmox/iso.mdx
index 1f261f62c..f4de5b7d6 100644
--- a/website/pages/docs/builders/proxmox/iso.mdx
+++ b/website/content/docs/builders/proxmox/iso.mdx
@@ -4,7 +4,6 @@ description: |
Proxmox VE. The builder takes an ISO source, runs any provisioning
necessary on the image after launching it, then creates a virtual machine
template.
-layout: docs
page_title: Proxmox ISO - Builders
sidebar_title: ISO
---
@@ -230,22 +229,23 @@ builder.
}
]
```
+
- `device` (string) - Bus type and bus index that the ISO will be mounted on. Can be `ideX`,
`sataX` or `scsiX`.
For `ide` the bus index ranges from 0 to 3, for `sata` form 0 to 5 and for
`scsi` from 0 to 30.
- Defaults to `ide3` since `ide2` is generelly the boot drive.
+ Defaults to `ide3` since `ide2` is generelly the boot drive.
- `iso_file` (string) - Path to the ISO file to boot from, expressed as a
- proxmox datastore path, for example
- `local:iso/Fedora-Server-dvd-x86_64-29-1.2.iso`.
- Either `iso_file` OR `iso_url` must be specifed.
+ proxmox datastore path, for example
+ `local:iso/Fedora-Server-dvd-x86_64-29-1.2.iso`.
+ Either `iso_file` OR `iso_url` must be specifed.
- `iso_url` (string) - URL to an ISO file to upload to Proxmox, and then
- boot from. Either `iso_file` OR `iso_url` must be specifed.
+ boot from. Either `iso_file` OR `iso_url` must be specifed.
- `iso_storage_pool` (string) - Proxmox storage pool onto which to upload
- the ISO file.
+ the ISO file.
- `iso_checksum` (string) - Checksum of the ISO file.
- `unmount` (bool) - If true, remove the mounted ISO from the template after finishing. Defaults to `false`.
@@ -257,7 +257,7 @@ builder.
the VMs IP from. Defaults to the first non loopback interface.
- `boot` - (string) - Override default boot order. Format example `order=virtio0;ide2;net0`.
- Prior to Proxmox 6.2-15 the format was `cdn` (c:CDROM -> d:Disk -> n:Network)
+ Prior to Proxmox 6.2-15 the format was `cdn` (c:CDROM -> d:Disk -> n:Network)
## Boot Command
diff --git a/website/pages/docs/builders/qemu.mdx b/website/content/docs/builders/qemu.mdx
similarity index 98%
rename from website/pages/docs/builders/qemu.mdx
rename to website/content/docs/builders/qemu.mdx
index 971915f58..5000af7c1 100644
--- a/website/pages/docs/builders/qemu.mdx
+++ b/website/content/docs/builders/qemu.mdx
@@ -3,7 +3,6 @@ modeline: |
vim: set ft=pandoc:
description: |
The Qemu Packer builder is able to create KVM virtual machine images.
-layout: docs
page_title: QEMU - Builders
sidebar_title: QEMU
---
@@ -217,4 +216,4 @@ the input file's format and file extension, and Packer will
perform a simple copy operation instead. You will also want to set
`"skip_compaction": true,` and `"disk_compression": false` to skip a final
image conversion at the end of the build. See
-https://bugs.launchpad.net/qemu/+bug/1776920 for more details.
\ No newline at end of file
+https://bugs.launchpad.net/qemu/+bug/1776920 for more details.
diff --git a/website/pages/docs/builders/scaleway.mdx b/website/content/docs/builders/scaleway.mdx
similarity index 99%
rename from website/pages/docs/builders/scaleway.mdx
rename to website/content/docs/builders/scaleway.mdx
index bb4aa8f9c..2dd3e64f0 100644
--- a/website/pages/docs/builders/scaleway.mdx
+++ b/website/content/docs/builders/scaleway.mdx
@@ -10,7 +10,6 @@ description: >
new
servers that are launched within Scaleway.
-layout: docs
page_title: Scaleway - Builders
sidebar_title: Scaleway
---
diff --git a/website/pages/docs/builders/tencentcloud-cvm.mdx b/website/content/docs/builders/tencentcloud-cvm.mdx
similarity index 99%
rename from website/pages/docs/builders/tencentcloud-cvm.mdx
rename to website/content/docs/builders/tencentcloud-cvm.mdx
index 052051d1c..d3d3f6117 100644
--- a/website/pages/docs/builders/tencentcloud-cvm.mdx
+++ b/website/content/docs/builders/tencentcloud-cvm.mdx
@@ -2,7 +2,6 @@
description: |
The `tencentcloud-cvm` Packer builder plugin provide the capability to build
customized images based on an existing base images.
-layout: docs
page_title: Tencentcloud Image Builder
sidebar_title: Tencent Cloud
---
diff --git a/website/pages/docs/builders/triton.mdx b/website/content/docs/builders/triton.mdx
similarity index 99%
rename from website/pages/docs/builders/triton.mdx
rename to website/content/docs/builders/triton.mdx
index b452beacf..f0d51f4aa 100644
--- a/website/pages/docs/builders/triton.mdx
+++ b/website/content/docs/builders/triton.mdx
@@ -9,7 +9,6 @@ description: >
Triton
Cloud API to create images.
-layout: docs
page_title: Triton - Builders
sidebar_title: Triton
---
diff --git a/website/pages/docs/builders/ucloud-uhost.mdx b/website/content/docs/builders/ucloud-uhost.mdx
similarity index 99%
rename from website/pages/docs/builders/ucloud-uhost.mdx
rename to website/content/docs/builders/ucloud-uhost.mdx
index 412678efc..ec67c9646 100644
--- a/website/pages/docs/builders/ucloud-uhost.mdx
+++ b/website/content/docs/builders/ucloud-uhost.mdx
@@ -2,7 +2,6 @@
description: |
The `ucloud-uhost` Packer builder plugin provides the capability to build
customized images based on an existing base image for use in UHost Instance.
-layout: docs
page_title: UCloud Image Builder
sidebar_title: UCloud
---
diff --git a/website/pages/docs/builders/vagrant.mdx b/website/content/docs/builders/vagrant.mdx
similarity index 99%
rename from website/pages/docs/builders/vagrant.mdx
rename to website/content/docs/builders/vagrant.mdx
index ef041411c..6ccf357b9 100644
--- a/website/pages/docs/builders/vagrant.mdx
+++ b/website/content/docs/builders/vagrant.mdx
@@ -2,7 +2,6 @@
description: |
The Vagrant Packer builder is able to launch Vagrant boxes and
re-package them into .box files
-layout: docs
page_title: Vagrant - Builders
sidebar_title: Vagrant
---
diff --git a/website/pages/docs/builders/virtualbox/index.mdx b/website/content/docs/builders/virtualbox/index.mdx
similarity index 99%
rename from website/pages/docs/builders/virtualbox/index.mdx
rename to website/content/docs/builders/virtualbox/index.mdx
index eea894236..e5a379920 100644
--- a/website/pages/docs/builders/virtualbox/index.mdx
+++ b/website/content/docs/builders/virtualbox/index.mdx
@@ -4,7 +4,6 @@ description: >
and
export them in the OVA or OVF format.
-layout: docs
page_title: VirtualBox - Builders
sidebar_title: VirtualBox
---
diff --git a/website/pages/docs/builders/virtualbox/iso.mdx b/website/content/docs/builders/virtualbox/iso.mdx
similarity index 99%
rename from website/pages/docs/builders/virtualbox/iso.mdx
rename to website/content/docs/builders/virtualbox/iso.mdx
index 653ac49e4..67b506c67 100644
--- a/website/pages/docs/builders/virtualbox/iso.mdx
+++ b/website/content/docs/builders/virtualbox/iso.mdx
@@ -4,7 +4,6 @@ modeline: |
description: |
The VirtualBox Packer builder is able to create VirtualBox virtual machines
and export them in the OVF format, starting from an ISO image.
-layout: docs
page_title: VirtualBox ISO - Builders
sidebar_title: ISO
---
@@ -202,7 +201,6 @@ delay of 100ms between groups. The delay alleviates issues with latency and CPU
contention. If you notice missing keys, you can tune this delay by specifying
"boot_keygroup_interval" in your Packer template, for example:
-
diff --git a/website/pages/docs/builders/virtualbox/ovf.mdx b/website/content/docs/builders/virtualbox/ovf.mdx
similarity index 99%
rename from website/pages/docs/builders/virtualbox/ovf.mdx
rename to website/content/docs/builders/virtualbox/ovf.mdx
index a267882c0..ba0e066aa 100644
--- a/website/pages/docs/builders/virtualbox/ovf.mdx
+++ b/website/content/docs/builders/virtualbox/ovf.mdx
@@ -5,7 +5,6 @@ description: |
This VirtualBox Packer builder is able to create VirtualBox virtual machines
and export them in the OVF format, starting from an existing OVF/OVA (exported
virtual machine image).
-layout: docs
page_title: VirtualBox OVF/OVA - Builders
sidebar_title: OVF
---
@@ -248,4 +247,3 @@ directory of the SSH user.
@include 'builder/virtualbox/common/VBoxManageConfig.mdx'
@include 'builder/virtualbox/common/VBoxManageConfig-not-required.mdx'
-
diff --git a/website/pages/docs/builders/virtualbox/vm.mdx b/website/content/docs/builders/virtualbox/vm.mdx
similarity index 99%
rename from website/pages/docs/builders/virtualbox/vm.mdx
rename to website/content/docs/builders/virtualbox/vm.mdx
index 1db5af7b5..1e918cc13 100644
--- a/website/pages/docs/builders/virtualbox/vm.mdx
+++ b/website/content/docs/builders/virtualbox/vm.mdx
@@ -6,7 +6,6 @@ description: >
snapshots
and export them in the OVF format, starting from an ISO image.
-layout: docs
page_title: VirtualBox Snapshot - Builders
sidebar_title: VM
---
diff --git a/website/pages/docs/builders/vmware/index.mdx b/website/content/docs/builders/vmware/index.mdx
similarity index 99%
rename from website/pages/docs/builders/vmware/index.mdx
rename to website/content/docs/builders/vmware/index.mdx
index 683402d1f..a98a3d6bf 100644
--- a/website/pages/docs/builders/vmware/index.mdx
+++ b/website/content/docs/builders/vmware/index.mdx
@@ -2,7 +2,6 @@
description: |
The VMware Packer builder is able to create VMware virtual machines for use
with any VMware product.
-layout: docs
page_title: VMware - Builders
sidebar_title: VMware
---
diff --git a/website/pages/docs/builders/vmware/iso.mdx b/website/content/docs/builders/vmware/iso.mdx
similarity index 99%
rename from website/pages/docs/builders/vmware/iso.mdx
rename to website/content/docs/builders/vmware/iso.mdx
index eef1d5763..0d7953bf4 100644
--- a/website/pages/docs/builders/vmware/iso.mdx
+++ b/website/content/docs/builders/vmware/iso.mdx
@@ -7,7 +7,6 @@ description: |
running VMware Fusion for OS X, VMware Workstation for Linux and Windows, and
VMware Player on Linux. It can also build machines directly on VMware vSphere
Hypervisor using SSH as opposed to the vSphere API.
-layout: docs
page_title: VMware ISO - Builders
sidebar_title: VMWare ISO
---
@@ -131,6 +130,7 @@ necessary for this build to succeed and can be found further down the page.
@include 'packer-plugin-sdk/multistep/commonsteps/FloppyConfig-not-required.mdx'
### CD configuration
+
@include 'packer-plugin-sdk/multistep/commonsteps/CDConfig-not-required.mdx'
### Shutdown configuration
diff --git a/website/pages/docs/builders/vmware/vmx.mdx b/website/content/docs/builders/vmware/vmx.mdx
similarity index 99%
rename from website/pages/docs/builders/vmware/vmx.mdx
rename to website/content/docs/builders/vmware/vmx.mdx
index 4de7c30e7..848ed3270 100644
--- a/website/pages/docs/builders/vmware/vmx.mdx
+++ b/website/content/docs/builders/vmware/vmx.mdx
@@ -6,7 +6,6 @@ description: |
existing VMware virtual machine (a VMX file). It currently supports building
virtual machines on hosts running VMware Fusion Professional for OS X, VMware
Workstation for Linux and Windows, and VMware Player on Linux.
-layout: docs
page_title: VMware VMX - Builders
sidebar_title: VMWare VMX
---
diff --git a/website/pages/docs/builders/vmware/vsphere-clone.mdx b/website/content/docs/builders/vmware/vsphere-clone.mdx
similarity index 98%
rename from website/pages/docs/builders/vmware/vsphere-clone.mdx
rename to website/content/docs/builders/vmware/vsphere-clone.mdx
index 18e921685..4fd74c314 100644
--- a/website/pages/docs/builders/vmware/vsphere-clone.mdx
+++ b/website/content/docs/builders/vmware/vsphere-clone.mdx
@@ -4,7 +4,6 @@ modeline: |
description: >
This VMware Packer builder uses the vSphere API to clone an existing vSphere
template and create a new virtual machine remotely.
-layout: docs
page_title: VSphere Clone - Builders
sidebar_title: VSphere Clone
---
@@ -18,8 +17,8 @@ This builder clones VMs from existing templates.
- VMware Player is not required.
- It uses the official vCenter API, and does not require ESXi host [modification](https://www.packer.io/docs/builders/vmware-iso.html#building-on-a-remote-vsphere-hypervisor)
- This builder is supported for vSphere version 6.5 and greater. Builds on lower
-versions may work, but some configuration options may throw errors because they
-do not exist in the older versions of the vSphere API.
+ versions may work, but some configuration options may throw errors because they
+ do not exist in the older versions of the vSphere API.
## Examples
diff --git a/website/pages/docs/builders/vmware/vsphere-iso.mdx b/website/content/docs/builders/vmware/vsphere-iso.mdx
similarity index 98%
rename from website/pages/docs/builders/vmware/vsphere-iso.mdx
rename to website/content/docs/builders/vmware/vsphere-iso.mdx
index 71ae2edc5..b280491db 100644
--- a/website/pages/docs/builders/vmware/vsphere-iso.mdx
+++ b/website/content/docs/builders/vmware/vsphere-iso.mdx
@@ -4,7 +4,6 @@ modeline: |
description: |
This VMware Packer builder starts from an ISO and creates a vm using the
vSphere API to build on a remote VMWare machine.
-layout: docs
page_title: VSphere ISO - Builders
sidebar_title: VSphere ISO
---
@@ -19,8 +18,8 @@ starts from an ISO file and creates new VMs from scratch.
- VMware Player is not required.
- It uses the official vCenter API, and does not require ESXi host [modification](/docs/builders/vmware-iso#building-on-a-remote-vsphere-hypervisor)
- This builder is supported for vSphere version 6.5 and greater. Builds on lower
-versions may work, but some configuration options may throw errors because they
-do not exist in the older versions of the vSphere API.
+ versions may work, but some configuration options may throw errors because they
+ do not exist in the older versions of the vSphere API.
## Examples
diff --git a/website/pages/docs/builders/yandex.mdx b/website/content/docs/builders/yandex.mdx
similarity index 99%
rename from website/pages/docs/builders/yandex.mdx
rename to website/content/docs/builders/yandex.mdx
index 440ca5ad6..f023cdc82 100644
--- a/website/pages/docs/builders/yandex.mdx
+++ b/website/content/docs/builders/yandex.mdx
@@ -2,7 +2,6 @@
description: |
The yandex Packer builder is able to create images for use with
Yandex.Cloud based on existing images.
-layout: docs
page_title: Yandex Compute - Builders
sidebar_title: Yandex.Cloud
---
@@ -130,7 +129,6 @@ In configuration directives the following variables are available:
- `SourceImageFamily` - The source image family (for example `ubuntu-1604-lts`).
- `SourceImageFolderID` - The folder ID where source image located (for example `standard-images`).
-
## Build Shared Information Variables
This builder generates data that are shared with provisioner and post-processor via build function of
diff --git a/website/pages/docs/commands/build.mdx b/website/content/docs/commands/build.mdx
similarity index 99%
rename from website/pages/docs/commands/build.mdx
rename to website/content/docs/commands/build.mdx
index 98a4d68fe..9f4be12c3 100644
--- a/website/pages/docs/commands/build.mdx
+++ b/website/content/docs/commands/build.mdx
@@ -4,7 +4,6 @@ description: |
in order to generate a set of artifacts. The various builds specified within a
template are executed in parallel, unless otherwise specified. And the
artifacts that are created will be outputted at the end of the build.
-layout: docs
page_title: packer build - Commands
sidebar_title: build
---
diff --git a/website/pages/docs/commands/console.mdx b/website/content/docs/commands/console.mdx
similarity index 99%
rename from website/pages/docs/commands/console.mdx
rename to website/content/docs/commands/console.mdx
index 6d9c26a48..4462f52bf 100644
--- a/website/pages/docs/commands/console.mdx
+++ b/website/content/docs/commands/console.mdx
@@ -2,7 +2,6 @@
description: |
The `packer console` command allows you to experiment with Packer variable
interpolations.
-layout: docs
page_title: packer console - Commands
sidebar_title: console
---
diff --git a/website/pages/docs/commands/fix.mdx b/website/content/docs/commands/fix.mdx
similarity index 99%
rename from website/pages/docs/commands/fix.mdx
rename to website/content/docs/commands/fix.mdx
index f94968246..f4587f9dd 100644
--- a/website/pages/docs/commands/fix.mdx
+++ b/website/content/docs/commands/fix.mdx
@@ -4,7 +4,6 @@ description: |
parts of it and brings it up to date so it can be used with the latest version
of Packer. After you update to a new Packer release, you should run the fix
command to make sure your templates work with the new release.
-layout: docs
page_title: packer fix - Commands
sidebar_title: fix
---
diff --git a/website/pages/docs/commands/fmt.mdx b/website/content/docs/commands/fmt.mdx
similarity index 92%
rename from website/pages/docs/commands/fmt.mdx
rename to website/content/docs/commands/fmt.mdx
index b277dbc76..ce7bd3a71 100644
--- a/website/pages/docs/commands/fmt.mdx
+++ b/website/content/docs/commands/fmt.mdx
@@ -2,7 +2,6 @@
description: |
The `packer fmt` Packer command is used to format HCL2
configuration files to a canonical format and style.
-layout: docs
page_title: packer fmt - Commands
sidebar_title: fmt
---
@@ -38,9 +37,9 @@ my-template.json
## Options
- `-check` - Checks if the input is formatted. Exit status will be 0 if all
-input is properly formatted and non-zero otherwise.
+ input is properly formatted and non-zero otherwise.
- `-diff` - Display diffs of any formatting change
- `-write=false` - Don't write formatting changes to source files
-(always disabled if using -check)
+ (always disabled if using -check)
diff --git a/website/pages/docs/commands/hcl2_upgrade.mdx b/website/content/docs/commands/hcl2_upgrade.mdx
similarity index 82%
rename from website/pages/docs/commands/hcl2_upgrade.mdx
rename to website/content/docs/commands/hcl2_upgrade.mdx
index f02083671..0de5d4e85 100644
--- a/website/pages/docs/commands/hcl2_upgrade.mdx
+++ b/website/content/docs/commands/hcl2_upgrade.mdx
@@ -3,7 +3,6 @@ description: |
The `packer hcl2_upgrade` Packer command is used to transpile a JSON
configuration template to it's formatted HCL2 counterpart. The command will
return a zero exit status on success, and a non-zero exit status on failure.
-layout: docs
page_title: packer hcl2_upgrade - Commands
sidebar_title: hcl2_upgrade
---
@@ -56,14 +55,15 @@ locals {
`hcl2_upgrade` will do its best to transform your go _template calls_ to HCL2,
here is the list of calls that should get transformed:
- - ```{{ user `my_var` }}``` becomes ```${var.my_var}```.
- - ```{{ env `my_var` }}``` becomes ```${var.my_var}```. Packer HCL2 supports
- environment variables through input variables. See
- [docs](http://packer.io/docs/from-1.5/variables#environment-variables)
- for more info.
- - ```{{ timestamp }}``` becomes ```${local.timestamp}```, the local variable
- will be created for all generated files.
- - ```{{ build `ID` }}``` becomes ```${build.ID}```.
+
+- `` {{ user `my_var` }} `` becomes `${var.my_var}`.
+- `` {{ env `my_var` }} `` becomes `${var.my_var}`. Packer HCL2 supports
+ environment variables through input variables. See
+ [docs](http://packer.io/docs/from-1.5/variables#environment-variables)
+ for more info.
+- `{{ timestamp }}` becomes `${local.timestamp}`, the local variable
+ will be created for all generated files.
+- `` {{ build `ID` }} `` becomes `${build.ID}`.
The rest of the calls should remain go template calls for now, this will be
improved over time.
diff --git a/website/pages/docs/commands/index.mdx b/website/content/docs/commands/index.mdx
similarity index 99%
rename from website/pages/docs/commands/index.mdx
rename to website/content/docs/commands/index.mdx
index f8f806468..3858b54be 100644
--- a/website/pages/docs/commands/index.mdx
+++ b/website/content/docs/commands/index.mdx
@@ -5,7 +5,6 @@ description: |
`packer` tool takes a subcommand to execute, and that subcommand may have
additional options as well. Subcommands are executed with `packer SUBCOMMAND`,
where "SUBCOMMAND" is the actual command you wish to execute.
-layout: docs
page_title: Commands
sidebar_title: Commands (CLI)
---
diff --git a/website/pages/docs/commands/inspect.mdx b/website/content/docs/commands/inspect.mdx
similarity index 99%
rename from website/pages/docs/commands/inspect.mdx
rename to website/content/docs/commands/inspect.mdx
index b0f9a2d97..3d9217b94 100644
--- a/website/pages/docs/commands/inspect.mdx
+++ b/website/content/docs/commands/inspect.mdx
@@ -10,7 +10,6 @@ description: >
like what variables a template accepts, the builders it defines, the
provisioners it defines and the order they'll run, and more.
-layout: docs
page_title: packer inspect - Commands
sidebar_title: inspect
---
diff --git a/website/pages/docs/commands/validate.mdx b/website/content/docs/commands/validate.mdx
similarity index 99%
rename from website/pages/docs/commands/validate.mdx
rename to website/content/docs/commands/validate.mdx
index 38bc5244e..85f034c74 100644
--- a/website/pages/docs/commands/validate.mdx
+++ b/website/content/docs/commands/validate.mdx
@@ -4,7 +4,6 @@ description: |
configuration of a template. The command will return a zero exit status on
success, and a non-zero exit status on failure. Additionally, if a template
doesn't validate, any error messages will be outputted.
-layout: docs
page_title: packer validate - Commands
sidebar_title: validate
---
diff --git a/website/pages/docs/communicators/index.mdx b/website/content/docs/communicators/index.mdx
similarity index 98%
rename from website/pages/docs/communicators/index.mdx
rename to website/content/docs/communicators/index.mdx
index 0614e453b..bf4175adf 100644
--- a/website/pages/docs/communicators/index.mdx
+++ b/website/content/docs/communicators/index.mdx
@@ -2,7 +2,6 @@
description: |
Communicators are the mechanism Packer uses to upload files, execute
scripts, etc. with the machine being created.
-layout: docs
page_title: Communicators
sidebar_title: Communicators
---
diff --git a/website/pages/docs/communicators/ssh.mdx b/website/content/docs/communicators/ssh.mdx
similarity index 93%
rename from website/pages/docs/communicators/ssh.mdx
rename to website/content/docs/communicators/ssh.mdx
index 1f06cc6e5..e27a3ef76 100644
--- a/website/pages/docs/communicators/ssh.mdx
+++ b/website/content/docs/communicators/ssh.mdx
@@ -2,7 +2,6 @@
description: |
The SSH communicator uses SSH to upload files, execute scripts, etc. on
the machine being created.
-layout: docs
page_title: Communicators - SSH
sidebar_title: SSH
---
@@ -61,10 +60,9 @@ The SSH communicator has the following options:
@include "packer-plugin-sdk/communicator/SSH-not-required.mdx"
~> Note: SSH communicator options: `ssh_keypair_name`, `ssh_agent_auth`,
- `temporary_key_pair_name` and `ssh_private_key_file` are also supported by
- the communicator. But they may not be supported for every builder. Please check
- the builder specific documentation for additional SSH supported options.
-
+`temporary_key_pair_name` and `ssh_private_key_file` are also supported by
+the communicator. But they may not be supported for every builder. Please check
+the builder specific documentation for additional SSH supported options.
### SSH Communicator Details
diff --git a/website/pages/docs/communicators/winrm.mdx b/website/content/docs/communicators/winrm.mdx
similarity index 99%
rename from website/pages/docs/communicators/winrm.mdx
rename to website/content/docs/communicators/winrm.mdx
index 2efd5233d..c90c1bd16 100644
--- a/website/pages/docs/communicators/winrm.mdx
+++ b/website/content/docs/communicators/winrm.mdx
@@ -2,7 +2,6 @@
description: |
Communicators are the mechanism Packer uses to upload files, execute scripts,
etc. with the machine being created.
-layout: docs
page_title: Communicators - Templates
sidebar_title: WINRM
---
diff --git a/website/pages/docs/core-configuration.mdx b/website/content/docs/core-configuration.mdx
similarity index 99%
rename from website/pages/docs/core-configuration.mdx
rename to website/content/docs/core-configuration.mdx
index 9ee68bbb6..5a3849f58 100644
--- a/website/pages/docs/core-configuration.mdx
+++ b/website/content/docs/core-configuration.mdx
@@ -8,7 +8,6 @@ description: >
you generally don't have to worry about it until you want to tweak a
configuration.
-layout: docs
page_title: Core Configuration - Other
sidebar_title: Core Configuration
---
diff --git a/website/pages/docs/debugging.mdx b/website/content/docs/debugging.mdx
similarity index 99%
rename from website/pages/docs/debugging.mdx
rename to website/content/docs/debugging.mdx
index 98867aab1..a6e553600 100644
--- a/website/pages/docs/debugging.mdx
+++ b/website/content/docs/debugging.mdx
@@ -3,7 +3,6 @@ description: |
Packer strives to be stable and bug-free, but issues inevitably arise where
certain things may not work entirely correctly, or may not appear to work
correctly.
-layout: docs
page_title: Debugging - Other
sidebar_title: Debugging
---
diff --git a/website/pages/docs/environment-variables.mdx b/website/content/docs/environment-variables.mdx
similarity index 99%
rename from website/pages/docs/environment-variables.mdx
rename to website/content/docs/environment-variables.mdx
index 40d8099df..123ba8b64 100644
--- a/website/pages/docs/environment-variables.mdx
+++ b/website/content/docs/environment-variables.mdx
@@ -1,6 +1,5 @@
---
description: Packer uses a variety of environmental variables.
-layout: docs
page_title: Environment Variables - Other
sidebar_title: Environment Variables
---
diff --git a/website/pages/docs/extending/custom-builders.mdx b/website/content/docs/extending/custom-builders.mdx
similarity index 99%
rename from website/pages/docs/extending/custom-builders.mdx
rename to website/content/docs/extending/custom-builders.mdx
index a12efcfdb..058027f57 100644
--- a/website/pages/docs/extending/custom-builders.mdx
+++ b/website/content/docs/extending/custom-builders.mdx
@@ -2,7 +2,6 @@
description: |
It is possible to write custom builders using the Packer plugin interface, and
this page documents how to do that.
-layout: docs
page_title: Custom Builders - Extending
sidebar_title: Custom Builders
---
diff --git a/website/pages/docs/extending/custom-post-processors.mdx b/website/content/docs/extending/custom-post-processors.mdx
similarity index 99%
rename from website/pages/docs/extending/custom-post-processors.mdx
rename to website/content/docs/extending/custom-post-processors.mdx
index 6396834d8..87ee5679b 100644
--- a/website/pages/docs/extending/custom-post-processors.mdx
+++ b/website/content/docs/extending/custom-post-processors.mdx
@@ -4,7 +4,6 @@ description: >
artifact
into another, for example by compressing files, or uploading them.
-layout: docs
page_title: Custom Post-Processors - Extending
sidebar_title: Custom Post-Processors
---
diff --git a/website/pages/docs/extending/custom-provisioners.mdx b/website/content/docs/extending/custom-provisioners.mdx
similarity index 99%
rename from website/pages/docs/extending/custom-provisioners.mdx
rename to website/content/docs/extending/custom-provisioners.mdx
index d33754a65..204bb1e4d 100644
--- a/website/pages/docs/extending/custom-provisioners.mdx
+++ b/website/content/docs/extending/custom-provisioners.mdx
@@ -8,7 +8,6 @@ description: >
example of a provisioner is the shell provisioner, which runs shell scripts
within the machines.
-layout: docs
page_title: Custom Provisioners - Extending
sidebar_title: Custom Provisioners
---
diff --git a/website/pages/docs/extending/index.mdx b/website/content/docs/extending/index.mdx
similarity index 97%
rename from website/pages/docs/extending/index.mdx
rename to website/content/docs/extending/index.mdx
index 096413e3a..363c350cd 100644
--- a/website/pages/docs/extending/index.mdx
+++ b/website/content/docs/extending/index.mdx
@@ -3,7 +3,6 @@ description: |
Packer is designed to be extensible. Because the surface area for workloads is
infinite, Packer supports plugins for builders, provisioners, and
post-processors.
-layout: docs
page_title: Extending
sidebar_title: Extending Packer
---
diff --git a/website/pages/docs/extending/plugins.mdx b/website/content/docs/extending/plugins.mdx
similarity index 99%
rename from website/pages/docs/extending/plugins.mdx
rename to website/content/docs/extending/plugins.mdx
index 07cb05821..ff5607b4d 100644
--- a/website/pages/docs/extending/plugins.mdx
+++ b/website/content/docs/extending/plugins.mdx
@@ -3,7 +3,6 @@ description: |
Packer Plugins allow new functionality to be added to Packer without modifying
the core source code. Packer plugins are able to add new builders,
provisioners, hooks, and more.
-layout: docs
page_title: Plugins - Extending
sidebar_title: Plugins
---
diff --git a/website/pages/docs/from-1.5/blocks/build/index.mdx b/website/content/docs/from-1.5/blocks/build/index.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/blocks/build/index.mdx
rename to website/content/docs/from-1.5/blocks/build/index.mdx
index b9381b2da..5c8834c56 100644
--- a/website/pages/docs/from-1.5/blocks/build/index.mdx
+++ b/website/content/docs/from-1.5/blocks/build/index.mdx
@@ -1,7 +1,6 @@
---
-description: >
+description: |
The source block defines what builders are started.
-layout: docs
page_title: build - Blocks
sidebar_title: build
---
diff --git a/website/pages/docs/from-1.5/blocks/build/post-processor.mdx b/website/content/docs/from-1.5/blocks/build/post-processor.mdx
similarity index 96%
rename from website/pages/docs/from-1.5/blocks/build/post-processor.mdx
rename to website/content/docs/from-1.5/blocks/build/post-processor.mdx
index 59b4d36aa..e59f19b03 100644
--- a/website/pages/docs/from-1.5/blocks/build/post-processor.mdx
+++ b/website/content/docs/from-1.5/blocks/build/post-processor.mdx
@@ -1,7 +1,6 @@
---
-description: >
+description: |
The post-processor block defines how a post-processor is configured.
-layout: docs
page_title: post-processor - build - Blocks
sidebar_title: post-processor
---
@@ -90,6 +89,6 @@ about and see some examples of how to use them.
### Related
-* The [`post-processors` block](/docs/from-1.5/blocks/build/post-processor)
+- The [`post-processors` block](/docs/from-1.5/blocks/build/post-processor)
allows to define one or more chain of `post-processor`s that will take the
output from the build and provision steps.
diff --git a/website/pages/docs/from-1.5/blocks/build/post-processors.mdx b/website/content/docs/from-1.5/blocks/build/post-processors.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/blocks/build/post-processors.mdx
rename to website/content/docs/from-1.5/blocks/build/post-processors.mdx
index 2bf3c3660..ccaa4a40e 100644
--- a/website/pages/docs/from-1.5/blocks/build/post-processors.mdx
+++ b/website/content/docs/from-1.5/blocks/build/post-processors.mdx
@@ -2,7 +2,6 @@
description: >
The post-processors block allows to define lists of post-processors to apply
to an artifact.
-layout: docs
page_title: post-processors - build - Blocks
sidebar_title: post-processors
---
@@ -31,7 +30,7 @@ build {
keep_input_artifact = true # keep the artifact
}
}
-
+
}
```
diff --git a/website/pages/docs/from-1.5/blocks/build/provisioner.mdx b/website/content/docs/from-1.5/blocks/build/provisioner.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/blocks/build/provisioner.mdx
rename to website/content/docs/from-1.5/blocks/build/provisioner.mdx
index e2e5f8eb4..d2e0441fa 100644
--- a/website/pages/docs/from-1.5/blocks/build/provisioner.mdx
+++ b/website/content/docs/from-1.5/blocks/build/provisioner.mdx
@@ -1,7 +1,6 @@
---
-description: >
+description: |
The provisioner block defines how a provisioner is configured.
-layout: docs
page_title: provisioner - build - Blocks
sidebar_title: provisioner
---
diff --git a/website/pages/docs/from-1.5/blocks/build/source.mdx b/website/content/docs/from-1.5/blocks/build/source.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/blocks/build/source.mdx
rename to website/content/docs/from-1.5/blocks/build/source.mdx
index 9c17b95c5..673e153f0 100644
--- a/website/pages/docs/from-1.5/blocks/build/source.mdx
+++ b/website/content/docs/from-1.5/blocks/build/source.mdx
@@ -2,7 +2,6 @@
description: >
A source block nested in a build block allows you to use an already defined
source and to set specific fields.
-layout: docs
page_title: source - build - Blocks
sidebar_title: source
---
diff --git a/website/pages/docs/from-1.5/blocks/index.mdx b/website/content/docs/from-1.5/blocks/index.mdx
similarity index 90%
rename from website/pages/docs/from-1.5/blocks/index.mdx
rename to website/content/docs/from-1.5/blocks/index.mdx
index 92b706139..434f6f342 100644
--- a/website/pages/docs/from-1.5/blocks/index.mdx
+++ b/website/content/docs/from-1.5/blocks/index.mdx
@@ -1,9 +1,7 @@
---
-layout: docs
page_title: Blocks - Configuration Language
sidebar_title: Blocks
-description: |-
- The HCL language has a number of blocks that can be used to configure builds.
+description: The HCL language has a number of blocks that can be used to configure builds.
---
# Built-in Blocks
diff --git a/website/pages/docs/from-1.5/blocks/locals.mdx b/website/content/docs/from-1.5/blocks/locals.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/blocks/locals.mdx
rename to website/content/docs/from-1.5/blocks/locals.mdx
index 2f4d3f578..427f681e2 100644
--- a/website/pages/docs/from-1.5/blocks/locals.mdx
+++ b/website/content/docs/from-1.5/blocks/locals.mdx
@@ -2,7 +2,6 @@
description: >
The locals block also called the local-variable block defines locals within
your Packer configuration.
-layout: docs
page_title: locals - Blocks
sidebar_title: locals
---
diff --git a/website/pages/docs/from-1.5/blocks/packer.mdx b/website/content/docs/from-1.5/blocks/packer.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/blocks/packer.mdx
rename to website/content/docs/from-1.5/blocks/packer.mdx
index 85d1cc114..41dedd227 100644
--- a/website/pages/docs/from-1.5/blocks/packer.mdx
+++ b/website/content/docs/from-1.5/blocks/packer.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: packer - Blocks
sidebar_title: packer
description: |-
@@ -14,7 +13,7 @@ description: |-
-> **Note:** The Packer block is only available in Packer v1.6.5 and later.
The `packer` configuration block type is used to configure some
-behaviors of Packer itself, such as the minimum required Packer version needed to
+behaviors of Packer itself, such as the minimum required Packer version needed to
apply your configuration.
## Packer Block Syntax
@@ -48,7 +47,6 @@ Use Packer version constraints in a collaborative environment to
ensure that everyone is using a specific Packer version, or using at least
a minimum Packer version that has behavior expected by the configuration.
-
## Version Constraints
Anywhere that Packer lets you specify a range of acceptable versions for
diff --git a/website/pages/docs/from-1.5/blocks/source.mdx b/website/content/docs/from-1.5/blocks/source.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/blocks/source.mdx
rename to website/content/docs/from-1.5/blocks/source.mdx
index a807ff4aa..f9bb2358b 100644
--- a/website/pages/docs/from-1.5/blocks/source.mdx
+++ b/website/content/docs/from-1.5/blocks/source.mdx
@@ -1,7 +1,6 @@
---
-description: >
+description: |
The top-level source block defines reusable builder configuration blocks
-layout: docs
page_title: source - Blocks
sidebar_title: source
---
diff --git a/website/pages/docs/from-1.5/blocks/variable.mdx b/website/content/docs/from-1.5/blocks/variable.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/blocks/variable.mdx
rename to website/content/docs/from-1.5/blocks/variable.mdx
index 1b423ca6f..c3926148b 100644
--- a/website/pages/docs/from-1.5/blocks/variable.mdx
+++ b/website/content/docs/from-1.5/blocks/variable.mdx
@@ -2,7 +2,6 @@
description: >
The variable block, also called the input-variable block, defines variables
within your Packer configuration.
-layout: docs
page_title: variable - Blocks
sidebar_title: variable
---
diff --git a/website/pages/docs/from-1.5/contextual-variables.mdx b/website/content/docs/from-1.5/contextual-variables.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/contextual-variables.mdx
rename to website/content/docs/from-1.5/contextual-variables.mdx
index ce707de65..ac9a1f7b3 100644
--- a/website/pages/docs/from-1.5/contextual-variables.mdx
+++ b/website/content/docs/from-1.5/contextual-variables.mdx
@@ -1,9 +1,10 @@
---
-layout: docs
page_title: Contextual Variables - HCL Configuration Language
sidebar_title: Contextual Variables
-description: |-
- Special variables provide connection information and basic instance state information.
+description: >-
+ Special variables provide connection information and basic instance state
+ information.
+
This page covers all existing special variables.
---
@@ -86,7 +87,6 @@ For builder-specific builder variables, please also refer to the builder docs:
The HCL2 Special Build Variables is in beta; please report any issues or requests on the Packer
issue tracker on GitHub.
-
# Packer Version
This variable is set to the Packer version currently running.
diff --git a/website/pages/docs/from-1.5/expressions.mdx b/website/content/docs/from-1.5/expressions.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/expressions.mdx
rename to website/content/docs/from-1.5/expressions.mdx
index 245237b4b..481f18ccd 100644
--- a/website/pages/docs/from-1.5/expressions.mdx
+++ b/website/content/docs/from-1.5/expressions.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: Expressions - Configuration Language
sidebar_title: Expressions
description: |-
diff --git a/website/pages/docs/from-1.5/functions/collection/chunklist.mdx b/website/content/docs/from-1.5/functions/collection/chunklist.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/collection/chunklist.mdx
rename to website/content/docs/from-1.5/functions/collection/chunklist.mdx
index f690cc780..634604d9f 100644
--- a/website/pages/docs/from-1.5/functions/collection/chunklist.mdx
+++ b/website/content/docs/from-1.5/functions/collection/chunklist.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: chunklist - Functions - Configuration Language
sidebar_title: chunklist
description: |-
diff --git a/website/pages/docs/from-1.5/functions/collection/coalesce.mdx b/website/content/docs/from-1.5/functions/collection/coalesce.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/collection/coalesce.mdx
rename to website/content/docs/from-1.5/functions/collection/coalesce.mdx
index 135eaac97..09ddfcb94 100644
--- a/website/pages/docs/from-1.5/functions/collection/coalesce.mdx
+++ b/website/content/docs/from-1.5/functions/collection/coalesce.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: coalesce - Functions - Configuration Language
sidebar_title: coalesce
description: |-
diff --git a/website/pages/docs/from-1.5/functions/collection/coalescelist.mdx b/website/content/docs/from-1.5/functions/collection/coalescelist.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/collection/coalescelist.mdx
rename to website/content/docs/from-1.5/functions/collection/coalescelist.mdx
index 7b545cf18..29322735c 100644
--- a/website/pages/docs/from-1.5/functions/collection/coalescelist.mdx
+++ b/website/content/docs/from-1.5/functions/collection/coalescelist.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: coalescelist - Functions - Configuration Language
sidebar_title: coalescelist
description: |-
diff --git a/website/pages/docs/from-1.5/functions/collection/compact.mdx b/website/content/docs/from-1.5/functions/collection/compact.mdx
similarity index 96%
rename from website/pages/docs/from-1.5/functions/collection/compact.mdx
rename to website/content/docs/from-1.5/functions/collection/compact.mdx
index 16cb751b7..5fae284a0 100644
--- a/website/pages/docs/from-1.5/functions/collection/compact.mdx
+++ b/website/content/docs/from-1.5/functions/collection/compact.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: compact - Functions - Configuration Language
sidebar_title: compact
description: The compact function removes empty string elements from a list.
diff --git a/website/pages/docs/from-1.5/functions/collection/concat.mdx b/website/content/docs/from-1.5/functions/collection/concat.mdx
similarity index 96%
rename from website/pages/docs/from-1.5/functions/collection/concat.mdx
rename to website/content/docs/from-1.5/functions/collection/concat.mdx
index 762ab3e54..26ced6faa 100644
--- a/website/pages/docs/from-1.5/functions/collection/concat.mdx
+++ b/website/content/docs/from-1.5/functions/collection/concat.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: concat - Functions - Configuration Language
sidebar_title: concat
description: The concat function combines two or more lists into a single list.
diff --git a/website/pages/docs/from-1.5/functions/collection/contains.mdx b/website/content/docs/from-1.5/functions/collection/contains.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/collection/contains.mdx
rename to website/content/docs/from-1.5/functions/collection/contains.mdx
index c073941c5..b81b175e7 100644
--- a/website/pages/docs/from-1.5/functions/collection/contains.mdx
+++ b/website/content/docs/from-1.5/functions/collection/contains.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: contains - Functions - Configuration Language
sidebar_title: contains
description: The contains function determines whether a list or set contains a given value.
diff --git a/website/pages/docs/from-1.5/functions/collection/distinct.mdx b/website/content/docs/from-1.5/functions/collection/distinct.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/collection/distinct.mdx
rename to website/content/docs/from-1.5/functions/collection/distinct.mdx
index e94973956..084205cc0 100644
--- a/website/pages/docs/from-1.5/functions/collection/distinct.mdx
+++ b/website/content/docs/from-1.5/functions/collection/distinct.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: distinct - Functions - Configuration Language
sidebar_title: distinct
description: The distinct function removes duplicate elements from a list.
diff --git a/website/pages/docs/from-1.5/functions/collection/element.mdx b/website/content/docs/from-1.5/functions/collection/element.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/collection/element.mdx
rename to website/content/docs/from-1.5/functions/collection/element.mdx
index 3cf3c15cc..ee9c463b2 100644
--- a/website/pages/docs/from-1.5/functions/collection/element.mdx
+++ b/website/content/docs/from-1.5/functions/collection/element.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: element - Functions - Configuration Language
sidebar_title: element
description: The element function retrieves a single element from a list.
diff --git a/website/pages/docs/from-1.5/functions/collection/flatten.mdx b/website/content/docs/from-1.5/functions/collection/flatten.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/collection/flatten.mdx
rename to website/content/docs/from-1.5/functions/collection/flatten.mdx
index 68ea5ce02..c917cf239 100644
--- a/website/pages/docs/from-1.5/functions/collection/flatten.mdx
+++ b/website/content/docs/from-1.5/functions/collection/flatten.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: flatten - Functions - Configuration Language
sidebar_title: flatten
description: The flatten function eliminates nested lists from a list.
diff --git a/website/pages/docs/from-1.5/functions/collection/index-fn.mdx b/website/content/docs/from-1.5/functions/collection/index-fn.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/collection/index-fn.mdx
rename to website/content/docs/from-1.5/functions/collection/index-fn.mdx
index e45d70e81..c57c3dcac 100644
--- a/website/pages/docs/from-1.5/functions/collection/index-fn.mdx
+++ b/website/content/docs/from-1.5/functions/collection/index-fn.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: index - Functions - Configuration Language
sidebar_title: index
description: The index function finds the element index for a given value in a list.
diff --git a/website/pages/docs/from-1.5/functions/collection/index.mdx b/website/content/docs/from-1.5/functions/collection/index.mdx
similarity index 92%
rename from website/pages/docs/from-1.5/functions/collection/index.mdx
rename to website/content/docs/from-1.5/functions/collection/index.mdx
index 63e4e3f62..d53ac2936 100644
--- a/website/pages/docs/from-1.5/functions/collection/index.mdx
+++ b/website/content/docs/from-1.5/functions/collection/index.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: Collection - Functions - Configuration Language
sidebar_title: Collection Functions
description: Overview of available collection functions
diff --git a/website/pages/docs/from-1.5/functions/collection/keys.mdx b/website/content/docs/from-1.5/functions/collection/keys.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/collection/keys.mdx
rename to website/content/docs/from-1.5/functions/collection/keys.mdx
index b7572af86..2929c2ac5 100644
--- a/website/pages/docs/from-1.5/functions/collection/keys.mdx
+++ b/website/content/docs/from-1.5/functions/collection/keys.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: keys - Functions - Configuration Language
sidebar_title: keys
description: The keys function returns a list of the keys in a given map.
diff --git a/website/pages/docs/from-1.5/functions/collection/length.mdx b/website/content/docs/from-1.5/functions/collection/length.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/collection/length.mdx
rename to website/content/docs/from-1.5/functions/collection/length.mdx
index 8042d9162..6dead1dcd 100644
--- a/website/pages/docs/from-1.5/functions/collection/length.mdx
+++ b/website/content/docs/from-1.5/functions/collection/length.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: length - Functions - Configuration Language
sidebar_title: length
description: The length function determines the length of a collection or string.
diff --git a/website/pages/docs/from-1.5/functions/collection/lookup.mdx b/website/content/docs/from-1.5/functions/collection/lookup.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/collection/lookup.mdx
rename to website/content/docs/from-1.5/functions/collection/lookup.mdx
index 41c4f7e0f..3edd9a77e 100644
--- a/website/pages/docs/from-1.5/functions/collection/lookup.mdx
+++ b/website/content/docs/from-1.5/functions/collection/lookup.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: lookup - Functions - Configuration Language
sidebar_title: lookup
description: The lookup function retrieves an element value from a map given its key.
diff --git a/website/pages/docs/from-1.5/functions/collection/merge.mdx b/website/content/docs/from-1.5/functions/collection/merge.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/collection/merge.mdx
rename to website/content/docs/from-1.5/functions/collection/merge.mdx
index 4efc6db34..492b1a180 100644
--- a/website/pages/docs/from-1.5/functions/collection/merge.mdx
+++ b/website/content/docs/from-1.5/functions/collection/merge.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: merge - Functions - Configuration Language
sidebar_title: merge
description: |-
diff --git a/website/pages/docs/from-1.5/functions/collection/range.mdx b/website/content/docs/from-1.5/functions/collection/range.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/collection/range.mdx
rename to website/content/docs/from-1.5/functions/collection/range.mdx
index c3d7dd45a..de665f56d 100644
--- a/website/pages/docs/from-1.5/functions/collection/range.mdx
+++ b/website/content/docs/from-1.5/functions/collection/range.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: range - Functions - Configuration Language
sidebar_title: range
description: The range function generates sequences of numbers.
diff --git a/website/pages/docs/from-1.5/functions/collection/reverse.mdx b/website/content/docs/from-1.5/functions/collection/reverse.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/collection/reverse.mdx
rename to website/content/docs/from-1.5/functions/collection/reverse.mdx
index 2d14f78b4..66a9c4d5a 100644
--- a/website/pages/docs/from-1.5/functions/collection/reverse.mdx
+++ b/website/content/docs/from-1.5/functions/collection/reverse.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: reverse - Functions - Configuration Language
sidebar_title: reverse
description: The reverse function reverses a sequence.
diff --git a/website/pages/docs/from-1.5/functions/collection/setintersection.mdx b/website/content/docs/from-1.5/functions/collection/setintersection.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/collection/setintersection.mdx
rename to website/content/docs/from-1.5/functions/collection/setintersection.mdx
index 0ac28f20b..a744c1a85 100644
--- a/website/pages/docs/from-1.5/functions/collection/setintersection.mdx
+++ b/website/content/docs/from-1.5/functions/collection/setintersection.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: setintersection - Functions - Configuration Language
sidebar_title: setintersection
description: |-
diff --git a/website/pages/docs/from-1.5/functions/collection/setproduct.mdx b/website/content/docs/from-1.5/functions/collection/setproduct.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/collection/setproduct.mdx
rename to website/content/docs/from-1.5/functions/collection/setproduct.mdx
index 77b669eea..aaaef049c 100644
--- a/website/pages/docs/from-1.5/functions/collection/setproduct.mdx
+++ b/website/content/docs/from-1.5/functions/collection/setproduct.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: setproduct - Functions - Configuration Language
sidebar_title: setproduct
description: |-
diff --git a/website/pages/docs/from-1.5/functions/collection/setunion.mdx b/website/content/docs/from-1.5/functions/collection/setunion.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/collection/setunion.mdx
rename to website/content/docs/from-1.5/functions/collection/setunion.mdx
index 8dc8a2363..1080c34d2 100644
--- a/website/pages/docs/from-1.5/functions/collection/setunion.mdx
+++ b/website/content/docs/from-1.5/functions/collection/setunion.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: setunion - Functions - Configuration Language
sidebar_title: setunion
description: |-
diff --git a/website/pages/docs/from-1.5/functions/collection/slice.mdx b/website/content/docs/from-1.5/functions/collection/slice.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/collection/slice.mdx
rename to website/content/docs/from-1.5/functions/collection/slice.mdx
index 88bc4c254..3b9dbf873 100644
--- a/website/pages/docs/from-1.5/functions/collection/slice.mdx
+++ b/website/content/docs/from-1.5/functions/collection/slice.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: slice - Functions - Configuration Language
sidebar_title: slice
description: The slice function extracts some consecutive elements from within a list.
diff --git a/website/pages/docs/from-1.5/functions/collection/sort.mdx b/website/content/docs/from-1.5/functions/collection/sort.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/collection/sort.mdx
rename to website/content/docs/from-1.5/functions/collection/sort.mdx
index a5ec274bf..2ff414394 100644
--- a/website/pages/docs/from-1.5/functions/collection/sort.mdx
+++ b/website/content/docs/from-1.5/functions/collection/sort.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: sort - Functions - Configuration Language
sidebar_title: sort
description: |-
diff --git a/website/pages/docs/from-1.5/functions/collection/values.mdx b/website/content/docs/from-1.5/functions/collection/values.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/collection/values.mdx
rename to website/content/docs/from-1.5/functions/collection/values.mdx
index 169fc34ae..17221b555 100644
--- a/website/pages/docs/from-1.5/functions/collection/values.mdx
+++ b/website/content/docs/from-1.5/functions/collection/values.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: values - Functions - Configuration Language
sidebar_title: values
description: The values function returns a list of the element values in a given map.
diff --git a/website/pages/docs/from-1.5/functions/collection/zipmap.mdx b/website/content/docs/from-1.5/functions/collection/zipmap.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/collection/zipmap.mdx
rename to website/content/docs/from-1.5/functions/collection/zipmap.mdx
index 952cfddb0..93bb98d51 100644
--- a/website/pages/docs/from-1.5/functions/collection/zipmap.mdx
+++ b/website/content/docs/from-1.5/functions/collection/zipmap.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: zipmap - Functions - Configuration Language
sidebar_title: zipmap
description: |-
diff --git a/website/pages/docs/from-1.5/functions/contextual/aws_secretsmanager.mdx b/website/content/docs/from-1.5/functions/contextual/aws_secretsmanager.mdx
similarity index 94%
rename from website/pages/docs/from-1.5/functions/contextual/aws_secretsmanager.mdx
rename to website/content/docs/from-1.5/functions/contextual/aws_secretsmanager.mdx
index 50bbbe376..74c3b3b5b 100644
--- a/website/pages/docs/from-1.5/functions/contextual/aws_secretsmanager.mdx
+++ b/website/content/docs/from-1.5/functions/contextual/aws_secretsmanager.mdx
@@ -1,11 +1,11 @@
---
-layout: docs
page_title: aws_secretsmanager - Functions - Configuration Language
sidebar_title: aws_secretsmanager
-description: The aws_secretsmanager function retrieves secrets from Amazon secretsmanager stores.
+description: >-
+ The aws_secretsmanager function retrieves secrets from Amazon secretsmanager
+ stores.
---
-
# `aws_secretsmanager_key` Function
Secrets can be read from the [AWS Secrets
@@ -50,15 +50,14 @@ This will load the key stored behind `my_secret` from aws secrets manager.
The retrieval of single key secrets or plaintext secrets can be obtained by specifying (`null` or empty: `""`) as the `key`.
-
When obtaining secrets that have multiple keys you can set `key` to the specific key you would like
to fetch. For example, given the following secret with two keys if `key` is set to "shell" `aws_secretsmanager` will
return only its value.
```json
{
- "test": "kitchen",
- "shell": "powershell"
+ "test": "kitchen",
+ "shell": "powershell"
}
```
@@ -84,8 +83,6 @@ build {
This will load the value `"powershell"` stored in the key `"shell"` behind `multikey/secret`.
-
-
In order to use this function you have to configure valid AWS credentials using
one of the following methods:
diff --git a/website/pages/docs/from-1.5/functions/contextual/consul.mdx b/website/content/docs/from-1.5/functions/contextual/consul.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/contextual/consul.mdx
rename to website/content/docs/from-1.5/functions/contextual/consul.mdx
index 048593ebb..3f4c50895 100644
--- a/website/pages/docs/from-1.5/functions/contextual/consul.mdx
+++ b/website/content/docs/from-1.5/functions/contextual/consul.mdx
@@ -1,11 +1,9 @@
---
-layout: docs
page_title: consul - Functions - Configuration Language
sidebar_title: consul
description: The consul function retrieves secrets from HashiCorp consul KV stores.
---
-
# `consul_key` Function
[Consul](https://www.consul.io) keys can be used within your template using the
diff --git a/website/pages/docs/from-1.5/functions/contextual/env.mdx b/website/content/docs/from-1.5/functions/contextual/env.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/contextual/env.mdx
rename to website/content/docs/from-1.5/functions/contextual/env.mdx
index 347ea3374..43eecc5e1 100644
--- a/website/pages/docs/from-1.5/functions/contextual/env.mdx
+++ b/website/content/docs/from-1.5/functions/contextual/env.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: env - Functions - Configuration Language
sidebar_title: env
description: The env function retrieves environment values for input variables.
@@ -22,7 +21,6 @@ In the previous example, the value of `aws_region` will be what's stored in the
`AWS_DEFAULT_REGION` env var, unless aws_region is also set in a [manner that takes
precedence](/docs/from-1.5/variables#variable-definition-precedence).
-
-> **Why can't I use environment variables elsewhere?** User variables are the
single source of configurable input. We felt that having environment variables
used _anywhere_ in a configuration would confuse the user about the possible inputs
diff --git a/website/pages/docs/from-1.5/functions/contextual/index.mdx b/website/content/docs/from-1.5/functions/contextual/index.mdx
similarity index 92%
rename from website/pages/docs/from-1.5/functions/contextual/index.mdx
rename to website/content/docs/from-1.5/functions/contextual/index.mdx
index 5e4c9da8d..2748a27c4 100644
--- a/website/pages/docs/from-1.5/functions/contextual/index.mdx
+++ b/website/content/docs/from-1.5/functions/contextual/index.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: Contextual - Functions - Configuration Language
sidebar_title: Contextual Functions
description: Overview of available Contextual functions
diff --git a/website/pages/docs/from-1.5/functions/contextual/vault.mdx b/website/content/docs/from-1.5/functions/contextual/vault.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/contextual/vault.mdx
rename to website/content/docs/from-1.5/functions/contextual/vault.mdx
index 477c2ec46..1439717b8 100644
--- a/website/pages/docs/from-1.5/functions/contextual/vault.mdx
+++ b/website/content/docs/from-1.5/functions/contextual/vault.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: vault - Functions - Configuration Language
sidebar_title: vault
description: The vault function retrieves secrets from HashiCorp Vault KV stores.
@@ -73,4 +72,4 @@ The full list of available environment variables is:
```
and detailed documentation for usage of each of those variables can be found
-[here](https://www.vaultproject.io/docs/commands/#environment-variables).
\ No newline at end of file
+[here](https://www.vaultproject.io/docs/commands/#environment-variables).
diff --git a/website/pages/docs/from-1.5/functions/conversion/can.mdx b/website/content/docs/from-1.5/functions/conversion/can.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/conversion/can.mdx
rename to website/content/docs/from-1.5/functions/conversion/can.mdx
index a5e108c8c..0e08b60af 100644
--- a/website/pages/docs/from-1.5/functions/conversion/can.mdx
+++ b/website/content/docs/from-1.5/functions/conversion/can.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: can - Functions - Configuration Language
sidebar_title: can
description: |-
diff --git a/website/pages/docs/from-1.5/functions/conversion/convert.mdx b/website/content/docs/from-1.5/functions/conversion/convert.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/conversion/convert.mdx
rename to website/content/docs/from-1.5/functions/conversion/convert.mdx
index 4a8548308..220beb511 100644
--- a/website/pages/docs/from-1.5/functions/conversion/convert.mdx
+++ b/website/content/docs/from-1.5/functions/conversion/convert.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: convert - Functions - Configuration Language
sidebar_title: convert
description: 'The convert function converts a value or an expression to a given type. '
diff --git a/website/pages/docs/from-1.5/functions/conversion/index.mdx b/website/content/docs/from-1.5/functions/conversion/index.mdx
similarity index 92%
rename from website/pages/docs/from-1.5/functions/conversion/index.mdx
rename to website/content/docs/from-1.5/functions/conversion/index.mdx
index 2bbf050f3..42754a534 100644
--- a/website/pages/docs/from-1.5/functions/conversion/index.mdx
+++ b/website/content/docs/from-1.5/functions/conversion/index.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: conversion - Functions - Configuration Language
sidebar_title: Type Conversion Functions
description: Overview of available conversion functions
diff --git a/website/pages/docs/from-1.5/functions/conversion/try.mdx b/website/content/docs/from-1.5/functions/conversion/try.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/conversion/try.mdx
rename to website/content/docs/from-1.5/functions/conversion/try.mdx
index 6da7e3a44..61c7f722e 100644
--- a/website/pages/docs/from-1.5/functions/conversion/try.mdx
+++ b/website/content/docs/from-1.5/functions/conversion/try.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: try - Functions - Configuration Language
sidebar_title: try
description: |-
diff --git a/website/pages/docs/from-1.5/functions/crypto/bcrypt.mdx b/website/content/docs/from-1.5/functions/crypto/bcrypt.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/crypto/bcrypt.mdx
rename to website/content/docs/from-1.5/functions/crypto/bcrypt.mdx
index 21b488b67..71182b794 100644
--- a/website/pages/docs/from-1.5/functions/crypto/bcrypt.mdx
+++ b/website/content/docs/from-1.5/functions/crypto/bcrypt.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: bcrypt - Functions - Configuration Language
sidebar_title: bcrypt
description: |-
diff --git a/website/pages/docs/from-1.5/functions/crypto/index.mdx b/website/content/docs/from-1.5/functions/crypto/index.mdx
similarity index 92%
rename from website/pages/docs/from-1.5/functions/crypto/index.mdx
rename to website/content/docs/from-1.5/functions/crypto/index.mdx
index 28634d2d4..25fe5efeb 100644
--- a/website/pages/docs/from-1.5/functions/crypto/index.mdx
+++ b/website/content/docs/from-1.5/functions/crypto/index.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: crypto - Functions - Configuration Language
sidebar_title: Hash and Crypto Functions
description: Overview of available crypto functions
diff --git a/website/pages/docs/from-1.5/functions/crypto/md5.mdx b/website/content/docs/from-1.5/functions/crypto/md5.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/crypto/md5.mdx
rename to website/content/docs/from-1.5/functions/crypto/md5.mdx
index a86eefb90..045486ecb 100644
--- a/website/pages/docs/from-1.5/functions/crypto/md5.mdx
+++ b/website/content/docs/from-1.5/functions/crypto/md5.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: md5 - Functions - Configuration Language
sidebar_title: md5
description: |-
diff --git a/website/pages/docs/from-1.5/functions/crypto/rsadecrypt.mdx b/website/content/docs/from-1.5/functions/crypto/rsadecrypt.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/crypto/rsadecrypt.mdx
rename to website/content/docs/from-1.5/functions/crypto/rsadecrypt.mdx
index e2ce1c30b..9f64e5ad6 100644
--- a/website/pages/docs/from-1.5/functions/crypto/rsadecrypt.mdx
+++ b/website/content/docs/from-1.5/functions/crypto/rsadecrypt.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: rsadecrypt - Functions - Configuration Language
sidebar_title: rsadecrypt
description: The rsadecrypt function decrypts an RSA-encrypted message.
diff --git a/website/pages/docs/from-1.5/functions/crypto/sha1.mdx b/website/content/docs/from-1.5/functions/crypto/sha1.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/crypto/sha1.mdx
rename to website/content/docs/from-1.5/functions/crypto/sha1.mdx
index 0889c2253..69143bba5 100644
--- a/website/pages/docs/from-1.5/functions/crypto/sha1.mdx
+++ b/website/content/docs/from-1.5/functions/crypto/sha1.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: sha1 - Functions - Configuration Language
sidebar_title: sha1
description: |-
diff --git a/website/pages/docs/from-1.5/functions/crypto/sha256.mdx b/website/content/docs/from-1.5/functions/crypto/sha256.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/crypto/sha256.mdx
rename to website/content/docs/from-1.5/functions/crypto/sha256.mdx
index 6c60fec88..5f870b846 100644
--- a/website/pages/docs/from-1.5/functions/crypto/sha256.mdx
+++ b/website/content/docs/from-1.5/functions/crypto/sha256.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: sha256 - Functions - Configuration Language
sidebar_title: sha256
description: |-
diff --git a/website/pages/docs/from-1.5/functions/crypto/sha512.mdx b/website/content/docs/from-1.5/functions/crypto/sha512.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/crypto/sha512.mdx
rename to website/content/docs/from-1.5/functions/crypto/sha512.mdx
index e896c11ea..ed8c207f0 100644
--- a/website/pages/docs/from-1.5/functions/crypto/sha512.mdx
+++ b/website/content/docs/from-1.5/functions/crypto/sha512.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: sha512 - Functions - Configuration Language
sidebar_title: sha512
description: |-
diff --git a/website/pages/docs/from-1.5/functions/datetime/formatdate.mdx b/website/content/docs/from-1.5/functions/datetime/formatdate.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/datetime/formatdate.mdx
rename to website/content/docs/from-1.5/functions/datetime/formatdate.mdx
index 3e50ccd5d..e2563d5c7 100644
--- a/website/pages/docs/from-1.5/functions/datetime/formatdate.mdx
+++ b/website/content/docs/from-1.5/functions/datetime/formatdate.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: formatdate - Functions - Configuration Language
sidebar_title: formatdate
description: The formatdate function converts a timestamp into a different time format.
diff --git a/website/pages/docs/from-1.5/functions/datetime/index.mdx b/website/content/docs/from-1.5/functions/datetime/index.mdx
similarity index 92%
rename from website/pages/docs/from-1.5/functions/datetime/index.mdx
rename to website/content/docs/from-1.5/functions/datetime/index.mdx
index 3a9e880b4..899891fa6 100644
--- a/website/pages/docs/from-1.5/functions/datetime/index.mdx
+++ b/website/content/docs/from-1.5/functions/datetime/index.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: datetime - Functions - Configuration Language
sidebar_title: Date and Time Functions
description: Overview of available datetime functions
diff --git a/website/pages/docs/from-1.5/functions/datetime/timeadd.mdx b/website/content/docs/from-1.5/functions/datetime/timeadd.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/datetime/timeadd.mdx
rename to website/content/docs/from-1.5/functions/datetime/timeadd.mdx
index f1d7f881b..49b42a0e7 100644
--- a/website/pages/docs/from-1.5/functions/datetime/timeadd.mdx
+++ b/website/content/docs/from-1.5/functions/datetime/timeadd.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: timeadd - Functions - Configuration Language
sidebar_title: timeadd
description: |-
diff --git a/website/pages/docs/from-1.5/functions/datetime/timestamp.mdx b/website/content/docs/from-1.5/functions/datetime/timestamp.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/datetime/timestamp.mdx
rename to website/content/docs/from-1.5/functions/datetime/timestamp.mdx
index a16cc8d1a..620ad8ea0 100644
--- a/website/pages/docs/from-1.5/functions/datetime/timestamp.mdx
+++ b/website/content/docs/from-1.5/functions/datetime/timestamp.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: timestamp - Functions - Configuration Language
sidebar_title: timestamp
description: |-
diff --git a/website/pages/docs/from-1.5/functions/encoding/base64decode.mdx b/website/content/docs/from-1.5/functions/encoding/base64decode.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/encoding/base64decode.mdx
rename to website/content/docs/from-1.5/functions/encoding/base64decode.mdx
index ac23fd314..05272ee34 100644
--- a/website/pages/docs/from-1.5/functions/encoding/base64decode.mdx
+++ b/website/content/docs/from-1.5/functions/encoding/base64decode.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: base64decode - Functions - Configuration Language
sidebar_title: base64decode
description: The base64decode function decodes a string containing a base64 sequence.
diff --git a/website/pages/docs/from-1.5/functions/encoding/base64encode.mdx b/website/content/docs/from-1.5/functions/encoding/base64encode.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/encoding/base64encode.mdx
rename to website/content/docs/from-1.5/functions/encoding/base64encode.mdx
index b6b8e2305..ee49a3ad4 100644
--- a/website/pages/docs/from-1.5/functions/encoding/base64encode.mdx
+++ b/website/content/docs/from-1.5/functions/encoding/base64encode.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: base64encode - Functions - Configuration Language
sidebar_title: base64encode
description: The base64encode function applies Base64 encoding to a string.
diff --git a/website/pages/docs/from-1.5/functions/encoding/csvdecode.mdx b/website/content/docs/from-1.5/functions/encoding/csvdecode.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/encoding/csvdecode.mdx
rename to website/content/docs/from-1.5/functions/encoding/csvdecode.mdx
index fbcf0cb33..a6bbefa54 100644
--- a/website/pages/docs/from-1.5/functions/encoding/csvdecode.mdx
+++ b/website/content/docs/from-1.5/functions/encoding/csvdecode.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: csvdecode - Functions - Configuration Language
sidebar_title: csvdecode
description: The csvdecode function decodes CSV data into a list of maps.
diff --git a/website/pages/docs/from-1.5/functions/encoding/index.mdx b/website/content/docs/from-1.5/functions/encoding/index.mdx
similarity index 92%
rename from website/pages/docs/from-1.5/functions/encoding/index.mdx
rename to website/content/docs/from-1.5/functions/encoding/index.mdx
index da55a97b5..362eb49f2 100644
--- a/website/pages/docs/from-1.5/functions/encoding/index.mdx
+++ b/website/content/docs/from-1.5/functions/encoding/index.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: encoding - Functions - Configuration Language
sidebar_title: Encoding Functions
description: Overview of available encoding functions
diff --git a/website/pages/docs/from-1.5/functions/encoding/jsondecode.mdx b/website/content/docs/from-1.5/functions/encoding/jsondecode.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/encoding/jsondecode.mdx
rename to website/content/docs/from-1.5/functions/encoding/jsondecode.mdx
index b527590ff..2cce23151 100644
--- a/website/pages/docs/from-1.5/functions/encoding/jsondecode.mdx
+++ b/website/content/docs/from-1.5/functions/encoding/jsondecode.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: jsondecode - Functions - Configuration Language
sidebar_title: jsondecode
description: |-
diff --git a/website/pages/docs/from-1.5/functions/encoding/jsonencode.mdx b/website/content/docs/from-1.5/functions/encoding/jsonencode.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/encoding/jsonencode.mdx
rename to website/content/docs/from-1.5/functions/encoding/jsonencode.mdx
index af4dabf86..56a92a550 100644
--- a/website/pages/docs/from-1.5/functions/encoding/jsonencode.mdx
+++ b/website/content/docs/from-1.5/functions/encoding/jsonencode.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: jsonencode - Functions - Configuration Language
sidebar_title: jsonencode
description: The jsonencode function encodes a given value as a JSON string.
diff --git a/website/pages/docs/from-1.5/functions/encoding/urlencode.mdx b/website/content/docs/from-1.5/functions/encoding/urlencode.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/encoding/urlencode.mdx
rename to website/content/docs/from-1.5/functions/encoding/urlencode.mdx
index 48f59f504..9d83891bc 100644
--- a/website/pages/docs/from-1.5/functions/encoding/urlencode.mdx
+++ b/website/content/docs/from-1.5/functions/encoding/urlencode.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: urlencode - Functions - Configuration Language
sidebar_title: urlencode
description: The urlencode function applies URL encoding to a given string.
diff --git a/website/pages/docs/from-1.5/functions/encoding/yamldecode.mdx b/website/content/docs/from-1.5/functions/encoding/yamldecode.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/encoding/yamldecode.mdx
rename to website/content/docs/from-1.5/functions/encoding/yamldecode.mdx
index 41a3658d6..b6e9f275f 100644
--- a/website/pages/docs/from-1.5/functions/encoding/yamldecode.mdx
+++ b/website/content/docs/from-1.5/functions/encoding/yamldecode.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: yamldecode - Functions - Configuration Language
sidebar_title: yamldecode
description: |-
diff --git a/website/pages/docs/from-1.5/functions/encoding/yamlencode.mdx b/website/content/docs/from-1.5/functions/encoding/yamlencode.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/encoding/yamlencode.mdx
rename to website/content/docs/from-1.5/functions/encoding/yamlencode.mdx
index 4834c2096..8be8b5959 100644
--- a/website/pages/docs/from-1.5/functions/encoding/yamlencode.mdx
+++ b/website/content/docs/from-1.5/functions/encoding/yamlencode.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: yamlencode - Functions - Configuration Language
sidebar_title: yamlencode
description: The yamlencode function encodes a given value as a YAML string.
diff --git a/website/pages/docs/from-1.5/functions/file/abspath.mdx b/website/content/docs/from-1.5/functions/file/abspath.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/file/abspath.mdx
rename to website/content/docs/from-1.5/functions/file/abspath.mdx
index 6398fe8c9..dd60dceb7 100644
--- a/website/pages/docs/from-1.5/functions/file/abspath.mdx
+++ b/website/content/docs/from-1.5/functions/file/abspath.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: abspath - Functions - Configuration Language
sidebar_title: abspath
description: The abspath function converts the argument to an absolute filesystem path.
diff --git a/website/pages/docs/from-1.5/functions/file/basename.mdx b/website/content/docs/from-1.5/functions/file/basename.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/file/basename.mdx
rename to website/content/docs/from-1.5/functions/file/basename.mdx
index bca8b8275..20d3cdddf 100644
--- a/website/pages/docs/from-1.5/functions/file/basename.mdx
+++ b/website/content/docs/from-1.5/functions/file/basename.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: basename - Functions - Configuration Language
sidebar_title: basename
description: |-
diff --git a/website/pages/docs/from-1.5/functions/file/dirname.mdx b/website/content/docs/from-1.5/functions/file/dirname.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/file/dirname.mdx
rename to website/content/docs/from-1.5/functions/file/dirname.mdx
index 839261759..8f067be5f 100644
--- a/website/pages/docs/from-1.5/functions/file/dirname.mdx
+++ b/website/content/docs/from-1.5/functions/file/dirname.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: dirname - Functions - Configuration Language
sidebar_title: dirname
description: The dirname function removes the last portion from a filesystem path.
diff --git a/website/pages/docs/from-1.5/functions/file/file.mdx b/website/content/docs/from-1.5/functions/file/file.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/file/file.mdx
rename to website/content/docs/from-1.5/functions/file/file.mdx
index 66b80f7e1..3df9374fa 100644
--- a/website/pages/docs/from-1.5/functions/file/file.mdx
+++ b/website/content/docs/from-1.5/functions/file/file.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: file - Functions - Configuration Language
sidebar_title: file
description: |-
diff --git a/website/pages/docs/from-1.5/functions/file/fileexists.mdx b/website/content/docs/from-1.5/functions/file/fileexists.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/file/fileexists.mdx
rename to website/content/docs/from-1.5/functions/file/fileexists.mdx
index bdba3d319..ea3a928ee 100644
--- a/website/pages/docs/from-1.5/functions/file/fileexists.mdx
+++ b/website/content/docs/from-1.5/functions/file/fileexists.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: fileexists - Functions - Configuration Language
sidebar_title: fileexists
description: The fileexists function determines whether a file exists at a given path.
diff --git a/website/pages/docs/from-1.5/functions/file/fileset.mdx b/website/content/docs/from-1.5/functions/file/fileset.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/file/fileset.mdx
rename to website/content/docs/from-1.5/functions/file/fileset.mdx
index 7a42ab9bd..5aa9e38e1 100644
--- a/website/pages/docs/from-1.5/functions/file/fileset.mdx
+++ b/website/content/docs/from-1.5/functions/file/fileset.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: fileset - Functions - Configuration Language
sidebar_title: fileset
description: The fileset function enumerates a set of regular file names given a pattern.
diff --git a/website/pages/docs/from-1.5/functions/file/index.mdx b/website/content/docs/from-1.5/functions/file/index.mdx
similarity index 92%
rename from website/pages/docs/from-1.5/functions/file/index.mdx
rename to website/content/docs/from-1.5/functions/file/index.mdx
index a3822eebe..cd976d5c4 100644
--- a/website/pages/docs/from-1.5/functions/file/index.mdx
+++ b/website/content/docs/from-1.5/functions/file/index.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: filesystem - Functions - Configuration Language
sidebar_title: Filesystem Functions
description: Overview of available filesystem functions
diff --git a/website/pages/docs/from-1.5/functions/file/pathexpand.mdx b/website/content/docs/from-1.5/functions/file/pathexpand.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/file/pathexpand.mdx
rename to website/content/docs/from-1.5/functions/file/pathexpand.mdx
index ac3401fa0..5c50ddecc 100644
--- a/website/pages/docs/from-1.5/functions/file/pathexpand.mdx
+++ b/website/content/docs/from-1.5/functions/file/pathexpand.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: pathexpand - Functions - Configuration Language
sidebar_title: pathexpand
description: |-
diff --git a/website/pages/docs/from-1.5/functions/index.mdx b/website/content/docs/from-1.5/functions/index.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/index.mdx
rename to website/content/docs/from-1.5/functions/index.mdx
index acfa04087..d5558f7be 100644
--- a/website/pages/docs/from-1.5/functions/index.mdx
+++ b/website/content/docs/from-1.5/functions/index.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: Functions - Configuration Language
sidebar_title: Functions
description: |-
diff --git a/website/pages/docs/from-1.5/functions/ipnet/cidrhost.mdx b/website/content/docs/from-1.5/functions/ipnet/cidrhost.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/ipnet/cidrhost.mdx
rename to website/content/docs/from-1.5/functions/ipnet/cidrhost.mdx
index a9e4aae20..e1764e32c 100644
--- a/website/pages/docs/from-1.5/functions/ipnet/cidrhost.mdx
+++ b/website/content/docs/from-1.5/functions/ipnet/cidrhost.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: cidrhost - Functions - Configuration Language
sidebar_title: cidrhost
description: |-
diff --git a/website/pages/docs/from-1.5/functions/ipnet/cidrnetmask.mdx b/website/content/docs/from-1.5/functions/ipnet/cidrnetmask.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/ipnet/cidrnetmask.mdx
rename to website/content/docs/from-1.5/functions/ipnet/cidrnetmask.mdx
index fbad904b4..599305cb8 100644
--- a/website/pages/docs/from-1.5/functions/ipnet/cidrnetmask.mdx
+++ b/website/content/docs/from-1.5/functions/ipnet/cidrnetmask.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: cidrnetmask - Functions - Configuration Language
sidebar_title: cidrnetmask
description: |-
diff --git a/website/pages/docs/from-1.5/functions/ipnet/cidrsubnet.mdx b/website/content/docs/from-1.5/functions/ipnet/cidrsubnet.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/ipnet/cidrsubnet.mdx
rename to website/content/docs/from-1.5/functions/ipnet/cidrsubnet.mdx
index 4c630c5c9..428d51679 100644
--- a/website/pages/docs/from-1.5/functions/ipnet/cidrsubnet.mdx
+++ b/website/content/docs/from-1.5/functions/ipnet/cidrsubnet.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: cidrsubnet - Functions - Configuration Language
sidebar_title: cidrsubnet
description: |-
diff --git a/website/pages/docs/from-1.5/functions/ipnet/cidrsubnets.mdx b/website/content/docs/from-1.5/functions/ipnet/cidrsubnets.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/ipnet/cidrsubnets.mdx
rename to website/content/docs/from-1.5/functions/ipnet/cidrsubnets.mdx
index ee8844999..57d757f0d 100644
--- a/website/pages/docs/from-1.5/functions/ipnet/cidrsubnets.mdx
+++ b/website/content/docs/from-1.5/functions/ipnet/cidrsubnets.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: cidrsubnets - Functions - Configuration Language
description: |-
The cidrsubnets function calculates a sequence of consecutive IP address
diff --git a/website/pages/docs/from-1.5/functions/ipnet/index.mdx b/website/content/docs/from-1.5/functions/ipnet/index.mdx
similarity index 92%
rename from website/pages/docs/from-1.5/functions/ipnet/index.mdx
rename to website/content/docs/from-1.5/functions/ipnet/index.mdx
index 7c0c94be7..202b5841c 100644
--- a/website/pages/docs/from-1.5/functions/ipnet/index.mdx
+++ b/website/content/docs/from-1.5/functions/ipnet/index.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: ipnet - Functions - Configuration Language
sidebar_title: IP Network Functions
description: Overview of available ipnet functions
diff --git a/website/pages/docs/from-1.5/functions/numeric/abs.mdx b/website/content/docs/from-1.5/functions/numeric/abs.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/numeric/abs.mdx
rename to website/content/docs/from-1.5/functions/numeric/abs.mdx
index 6f7ac269f..b838b0c98 100644
--- a/website/pages/docs/from-1.5/functions/numeric/abs.mdx
+++ b/website/content/docs/from-1.5/functions/numeric/abs.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: abs - Functions - Configuration Language
sidebar_title: abs
description: The abs function returns the absolute value of the given number.
diff --git a/website/pages/docs/from-1.5/functions/numeric/ceil.mdx b/website/content/docs/from-1.5/functions/numeric/ceil.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/numeric/ceil.mdx
rename to website/content/docs/from-1.5/functions/numeric/ceil.mdx
index b4c822e08..a35345c3a 100644
--- a/website/pages/docs/from-1.5/functions/numeric/ceil.mdx
+++ b/website/content/docs/from-1.5/functions/numeric/ceil.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: ceil - Functions - Configuration Language
sidebar_title: ceil
description: |-
diff --git a/website/pages/docs/from-1.5/functions/numeric/floor.mdx b/website/content/docs/from-1.5/functions/numeric/floor.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/numeric/floor.mdx
rename to website/content/docs/from-1.5/functions/numeric/floor.mdx
index 922c17b62..c46fe5643 100644
--- a/website/pages/docs/from-1.5/functions/numeric/floor.mdx
+++ b/website/content/docs/from-1.5/functions/numeric/floor.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: floor - Functions - Configuration Language
sidebar_title: floor
description: |-
diff --git a/website/pages/docs/from-1.5/functions/numeric/index.mdx b/website/content/docs/from-1.5/functions/numeric/index.mdx
similarity index 92%
rename from website/pages/docs/from-1.5/functions/numeric/index.mdx
rename to website/content/docs/from-1.5/functions/numeric/index.mdx
index 212be5fa4..7ad30a6b0 100644
--- a/website/pages/docs/from-1.5/functions/numeric/index.mdx
+++ b/website/content/docs/from-1.5/functions/numeric/index.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: Numeric - Functions - Configuration Language
sidebar_title: Numeric Functions
description: Overview of available numeric functions
diff --git a/website/pages/docs/from-1.5/functions/numeric/log.mdx b/website/content/docs/from-1.5/functions/numeric/log.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/numeric/log.mdx
rename to website/content/docs/from-1.5/functions/numeric/log.mdx
index 5858366a3..42588586a 100644
--- a/website/pages/docs/from-1.5/functions/numeric/log.mdx
+++ b/website/content/docs/from-1.5/functions/numeric/log.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: log - Functions - Configuration Language
sidebar_title: log
description: The log function returns the logarithm of a given number in a given base.
diff --git a/website/pages/docs/from-1.5/functions/numeric/max.mdx b/website/content/docs/from-1.5/functions/numeric/max.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/numeric/max.mdx
rename to website/content/docs/from-1.5/functions/numeric/max.mdx
index 5a4bf8588..6af969230 100644
--- a/website/pages/docs/from-1.5/functions/numeric/max.mdx
+++ b/website/content/docs/from-1.5/functions/numeric/max.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: max - Functions - Configuration Language
sidebar_title: max
description: The max function takes one or more numbers and returns the greatest number.
diff --git a/website/pages/docs/from-1.5/functions/numeric/min.mdx b/website/content/docs/from-1.5/functions/numeric/min.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/numeric/min.mdx
rename to website/content/docs/from-1.5/functions/numeric/min.mdx
index 89c2126b4..5489d6b55 100644
--- a/website/pages/docs/from-1.5/functions/numeric/min.mdx
+++ b/website/content/docs/from-1.5/functions/numeric/min.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: min - Functions - Configuration Language
sidebar_title: min
description: The min function takes one or more numbers and returns the smallest number.
diff --git a/website/pages/docs/from-1.5/functions/numeric/parseint.mdx b/website/content/docs/from-1.5/functions/numeric/parseint.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/numeric/parseint.mdx
rename to website/content/docs/from-1.5/functions/numeric/parseint.mdx
index 48a560514..1de74f6a6 100644
--- a/website/pages/docs/from-1.5/functions/numeric/parseint.mdx
+++ b/website/content/docs/from-1.5/functions/numeric/parseint.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: parseint - Functions - Configuration Language
sidebar_title: parseint
description: >-
diff --git a/website/pages/docs/from-1.5/functions/numeric/pow.mdx b/website/content/docs/from-1.5/functions/numeric/pow.mdx
similarity index 96%
rename from website/pages/docs/from-1.5/functions/numeric/pow.mdx
rename to website/content/docs/from-1.5/functions/numeric/pow.mdx
index b771e02d6..e745cfe95 100644
--- a/website/pages/docs/from-1.5/functions/numeric/pow.mdx
+++ b/website/content/docs/from-1.5/functions/numeric/pow.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: pow - Functions - Configuration Language
sidebar_title: pow
description: The pow function raises a number to a power.
diff --git a/website/pages/docs/from-1.5/functions/numeric/signum.mdx b/website/content/docs/from-1.5/functions/numeric/signum.mdx
similarity index 96%
rename from website/pages/docs/from-1.5/functions/numeric/signum.mdx
rename to website/content/docs/from-1.5/functions/numeric/signum.mdx
index 0ddb37080..e4af2b1eb 100644
--- a/website/pages/docs/from-1.5/functions/numeric/signum.mdx
+++ b/website/content/docs/from-1.5/functions/numeric/signum.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: signum - Functions - Configuration Language
sidebar_title: signum
description: The signum function determines the sign of a number.
diff --git a/website/pages/docs/from-1.5/functions/string/chomp.mdx b/website/content/docs/from-1.5/functions/string/chomp.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/string/chomp.mdx
rename to website/content/docs/from-1.5/functions/string/chomp.mdx
index a4691ccfa..ab594f474 100644
--- a/website/pages/docs/from-1.5/functions/string/chomp.mdx
+++ b/website/content/docs/from-1.5/functions/string/chomp.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: chomp - Functions - Configuration Language
sidebar_title: chomp
description: The chomp function removes newline characters at the end of a string.
diff --git a/website/pages/docs/from-1.5/functions/string/format.mdx b/website/content/docs/from-1.5/functions/string/format.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/string/format.mdx
rename to website/content/docs/from-1.5/functions/string/format.mdx
index 2db218fad..d3f3f3432 100644
--- a/website/pages/docs/from-1.5/functions/string/format.mdx
+++ b/website/content/docs/from-1.5/functions/string/format.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: format - Functions - Configuration Language
sidebar_title: format
description: |-
diff --git a/website/pages/docs/from-1.5/functions/string/formatlist.mdx b/website/content/docs/from-1.5/functions/string/formatlist.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/string/formatlist.mdx
rename to website/content/docs/from-1.5/functions/string/formatlist.mdx
index 9ad5c024b..97b3637dd 100644
--- a/website/pages/docs/from-1.5/functions/string/formatlist.mdx
+++ b/website/content/docs/from-1.5/functions/string/formatlist.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: formatlist - Functions - Configuration Language
sidebar_title: formatlist
description: |-
diff --git a/website/pages/docs/from-1.5/functions/string/indent.mdx b/website/content/docs/from-1.5/functions/string/indent.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/string/indent.mdx
rename to website/content/docs/from-1.5/functions/string/indent.mdx
index 786ad73bd..60dcdf756 100644
--- a/website/pages/docs/from-1.5/functions/string/indent.mdx
+++ b/website/content/docs/from-1.5/functions/string/indent.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: indent - Functions - Configuration Language
sidebar_title: indent
description: |-
diff --git a/website/pages/docs/from-1.5/functions/string/index.mdx b/website/content/docs/from-1.5/functions/string/index.mdx
similarity index 91%
rename from website/pages/docs/from-1.5/functions/string/index.mdx
rename to website/content/docs/from-1.5/functions/string/index.mdx
index 57bfdd412..9b2cef305 100644
--- a/website/pages/docs/from-1.5/functions/string/index.mdx
+++ b/website/content/docs/from-1.5/functions/string/index.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: string - Functions - Configuration Language
sidebar_title: String Functions
description: Overview of available string functions
diff --git a/website/pages/docs/from-1.5/functions/string/join.mdx b/website/content/docs/from-1.5/functions/string/join.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/string/join.mdx
rename to website/content/docs/from-1.5/functions/string/join.mdx
index a931238d4..4f7580af4 100644
--- a/website/pages/docs/from-1.5/functions/string/join.mdx
+++ b/website/content/docs/from-1.5/functions/string/join.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: join - Functions - Configuration Language
sidebar_title: join
description: |-
diff --git a/website/pages/docs/from-1.5/functions/string/lower.mdx b/website/content/docs/from-1.5/functions/string/lower.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/string/lower.mdx
rename to website/content/docs/from-1.5/functions/string/lower.mdx
index 5b6095b2a..5c38cd983 100644
--- a/website/pages/docs/from-1.5/functions/string/lower.mdx
+++ b/website/content/docs/from-1.5/functions/string/lower.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: lower - Functions - Configuration Language
sidebar_title: lower
description: >-
diff --git a/website/pages/docs/from-1.5/functions/string/regex_replace.mdx b/website/content/docs/from-1.5/functions/string/regex_replace.mdx
similarity index 96%
rename from website/pages/docs/from-1.5/functions/string/regex_replace.mdx
rename to website/content/docs/from-1.5/functions/string/regex_replace.mdx
index 7d209a287..6d022d045 100644
--- a/website/pages/docs/from-1.5/functions/string/regex_replace.mdx
+++ b/website/content/docs/from-1.5/functions/string/regex_replace.mdx
@@ -1,10 +1,12 @@
---
-layout: docs
page_title: regex_replace - Functions - Configuration Language
sidebar_title: regex_replace
-description: |-
- The regex_replace function searches a given string for another given substring,
+description: >-
+ The regex_replace function searches a given string for another given
+ substring,
+
and replaces all occurrences with a given replacement string. The substring
+
argument can be a valid regular expression or a string.
---
diff --git a/website/pages/docs/from-1.5/functions/string/replace.mdx b/website/content/docs/from-1.5/functions/string/replace.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/string/replace.mdx
rename to website/content/docs/from-1.5/functions/string/replace.mdx
index 472f55da4..55475f0f5 100644
--- a/website/pages/docs/from-1.5/functions/string/replace.mdx
+++ b/website/content/docs/from-1.5/functions/string/replace.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: replace - Functions - Configuration Language
sidebar_title: replace
description: |-
diff --git a/website/pages/docs/from-1.5/functions/string/split.mdx b/website/content/docs/from-1.5/functions/string/split.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/string/split.mdx
rename to website/content/docs/from-1.5/functions/string/split.mdx
index 9315267da..4257f9fa4 100644
--- a/website/pages/docs/from-1.5/functions/string/split.mdx
+++ b/website/content/docs/from-1.5/functions/string/split.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: split - Functions - Configuration Language
sidebar_title: split
description: |-
diff --git a/website/pages/docs/from-1.5/functions/string/strrev.mdx b/website/content/docs/from-1.5/functions/string/strrev.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/string/strrev.mdx
rename to website/content/docs/from-1.5/functions/string/strrev.mdx
index ae08fe615..3a5f9f43e 100644
--- a/website/pages/docs/from-1.5/functions/string/strrev.mdx
+++ b/website/content/docs/from-1.5/functions/string/strrev.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: strrev - Functions - Configuration Language
sidebar_title: strrev
description: The strrev function reverses a string.
diff --git a/website/pages/docs/from-1.5/functions/string/substr.mdx b/website/content/docs/from-1.5/functions/string/substr.mdx
similarity index 97%
rename from website/pages/docs/from-1.5/functions/string/substr.mdx
rename to website/content/docs/from-1.5/functions/string/substr.mdx
index 96bc11544..1f1b3ee38 100644
--- a/website/pages/docs/from-1.5/functions/string/substr.mdx
+++ b/website/content/docs/from-1.5/functions/string/substr.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: substr - Functions - Configuration Language
sidebar_title: substr
description: |-
diff --git a/website/pages/docs/from-1.5/functions/string/title.mdx b/website/content/docs/from-1.5/functions/string/title.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/string/title.mdx
rename to website/content/docs/from-1.5/functions/string/title.mdx
index 454c8ee67..1d9f81f93 100644
--- a/website/pages/docs/from-1.5/functions/string/title.mdx
+++ b/website/content/docs/from-1.5/functions/string/title.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: title - Functions - Configuration Language
sidebar_title: title
description: |-
diff --git a/website/pages/docs/from-1.5/functions/string/trim.mdx b/website/content/docs/from-1.5/functions/string/trim.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/string/trim.mdx
rename to website/content/docs/from-1.5/functions/string/trim.mdx
index 043b71bc3..2f1f473fd 100644
--- a/website/pages/docs/from-1.5/functions/string/trim.mdx
+++ b/website/content/docs/from-1.5/functions/string/trim.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: trim - Functions - Configuration Language
sidebar_title: trim
description: |-
diff --git a/website/pages/docs/from-1.5/functions/string/trimprefix.mdx b/website/content/docs/from-1.5/functions/string/trimprefix.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/string/trimprefix.mdx
rename to website/content/docs/from-1.5/functions/string/trimprefix.mdx
index 79e0f24f4..00dcbddf8 100644
--- a/website/pages/docs/from-1.5/functions/string/trimprefix.mdx
+++ b/website/content/docs/from-1.5/functions/string/trimprefix.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: trimprefix - Functions - Configuration Language
sidebar_title: trimprefix
description: |-
diff --git a/website/pages/docs/from-1.5/functions/string/trimspace.mdx b/website/content/docs/from-1.5/functions/string/trimspace.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/string/trimspace.mdx
rename to website/content/docs/from-1.5/functions/string/trimspace.mdx
index 6b223d222..e0e2a91b5 100644
--- a/website/pages/docs/from-1.5/functions/string/trimspace.mdx
+++ b/website/content/docs/from-1.5/functions/string/trimspace.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: trimspace - Functions - Configuration Language
sidebar_title: trimspace
description: |-
diff --git a/website/pages/docs/from-1.5/functions/string/trimsuffix.mdx b/website/content/docs/from-1.5/functions/string/trimsuffix.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/string/trimsuffix.mdx
rename to website/content/docs/from-1.5/functions/string/trimsuffix.mdx
index 8f0d72e56..0ea882385 100644
--- a/website/pages/docs/from-1.5/functions/string/trimsuffix.mdx
+++ b/website/content/docs/from-1.5/functions/string/trimsuffix.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: trimsuffix - Functions - Configuration Language
sidebar_title: trimsuffix
description: |-
diff --git a/website/pages/docs/from-1.5/functions/string/upper.mdx b/website/content/docs/from-1.5/functions/string/upper.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/string/upper.mdx
rename to website/content/docs/from-1.5/functions/string/upper.mdx
index f95477570..6145a7db0 100644
--- a/website/pages/docs/from-1.5/functions/string/upper.mdx
+++ b/website/content/docs/from-1.5/functions/string/upper.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: upper - Functions - Configuration Language
sidebar_title: upper
description: >-
diff --git a/website/pages/docs/from-1.5/functions/uuid/index.mdx b/website/content/docs/from-1.5/functions/uuid/index.mdx
similarity index 91%
rename from website/pages/docs/from-1.5/functions/uuid/index.mdx
rename to website/content/docs/from-1.5/functions/uuid/index.mdx
index 78d997912..970b48fb0 100644
--- a/website/pages/docs/from-1.5/functions/uuid/index.mdx
+++ b/website/content/docs/from-1.5/functions/uuid/index.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: uuid - Functions - Configuration Language
sidebar_title: UUID Functions
description: Overview of available uuid functions
diff --git a/website/pages/docs/from-1.5/functions/uuid/uuidv4.mdx b/website/content/docs/from-1.5/functions/uuid/uuidv4.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/functions/uuid/uuidv4.mdx
rename to website/content/docs/from-1.5/functions/uuid/uuidv4.mdx
index af5d5d57e..dd9a0400b 100644
--- a/website/pages/docs/from-1.5/functions/uuid/uuidv4.mdx
+++ b/website/content/docs/from-1.5/functions/uuid/uuidv4.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: v4 - uuid - Functions - Configuration Language
sidebar_title: uuidv4
description: The uuidv4 function generates a unique id.
diff --git a/website/pages/docs/from-1.5/functions/uuid/uuidv5.mdx b/website/content/docs/from-1.5/functions/uuid/uuidv5.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/functions/uuid/uuidv5.mdx
rename to website/content/docs/from-1.5/functions/uuid/uuidv5.mdx
index fe3409211..8d7341eba 100644
--- a/website/pages/docs/from-1.5/functions/uuid/uuidv5.mdx
+++ b/website/content/docs/from-1.5/functions/uuid/uuidv5.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: uuidv5 - Functions - Configuration Language
sidebar_title: uuidv5
description: |-
diff --git a/website/pages/docs/from-1.5/index.mdx b/website/content/docs/from-1.5/index.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/index.mdx
rename to website/content/docs/from-1.5/index.mdx
index 928d309d8..8a4deb8bf 100644
--- a/website/pages/docs/from-1.5/index.mdx
+++ b/website/content/docs/from-1.5/index.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: Configuration Language
sidebar_title: v1.5 Configuration Language
description: |-
diff --git a/website/pages/docs/from-1.5/locals.mdx b/website/content/docs/from-1.5/locals.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/locals.mdx
rename to website/content/docs/from-1.5/locals.mdx
index f482be743..deb07a961 100644
--- a/website/pages/docs/from-1.5/locals.mdx
+++ b/website/content/docs/from-1.5/locals.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: Local Values - HCL Configuration Language
sidebar_title: Locals
description: >-
diff --git a/website/pages/docs/from-1.5/onlyexcept.mdx b/website/content/docs/from-1.5/onlyexcept.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/onlyexcept.mdx
rename to website/content/docs/from-1.5/onlyexcept.mdx
index 60e1f82c0..91c4b6309 100644
--- a/website/pages/docs/from-1.5/onlyexcept.mdx
+++ b/website/content/docs/from-1.5/onlyexcept.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: Only Except - HCL Configuration Language
sidebar_title: Only Except
description: >-
diff --git a/website/pages/docs/from-1.5/path-variables.mdx b/website/content/docs/from-1.5/path-variables.mdx
similarity index 98%
rename from website/pages/docs/from-1.5/path-variables.mdx
rename to website/content/docs/from-1.5/path-variables.mdx
index d95e468de..e5c17e41f 100644
--- a/website/pages/docs/from-1.5/path-variables.mdx
+++ b/website/content/docs/from-1.5/path-variables.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: Path Variables - HCL Configuration Language
sidebar_title: Path Variables
description: |-
@@ -13,7 +12,6 @@ description: |-
- `path.root`: the directory of the input HCL file or the input folder.
-
## Examples
```HCL
diff --git a/website/pages/docs/from-1.5/syntax-json.mdx b/website/content/docs/from-1.5/syntax-json.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/syntax-json.mdx
rename to website/content/docs/from-1.5/syntax-json.mdx
index 4bf24c17d..f523c5d97 100644
--- a/website/pages/docs/from-1.5/syntax-json.mdx
+++ b/website/content/docs/from-1.5/syntax-json.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: JSON Configuration Syntax - Configuration Language
sidebar_title: JSON Syntax
description: |-
diff --git a/website/pages/docs/from-1.5/syntax.mdx b/website/content/docs/from-1.5/syntax.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/syntax.mdx
rename to website/content/docs/from-1.5/syntax.mdx
index ce6e8e5f7..b16832362 100644
--- a/website/pages/docs/from-1.5/syntax.mdx
+++ b/website/content/docs/from-1.5/syntax.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: Syntax - Configuration Language
sidebar_title: Syntax
description: |-
diff --git a/website/pages/docs/from-1.5/variables.mdx b/website/content/docs/from-1.5/variables.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/variables.mdx
rename to website/content/docs/from-1.5/variables.mdx
index 73c5c3746..e9d0f3b34 100644
--- a/website/pages/docs/from-1.5/variables.mdx
+++ b/website/content/docs/from-1.5/variables.mdx
@@ -1,5 +1,4 @@
---
-layout: docs
page_title: Input Variables - HCL Configuration Language
sidebar_title: Variables
description: |-
@@ -134,7 +133,7 @@ value must be convertible to the specified type.
If only `default` is specified, the type of the default value will be used.
-When the `type` and `default` are both *not* specified and you try to set a
+When the `type` and `default` are both _not_ specified and you try to set a
variable [from env vars](#environment-variables) or [from the command
line](#variables-on-the-command-line), the variable will always be interpreted
as a string.
diff --git a/website/pages/docs/index.mdx b/website/content/docs/index.mdx
similarity index 97%
rename from website/pages/docs/index.mdx
rename to website/content/docs/index.mdx
index ac553c85d..d1f92a760 100644
--- a/website/pages/docs/index.mdx
+++ b/website/content/docs/index.mdx
@@ -4,7 +4,6 @@ description: |
guide for all available features and options in Packer. If you're just getting
started with Packer, please start with the introduction and getting started
guide instead.
-layout: docs
page_title: Documentation
---
diff --git a/website/pages/docs/install.mdx b/website/content/docs/install.mdx
similarity index 96%
rename from website/pages/docs/install.mdx
rename to website/content/docs/install.mdx
index fe80aaf13..dcaee22e3 100644
--- a/website/pages/docs/install.mdx
+++ b/website/content/docs/install.mdx
@@ -2,7 +2,6 @@
description: |
Installing Packer is simple. You can download a precompiled binary or compile
from source. This page details both methods.
-layout: docs
page_title: Install
sidebar_title: Installing Packer
---
diff --git a/website/pages/docs/post-processors/alicloud-import.mdx b/website/content/docs/post-processors/alicloud-import.mdx
similarity index 99%
rename from website/pages/docs/post-processors/alicloud-import.mdx
rename to website/content/docs/post-processors/alicloud-import.mdx
index a9ce5a9ce..a0bc9dae3 100644
--- a/website/pages/docs/post-processors/alicloud-import.mdx
+++ b/website/content/docs/post-processors/alicloud-import.mdx
@@ -2,7 +2,6 @@
description: |
The Packer Alicloud Import post-processor takes a RAW or VHD artifact from
various builders and imports it to an Alicloud customized image list.
-layout: docs
page_title: Alicloud Import Post-Processor
sidebar_title: Alicloud Import
---
diff --git a/website/pages/docs/post-processors/amazon-import.mdx b/website/content/docs/post-processors/amazon-import.mdx
similarity index 97%
rename from website/pages/docs/post-processors/amazon-import.mdx
rename to website/content/docs/post-processors/amazon-import.mdx
index 7160fa1f4..d89659a67 100644
--- a/website/pages/docs/post-processors/amazon-import.mdx
+++ b/website/content/docs/post-processors/amazon-import.mdx
@@ -2,7 +2,6 @@
description: |
The Packer Amazon Import post-processor takes an OVA artifact from various
builders and imports it to an AMI available to Amazon Web Services EC2.
-layout: docs
page_title: Amazon Import - Post-Processors
sidebar_title: Amazon Import
---
@@ -216,14 +215,14 @@ You'll need at least the following permissions in the policy for your IAM user
in order to successfully upload an image via the amazon-import post-processor.
```json
- "ec2:CancelImportTask",
- "ec2:CopyImage",
- "ec2:CreateTags",
- "ec2:DescribeImages",
- "ec2:DescribeImportImageTasks",
- "ec2:ImportImage",
- "ec2:ModifyImageAttribute",
- "ec2:DeregisterImage"
+("ec2:CancelImportTask",
+"ec2:CopyImage",
+"ec2:CreateTags",
+"ec2:DescribeImages",
+"ec2:DescribeImportImageTasks",
+"ec2:ImportImage",
+"ec2:ModifyImageAttribute",
+"ec2:DeregisterImage")
```
## Troubleshooting Timeouts
diff --git a/website/pages/docs/post-processors/artifice.mdx b/website/content/docs/post-processors/artifice.mdx
similarity index 99%
rename from website/pages/docs/post-processors/artifice.mdx
rename to website/content/docs/post-processors/artifice.mdx
index 8d0ecd49b..e993fdb8a 100644
--- a/website/pages/docs/post-processors/artifice.mdx
+++ b/website/content/docs/post-processors/artifice.mdx
@@ -12,7 +12,6 @@ description: >
EC2
instance.
-layout: docs
page_title: Artifice - Post-Processors
sidebar_title: Artifice
---
diff --git a/website/pages/docs/post-processors/checksum.mdx b/website/content/docs/post-processors/checksum.mdx
similarity index 86%
rename from website/pages/docs/post-processors/checksum.mdx
rename to website/content/docs/post-processors/checksum.mdx
index 1bb216336..4dd423bd6 100644
--- a/website/pages/docs/post-processors/checksum.mdx
+++ b/website/content/docs/post-processors/checksum.mdx
@@ -1,11 +1,11 @@
---
description: >
The checksum post-processor computes specified checksum for the artifact list
- from an upstream builder or post-processor. All downstream post-processors will
- see the new artifacts. The primary use-case is compute checksum for artifacts
- allows to verify it later. So firstly this post-processor get artifact, compute
- it checksum and pass to next post-processor original artifacts and checksum files.
-layout: docs
+ from an upstream builder or post-processor. All downstream post-processors
+ will see the new artifacts. The primary use-case is compute checksum for
+ artifacts allows to verify it later. So firstly this post-processor get
+ artifact, compute it checksum and pass to next post-processor original
+ artifacts and checksum files.
page_title: Checksum - Post-Processors
sidebar_title: Checksum
---
@@ -58,12 +58,13 @@ Optional parameters:
- `checksum_types` (array of strings) - An array of strings of checksum types
to compute. If empty, Defaults to md5. Allowed values are:
- * md5
- * sha1
- * sha224
- * sha256
- * sha384
- * sha512
+
+ - md5
+ - sha1
+ - sha224
+ - sha256
+ - sha384
+ - sha512
- `output` (string) - Specify filename to store checksums. This defaults to
`packer_{{.BuildName}}_{{.BuilderType}}_{{.ChecksumType}}.checksum`. For
diff --git a/website/pages/docs/post-processors/community-supported.mdx b/website/content/docs/post-processors/community-supported.mdx
similarity index 91%
rename from website/pages/docs/post-processors/community-supported.mdx
rename to website/content/docs/post-processors/community-supported.mdx
index 45a1f6bf9..4db4e556d 100644
--- a/website/pages/docs/post-processors/community-supported.mdx
+++ b/website/content/docs/post-processors/community-supported.mdx
@@ -1,8 +1,9 @@
---
-description: |
- Community-maintained post-processors are not part of the core Packer binary, but
+description: >
+ Community-maintained post-processors are not part of the core Packer binary,
+ but
+
can run alongside Packer with minimal extra effort.
-layout: docs
page_title: Community - Post-Processors
sidebar_title: Community-Supported
---
diff --git a/website/pages/docs/post-processors/compress.mdx b/website/content/docs/post-processors/compress.mdx
similarity index 99%
rename from website/pages/docs/post-processors/compress.mdx
rename to website/content/docs/post-processors/compress.mdx
index f3791ae01..91647fa30 100644
--- a/website/pages/docs/post-processors/compress.mdx
+++ b/website/content/docs/post-processors/compress.mdx
@@ -2,7 +2,6 @@
description: |
The Packer compress post-processor takes an artifact with files (such as from
VMware or VirtualBox) and compresses the artifact into a single archive.
-layout: docs
page_title: Compress - Post-Processors
sidebar_title: Compress
---
diff --git a/website/pages/docs/post-processors/digitalocean-import.mdx b/website/content/docs/post-processors/digitalocean-import.mdx
similarity index 99%
rename from website/pages/docs/post-processors/digitalocean-import.mdx
rename to website/content/docs/post-processors/digitalocean-import.mdx
index 6d7db5764..c92858e0f 100644
--- a/website/pages/docs/post-processors/digitalocean-import.mdx
+++ b/website/content/docs/post-processors/digitalocean-import.mdx
@@ -2,7 +2,6 @@
description: |
The Packer DigitalOcean Import post-processor takes an image artifact
from various builders and imports it to DigitalOcean.
-layout: docs
page_title: DigitalOcean Import - Post-Processors
sidebar_title: DigitalOcean Import
---
diff --git a/website/pages/docs/post-processors/docker-import.mdx b/website/content/docs/post-processors/docker-import.mdx
similarity index 95%
rename from website/pages/docs/post-processors/docker-import.mdx
rename to website/content/docs/post-processors/docker-import.mdx
index 4108bf13b..b5ecb4e71 100644
--- a/website/pages/docs/post-processors/docker-import.mdx
+++ b/website/content/docs/post-processors/docker-import.mdx
@@ -4,7 +4,6 @@ description: |
builder and imports it with Docker locally. This allows you to apply a
repository and tag to the image and lets you use the other Docker
post-processors such as docker-push to push the image to a registry.
-layout: docs
page_title: Docker Import - Post-Processors
sidebar_title: Docker Import
---
@@ -27,21 +26,23 @@ registry.
```json
{
- "builders": [{
- "type": "docker",
- "image": "ubuntu:18.04",
- "export_path": "party_parrot.tar"
- }],
+ "builders": [
+ {
+ "type": "docker",
+ "image": "ubuntu:18.04",
+ "export_path": "party_parrot.tar"
+ }
+ ],
"post-processors": [
{
- "type": "docker-import",
- "repository": "local/ubuntu",
- "tag": "latest"
- }
-]
+ "type": "docker-import",
+ "repository": "local/ubuntu",
+ "tag": "latest"
+ }
+ ]
}
-
```
+
diff --git a/website/pages/docs/post-processors/docker-push.mdx b/website/content/docs/post-processors/docker-push.mdx
similarity index 99%
rename from website/pages/docs/post-processors/docker-push.mdx
rename to website/content/docs/post-processors/docker-push.mdx
index 7bc916c4e..23a1f09c0 100644
--- a/website/pages/docs/post-processors/docker-push.mdx
+++ b/website/content/docs/post-processors/docker-push.mdx
@@ -2,7 +2,6 @@
description: |
The Packer Docker push post-processor takes an artifact from the docker-import
post-processor and pushes it to a Docker registry.
-layout: docs
page_title: Docker Push - Post-Processors
sidebar_title: Docker Push
---
diff --git a/website/pages/docs/post-processors/docker-save.mdx b/website/content/docs/post-processors/docker-save.mdx
similarity index 99%
rename from website/pages/docs/post-processors/docker-save.mdx
rename to website/content/docs/post-processors/docker-save.mdx
index 4b75857b7..53ec51e7d 100644
--- a/website/pages/docs/post-processors/docker-save.mdx
+++ b/website/content/docs/post-processors/docker-save.mdx
@@ -8,7 +8,6 @@ description: >
Docker image directly from the builder, except that it preserves the hierarchy
of images and metadata.
-layout: docs
page_title: Docker Save - Post-Processors
sidebar_title: Docker Save
---
diff --git a/website/pages/docs/post-processors/docker-tag.mdx b/website/content/docs/post-processors/docker-tag.mdx
similarity index 99%
rename from website/pages/docs/post-processors/docker-tag.mdx
rename to website/content/docs/post-processors/docker-tag.mdx
index eea6a5c11..2d829c388 100644
--- a/website/pages/docs/post-processors/docker-tag.mdx
+++ b/website/content/docs/post-processors/docker-tag.mdx
@@ -4,7 +4,6 @@ description: |
that was committed and tags it into a repository. This allows you to use the
other Docker post-processors such as docker-push to push the image to a
registry.
-layout: docs
page_title: Docker Tag - Post-Processors
sidebar_title: Docker Tag
---
diff --git a/website/pages/docs/post-processors/exoscale-import.mdx b/website/content/docs/post-processors/exoscale-import.mdx
similarity index 99%
rename from website/pages/docs/post-processors/exoscale-import.mdx
rename to website/content/docs/post-processors/exoscale-import.mdx
index 48442cc4c..68b7e14aa 100644
--- a/website/pages/docs/post-processors/exoscale-import.mdx
+++ b/website/content/docs/post-processors/exoscale-import.mdx
@@ -2,7 +2,6 @@
description: |
The Packer Exoscale Import post-processor takes an image artifact
from various builders and imports it to Exoscale.
-layout: docs
page_title: Exoscale Import - Post-Processors
sidebar_title: Exoscale Import
---
diff --git a/website/pages/docs/post-processors/googlecompute-export.mdx b/website/content/docs/post-processors/googlecompute-export.mdx
similarity index 96%
rename from website/pages/docs/post-processors/googlecompute-export.mdx
rename to website/content/docs/post-processors/googlecompute-export.mdx
index c10a1b9c4..6041b5287 100644
--- a/website/pages/docs/post-processors/googlecompute-export.mdx
+++ b/website/content/docs/post-processors/googlecompute-export.mdx
@@ -1,9 +1,9 @@
---
description: >
The Google Compute Image Exporter post-processor exports an image from a
- Packer googlecompute builder run and uploads it to Google Cloud Storage. The exported
- images can be easily shared and uploaded to other Google Cloud Projects.
-layout: docs
+ Packer googlecompute builder run and uploads it to Google Cloud Storage. The
+ exported images can be easily shared and uploaded to other Google Cloud
+ Projects.
page_title: Google Compute Image Exporter - Post-Processors
sidebar_title: Google Compute Export
---
diff --git a/website/pages/docs/post-processors/googlecompute-import.mdx b/website/content/docs/post-processors/googlecompute-import.mdx
similarity index 99%
rename from website/pages/docs/post-processors/googlecompute-import.mdx
rename to website/content/docs/post-processors/googlecompute-import.mdx
index 874b51d66..60fc97250 100644
--- a/website/pages/docs/post-processors/googlecompute-import.mdx
+++ b/website/content/docs/post-processors/googlecompute-import.mdx
@@ -2,7 +2,6 @@
description: |
The Google Compute Image Import post-processor takes a compressed raw disk
image and imports it to a GCE image available to Google Compute Engine.
-layout: docs
page_title: Google Compute Image Import - Post-Processors
sidebar_title: Google Compute Import
---
diff --git a/website/pages/docs/post-processors/index.mdx b/website/content/docs/post-processors/index.mdx
similarity index 97%
rename from website/pages/docs/post-processors/index.mdx
rename to website/content/docs/post-processors/index.mdx
index e65ba2806..c90dab1d0 100644
--- a/website/pages/docs/post-processors/index.mdx
+++ b/website/content/docs/post-processors/index.mdx
@@ -2,7 +2,6 @@
description: |
Post-processors run after the image is built by the builder and provisioned by
the provisioner(s).
-layout: docs
page_title: Post-Processors
sidebar_title: Post-Processors
---
diff --git a/website/pages/docs/post-processors/manifest.mdx b/website/content/docs/post-processors/manifest.mdx
similarity index 97%
rename from website/pages/docs/post-processors/manifest.mdx
rename to website/content/docs/post-processors/manifest.mdx
index 76cda3e95..074e35ff8 100644
--- a/website/pages/docs/post-processors/manifest.mdx
+++ b/website/content/docs/post-processors/manifest.mdx
@@ -2,7 +2,6 @@
description: >
The manifest post-processor writes a JSON file with the build artifacts and
IDs from a packer run.
-layout: docs
page_title: Manifest - Post-Processors
sidebar_title: Manifest
---
@@ -36,9 +35,9 @@ post-processors such as Docker and Artifice.
@include 'post-processor/manifest/Config-not-required.mdx'
-~> **Note**: Unlike most other post-processors, the keep_input_artifact option doesn't apply for the manifest
+~> **Note**: Unlike most other post-processors, the keep_input_artifact option doesn't apply for the manifest
post-processor. We will always retain the input artifact for manifest, since deleting the files we just recorded
-is not a behavior anyone should ever expect.
+is not a behavior anyone should ever expect.
### Example Configuration
diff --git a/website/pages/docs/post-processors/shell-local.mdx b/website/content/docs/post-processors/shell-local.mdx
similarity index 99%
rename from website/pages/docs/post-processors/shell-local.mdx
rename to website/content/docs/post-processors/shell-local.mdx
index 1e98a3f2b..356f17f59 100644
--- a/website/pages/docs/post-processors/shell-local.mdx
+++ b/website/content/docs/post-processors/shell-local.mdx
@@ -2,7 +2,6 @@
description: |
The shell-local Packer post processor enables users to do some post processing
after artifacts have been built.
-layout: docs
page_title: Local Shell - Post-Processors
sidebar_title: Shell (Local)
---
@@ -210,7 +209,6 @@ still in beta. There will be some limitations as a result. For example, it will
likely not work unless both Packer and the scripts you want to run are both on
the C drive.
-
@@ -409,7 +407,6 @@ post-processor "shell-local" {
-
Contents of "test_cmd.cmd":
echo %SHELLLOCALTEST%
@@ -417,7 +414,6 @@ Contents of "test_cmd.cmd":
Example of running an inline command on windows: Required customization:
tempfile_extension
-
diff --git a/website/pages/docs/post-processors/ucloud-import.mdx b/website/content/docs/post-processors/ucloud-import.mdx
similarity index 99%
rename from website/pages/docs/post-processors/ucloud-import.mdx
rename to website/content/docs/post-processors/ucloud-import.mdx
index d8b5ab12e..d7991a721 100644
--- a/website/pages/docs/post-processors/ucloud-import.mdx
+++ b/website/content/docs/post-processors/ucloud-import.mdx
@@ -3,7 +3,6 @@ description: >
The Packer UCloud Import post-processor takes the RAW, VHD, VMDK, or qcow2
artifact from various builders and imports it to UCloud customized image list
for UHost Instance.
-layout: docs
page_title: UCloud Import Post-Processors
sidebar_title: UCloud Import
---
diff --git a/website/pages/docs/post-processors/vagrant-cloud.mdx b/website/content/docs/post-processors/vagrant-cloud.mdx
similarity index 99%
rename from website/pages/docs/post-processors/vagrant-cloud.mdx
rename to website/content/docs/post-processors/vagrant-cloud.mdx
index 9eaf3dc17..1e84da205 100644
--- a/website/pages/docs/post-processors/vagrant-cloud.mdx
+++ b/website/content/docs/post-processors/vagrant-cloud.mdx
@@ -2,7 +2,6 @@
description: |
The Vagrant Cloud post-processor enables the upload of Vagrant boxes to
Vagrant Cloud.
-layout: docs
page_title: Vagrant Cloud - Post-Processors
sidebar_title: Vagrant Cloud
---
@@ -111,6 +110,7 @@ on Vagrant Cloud, as well as authentication and version information.
This is a [template engine](/docs/templates/engine). Therefore, you
may use user variables and template functions in this field.
The following extra variables are also avilable in this engine:
+
- `Provider`: The Vagrant provider the box is for
- `ArtifactId`: The ID of the input artifact.
diff --git a/website/pages/docs/post-processors/vagrant.mdx b/website/content/docs/post-processors/vagrant.mdx
similarity index 96%
rename from website/pages/docs/post-processors/vagrant.mdx
rename to website/content/docs/post-processors/vagrant.mdx
index 9c718c5a0..3811be8eb 100644
--- a/website/pages/docs/post-processors/vagrant.mdx
+++ b/website/content/docs/post-processors/vagrant.mdx
@@ -8,7 +8,6 @@ description: >
boxes
distributed by Vagrant are created.
-layout: docs
page_title: Vagrant - Post-Processors
sidebar_title: Vagrant
---
@@ -125,22 +124,25 @@ how to do this:
```json
{
- "builders": [{
- "type": "null",
- "communicator": "none"
- }],
+ "builders": [
+ {
+ "type": "null",
+ "communicator": "none"
+ }
+ ],
"post-processors": [
[
{
"type": "artifice",
- "files": ["output-virtualbox-iso/vbox-example-disk001.vmdk",
- "output-virtualbox-iso/vbox-example.ovf"
- ]
+ "files": [
+ "output-virtualbox-iso/vbox-example-disk001.vmdk",
+ "output-virtualbox-iso/vbox-example.ovf"
+ ]
},
{
"type": "vagrant",
"keep_input_artifact": true,
- "provider_override": "virtualbox",
+ "provider_override": "virtualbox"
}
]
]
diff --git a/website/pages/docs/post-processors/vsphere-template.mdx b/website/content/docs/post-processors/vsphere-template.mdx
similarity index 99%
rename from website/pages/docs/post-processors/vsphere-template.mdx
rename to website/content/docs/post-processors/vsphere-template.mdx
index 0ef48e8f0..5170c2ff7 100644
--- a/website/pages/docs/post-processors/vsphere-template.mdx
+++ b/website/content/docs/post-processors/vsphere-template.mdx
@@ -4,7 +4,6 @@ description: >
VMware-iso builder, built on ESXi (i.e. remote) or an artifact from the
[vSphere](/docs/post-processors/vsphere) post-processor, marks the VM as a
template, and leaves it in the path of your choice.
-layout: docs
page_title: vSphere Template - Post-Processors
sidebar_title: vSphere Template
---
@@ -166,4 +165,4 @@ defined by the template. If this issue affects you, the solution is to set
`"bios.hddOrder": "scsi0:0"` in your builder's vmx_data.
Packer doesn't automatically do this for you because it causes strange upload
-behavior in certain versions of ovftool.
\ No newline at end of file
+behavior in certain versions of ovftool.
diff --git a/website/pages/docs/post-processors/vsphere.mdx b/website/content/docs/post-processors/vsphere.mdx
similarity index 90%
rename from website/pages/docs/post-processors/vsphere.mdx
rename to website/content/docs/post-processors/vsphere.mdx
index 4662c7fdb..8db6ed022 100644
--- a/website/pages/docs/post-processors/vsphere.mdx
+++ b/website/content/docs/post-processors/vsphere.mdx
@@ -2,7 +2,6 @@
description: >
The Packer vSphere post-processor takes an artifact and uploads it to a
vSphere endpoint.
-layout: docs
page_title: vSphere - Post-Processors
sidebar_title: vSphere
---
@@ -83,7 +82,7 @@ You can also use this post-processor with the vmx artifact from a vmware build.
-``` json
+```json
{
"builders": [
{
@@ -95,19 +94,19 @@ You can also use this post-processor with the vmx artifact from a vmware build.
[
{
"type": "artifice",
- "files":["output-vmware-iso/packer-vmware-iso.vmx"]
+ "files": ["output-vmware-iso/packer-vmware-iso.vmx"]
},
{
- "type": "vsphere",
- "keep_input_artifact": true,
- "vm_name": "packerparty",
- "vm_network": "VM Network",
- "cluster": "123.45.678.1",
- "datacenter": "PackerDatacenter",
- "datastore": "datastore1",
- "host": "123.45.678.9",
- "password": "SuperSecretPassword",
- "username": "Administrator@vsphere.local"
+ "type": "vsphere",
+ "keep_input_artifact": true,
+ "vm_name": "packerparty",
+ "vm_network": "VM Network",
+ "cluster": "123.45.678.1",
+ "datacenter": "PackerDatacenter",
+ "datastore": "datastore1",
+ "host": "123.45.678.9",
+ "password": "SuperSecretPassword",
+ "username": "Administrator@vsphere.local"
}
]
]
diff --git a/website/pages/docs/post-processors/yandex-export.mdx b/website/content/docs/post-processors/yandex-export.mdx
similarity index 99%
rename from website/pages/docs/post-processors/yandex-export.mdx
rename to website/content/docs/post-processors/yandex-export.mdx
index 9d8c65f3d..a25e9085a 100644
--- a/website/pages/docs/post-processors/yandex-export.mdx
+++ b/website/content/docs/post-processors/yandex-export.mdx
@@ -6,7 +6,6 @@ description: >
yandex builder run and uploads it to Yandex Object Storage. The exported
images can be easily shared and uploaded to other Yandex.Cloud Cloud folders.
-layout: docs
page_title: Yandex.Cloud Compute Image Exporter - Post-Processors
sidebar_title: Yandex.Cloud Compute Export
---
diff --git a/website/pages/docs/post-processors/yandex-import.mdx b/website/content/docs/post-processors/yandex-import.mdx
similarity index 91%
rename from website/pages/docs/post-processors/yandex-import.mdx
rename to website/content/docs/post-processors/yandex-import.mdx
index 33d34c6f5..11c333c16 100644
--- a/website/pages/docs/post-processors/yandex-import.mdx
+++ b/website/content/docs/post-processors/yandex-import.mdx
@@ -1,10 +1,8 @@
---
description: >
The Yandex.Cloud Compute Image Import post-processor create an image from a
- qcow2 image (or from provided Storage object in near future).
- It uploads qcow2 to Yandex Object Storage and create new one Compute Image
- in target folder.
-layout: docs
+ qcow2 image (or from provided Storage object in near future). It uploads qcow2
+ to Yandex Object Storage and create new one Compute Image in target folder.
page_title: Yandex.Cloud Compute Image Import - Post-Processors
sidebar_title: Yandex.Cloud Compute Import
---
diff --git a/website/pages/docs/provisioners/ansible-local.mdx b/website/content/docs/provisioners/ansible-local.mdx
similarity index 93%
rename from website/pages/docs/provisioners/ansible-local.mdx
rename to website/content/docs/provisioners/ansible-local.mdx
index 221c890e1..ffa298783 100644
--- a/website/pages/docs/provisioners/ansible-local.mdx
+++ b/website/content/docs/provisioners/ansible-local.mdx
@@ -5,7 +5,6 @@ description: >
guest VM. This means ansible must be installed on the remote/guest VM.
Playbooks and Roles can be uploaded from your build machine (the one running
Packer) to the vm.
-layout: docs
page_title: Ansible Local - Provisioners
sidebar_title: Ansible Local
---
@@ -37,25 +36,27 @@ The example below is fully functional.
```json
{
- "builders": [
- {
- "type": "docker",
- "image": "williamyeh/ansible:ubuntu14.04",
- "export_path": "packer_example",
- "run_command": [ "-d", "-i", "-t", "--entrypoint=/bin/bash", "{{.Image}}" ]
- }
- ],
- "variables":
- {
- "topping": "mushroom"
- },
- "provisioners": [
- {
- "type": "ansible-local",
- "playbook_file": "./playbook.yml",
- "extra_arguments": ["--extra-vars", "\"pizza_toppings={{ user `topping`}}\""]
- }
- ]
+ "builders": [
+ {
+ "type": "docker",
+ "image": "williamyeh/ansible:ubuntu14.04",
+ "export_path": "packer_example",
+ "run_command": ["-d", "-i", "-t", "--entrypoint=/bin/bash", "{{.Image}}"]
+ }
+ ],
+ "variables": {
+ "topping": "mushroom"
+ },
+ "provisioners": [
+ {
+ "type": "ansible-local",
+ "playbook_file": "./playbook.yml",
+ "extra_arguments": [
+ "--extra-vars",
+ "\"pizza_toppings={{ user `topping`}}\""
+ ]
+ }
+ ]
}
```
diff --git a/website/pages/docs/provisioners/ansible.mdx b/website/content/docs/provisioners/ansible.mdx
similarity index 95%
rename from website/pages/docs/provisioners/ansible.mdx
rename to website/content/docs/provisioners/ansible.mdx
index 6e754ab21..cb816932c 100644
--- a/website/pages/docs/provisioners/ansible.mdx
+++ b/website/content/docs/provisioners/ansible.mdx
@@ -2,7 +2,6 @@
description: |
The ansible Packer provisioner allows Ansible playbooks to be run to provision
the machine.
-layout: docs
page_title: Ansible - Provisioners
sidebar_title: Ansible (Remote)
---
@@ -25,7 +24,6 @@ accept jinja2 `{{ function }}` macro syntax in a way that can be preserved to
the Ansible run. If you need to set variables using Ansible macros, you need to
do so inside your playbooks or inventory files.
-
Please see the [Debugging](#debugging), [Limitations](#limitations), or [Troubleshooting](#troubleshooting) if you are having trouble
getting started.
@@ -347,6 +345,7 @@ explicitly not use any proxying; you can do this by setting the template option
```json
"ansible_env_vars": ["no_proxy=\"*\""],
```
+
@@ -525,6 +524,7 @@ The ansible provisioner template remains very simple. For example:
"playbook_file": "./playbook.yml"
}
```
+
@@ -565,26 +565,36 @@ Example Packer template:
"ansible_host": "default",
"ansible_connection": "docker"
},
- "builders":[
+ "builders": [
{
"type": "docker",
"image": "centos:7",
"commit": true,
- "run_command": [ "-d", "-i", "-t", "--name", "{{user `ansible_host`}}", "{{.Image}}", "/bin/bash" ]
+ "run_command": [
+ "-d",
+ "-i",
+ "-t",
+ "--name",
+ "{{user `ansible_host`}}",
+ "{{.Image}}",
+ "/bin/bash"
+ ]
}
],
"provisioners": [
{
"type": "ansible",
- "groups": [ "webserver" ],
+ "groups": ["webserver"],
"playbook_file": "./webserver.yml",
"extra_arguments": [
- "--extra-vars", "ansible_host={{user `ansible_host`}} ansible_connection={{user `ansible_connection`}}"
+ "--extra-vars",
+ "ansible_host={{user `ansible_host`}} ansible_connection={{user `ansible_connection`}}"
]
}
]
}
```
+
@@ -681,6 +691,7 @@ their configured region.
inventory_file_template = "{{ .HostAlias }} ansible_host={{ .ID }} ansible_user={{ .User }} ansible_ssh_common_args='-o StrictHostKeyChecking=no -o ProxyCommand=\"sh -c \\\"aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters portNumber=%p\\\"\"'\n"
}
```
+
@@ -696,39 +707,36 @@ Full Packer template example:
},
"builders": [
- {
- "type": "amazon-ebs",
- "region": "us-east-1",
- "ami_name": "packer-ami-ansible",
- "instance_type": "t2.micro",
- "source_ami_filter": {
- "filters": {
- "virtualization-type": "hvm",
- "name": "ubuntu/images/*ubuntu-xenial-16.04-amd64-server-*",
- "root-device-type": "ebs"
- },
- "owners": [
- "099720109477"
- ],
- "most_recent": true
+ {
+ "type": "amazon-ebs",
+ "region": "us-east-1",
+ "ami_name": "packer-ami-ansible",
+ "instance_type": "t2.micro",
+ "source_ami_filter": {
+ "filters": {
+ "virtualization-type": "hvm",
+ "name": "ubuntu/images/*ubuntu-xenial-16.04-amd64-server-*",
+ "root-device-type": "ebs"
},
- "communicator": "ssh",
- "ssh_username": "ubuntu",
- "ssh_interface": "session_manager",
- "iam_instance_profile":"{{user `instance_role`}}"
- }
+ "owners": ["099720109477"],
+ "most_recent": true
+ },
+ "communicator": "ssh",
+ "ssh_username": "ubuntu",
+ "ssh_interface": "session_manager",
+ "iam_instance_profile": "{{user `instance_role`}}"
+ }
],
"provisioners": [
{
"type": "ansible",
"use_proxy": false,
"ansible_env_vars": ["PACKER_BUILD_NAME={{ build_name }}"],
- "playbook_file": "./playbooks/playbook_remote.yml",
+ "playbook_file": "./playbooks/playbook_remote.yml",
"inventory_file_template": "{{ .HostAlias }} ansible_host={{ .ID }} ansible_user={{ .User }} ansible_ssh_common_args='-o StrictHostKeyChecking=no -o ProxyCommand=\"sh -c \\\"aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters portNumber=%p\\\"\"'\n"
}
- ]
+ ]
}
-
```
diff --git a/website/pages/docs/provisioners/breakpoint.mdx b/website/content/docs/provisioners/breakpoint.mdx
similarity index 99%
rename from website/pages/docs/provisioners/breakpoint.mdx
rename to website/content/docs/provisioners/breakpoint.mdx
index 6f576ce3e..9f74cd190 100644
--- a/website/pages/docs/provisioners/breakpoint.mdx
+++ b/website/content/docs/provisioners/breakpoint.mdx
@@ -6,7 +6,6 @@ description: >
a
particular part of the provisioning process.
-layout: docs
page_title: breakpoint - Provisioners
sidebar_title: Breakpoint
---
diff --git a/website/pages/docs/provisioners/chef-client.mdx b/website/content/docs/provisioners/chef-client.mdx
similarity index 99%
rename from website/pages/docs/provisioners/chef-client.mdx
rename to website/content/docs/provisioners/chef-client.mdx
index df117c42b..9da623267 100644
--- a/website/pages/docs/provisioners/chef-client.mdx
+++ b/website/content/docs/provisioners/chef-client.mdx
@@ -7,7 +7,6 @@ description: >
a
remote Chef Server to provision the machine.
-layout: docs
page_title: Chef Client - Provisioners
sidebar_title: Chef Client
---
diff --git a/website/pages/docs/provisioners/chef-solo.mdx b/website/content/docs/provisioners/chef-solo.mdx
similarity index 99%
rename from website/pages/docs/provisioners/chef-solo.mdx
rename to website/content/docs/provisioners/chef-solo.mdx
index 5e524c0d6..efcea89a5 100644
--- a/website/pages/docs/provisioners/chef-solo.mdx
+++ b/website/content/docs/provisioners/chef-solo.mdx
@@ -3,7 +3,6 @@ description: |
The chef-solo Packer provisioner installs and configures software on machines
built by Packer using chef-solo. Cookbooks can be uploaded from your local
machine to the remote machine or remote paths can be used.
-layout: docs
page_title: Chef Solo - Provisioners
sidebar_title: Chef Solo
---
diff --git a/website/pages/docs/provisioners/community-supported.mdx b/website/content/docs/provisioners/community-supported.mdx
similarity index 97%
rename from website/pages/docs/provisioners/community-supported.mdx
rename to website/content/docs/provisioners/community-supported.mdx
index 2c128d304..1be85c0f6 100644
--- a/website/pages/docs/provisioners/community-supported.mdx
+++ b/website/content/docs/provisioners/community-supported.mdx
@@ -2,7 +2,6 @@
description: |
Community-maintained provisioners are not part of the core Packer binary, but
can run alongside Packer with minimal extra effort.
-layout: docs
page_title: Community - Provisioners
sidebar_title: Community-Supported
---
diff --git a/website/pages/docs/provisioners/converge.mdx b/website/content/docs/provisioners/converge.mdx
similarity index 99%
rename from website/pages/docs/provisioners/converge.mdx
rename to website/content/docs/provisioners/converge.mdx
index a3aec3597..58b04005f 100644
--- a/website/pages/docs/provisioners/converge.mdx
+++ b/website/content/docs/provisioners/converge.mdx
@@ -2,7 +2,6 @@
description: >-
The converge Packer provisioner uses Converge modules to provision the
machine.
-layout: docs
page_title: Converge - Provisioners
sidebar_title: Converge
---
diff --git a/website/pages/docs/provisioners/custom.mdx b/website/content/docs/provisioners/custom.mdx
similarity index 97%
rename from website/pages/docs/provisioners/custom.mdx
rename to website/content/docs/provisioners/custom.mdx
index 4ba8d54cc..c5da3d153 100644
--- a/website/pages/docs/provisioners/custom.mdx
+++ b/website/content/docs/provisioners/custom.mdx
@@ -4,7 +4,6 @@ description: |
modify the core source code of Packer itself. Documentation for creating new
provisioners is covered in the custom provisioners page of the Packer plugin
section.
-layout: docs
page_title: Custom - Provisioners
sidebar_title: Custom
---
diff --git a/website/pages/docs/provisioners/file.mdx b/website/content/docs/provisioners/file.mdx
similarity index 99%
rename from website/pages/docs/provisioners/file.mdx
rename to website/content/docs/provisioners/file.mdx
index 904522d8b..e65002898 100644
--- a/website/pages/docs/provisioners/file.mdx
+++ b/website/content/docs/provisioners/file.mdx
@@ -4,7 +4,6 @@ description: |
recommended usage of the file provisioner is to use it to upload files, and
then use shell provisioner to move them to the proper place, set permissions,
etc.
-layout: docs
page_title: File - Provisioners
sidebar_title: File
---
diff --git a/website/pages/docs/provisioners/index.mdx b/website/content/docs/provisioners/index.mdx
similarity index 98%
rename from website/pages/docs/provisioners/index.mdx
rename to website/content/docs/provisioners/index.mdx
index a669a5350..6213d10d5 100644
--- a/website/pages/docs/provisioners/index.mdx
+++ b/website/content/docs/provisioners/index.mdx
@@ -2,7 +2,6 @@
description: |
Provisioners use builtin and third-party software to install and configure the
machine image after booting.
-layout: docs
page_title: Provisioners
sidebar_title: Provisioners
---
diff --git a/website/pages/docs/provisioners/inspec.mdx b/website/content/docs/provisioners/inspec.mdx
similarity index 92%
rename from website/pages/docs/provisioners/inspec.mdx
rename to website/content/docs/provisioners/inspec.mdx
index 3ff2470b1..9792c2a53 100644
--- a/website/pages/docs/provisioners/inspec.mdx
+++ b/website/content/docs/provisioners/inspec.mdx
@@ -2,7 +2,6 @@
description: |
The inspec Packer provisioner allows inspec profiles to be run to test the
machine.
-layout: docs
page_title: InSpec - Provisioners
sidebar_title: InSpec
---
@@ -16,8 +15,8 @@ target configured to use SSH, runs an SSH server, executes `inspec exec`, and
marshals InSpec tests through the SSH server to the machine being provisioned
by Packer.
--> **Note:** Inspec is required to be installed on the host machine and
-available in it's corresponding path. It is not required to be installed
+-> **Note:** Inspec is required to be installed on the host machine and
+available in it's corresponding path. It is not required to be installed
on the provisioned image.
## Basic Example
@@ -82,22 +81,22 @@ Optional Parameters:
- `inspec_env_vars` (array of strings) - Environment variables to set before
running InSpec. Usage example:
-
-
+
+
- ```json
- "inspec_env_vars": [ "FOO=bar" ]
- ```
+```json
+ "inspec_env_vars": [ "FOO=bar" ]
+```
-
-
+
+
- ```hcl
- inspec_env_vars = [ "FOO=bar" ]
- ```
+```hcl
+ inspec_env_vars = [ "FOO=bar" ]
+```
-
-
+
+
- `command` (string) - The command to invoke InSpec. Defaults to `inspec`.
@@ -105,21 +104,22 @@ Optional Parameters:
These arguments _will not_ be passed through a shell and arguments should
not be quoted. Usage example:
-
-
+
+
- ```json
- "extra_arguments": [ "--sudo", "--reporter", "json" ]
- ```
-
-
+```json
+ "extra_arguments": [ "--sudo", "--reporter", "json" ]
+```
- ```hcl
- extra_arguments = [ "--sudo", "--reporter", "json" ]
- ```
+
+
-
-
+```hcl
+ extra_arguments = [ "--sudo", "--reporter", "json" ]
+```
+
+
+
- `attributes` (array of strings) - Attribute Files used by InSpec which will
be passed to the `--input-file` argument of the `inspec` command when this
diff --git a/website/pages/docs/provisioners/powershell.mdx b/website/content/docs/provisioners/powershell.mdx
similarity index 99%
rename from website/pages/docs/provisioners/powershell.mdx
rename to website/content/docs/provisioners/powershell.mdx
index 928886ec2..cb2c038e7 100644
--- a/website/pages/docs/provisioners/powershell.mdx
+++ b/website/content/docs/provisioners/powershell.mdx
@@ -2,7 +2,6 @@
description: |
The PowerShell Packer provisioner runs PowerShell scripts on Windows machines.
It assumes that the communicator in use is WinRM.
-layout: docs
page_title: PowerShell - Provisioners
sidebar_title: PowerShell
---
@@ -166,8 +165,8 @@ provisioner "powershell" {
- If you specify an empty `elevated_password` value then the PowerShell
- script is run as a service account. For example:
+If you specify an empty `elevated_password` value then the PowerShell
+script is run as a service account. For example:
diff --git a/website/pages/docs/provisioners/puppet-masterless.mdx b/website/content/docs/provisioners/puppet-masterless.mdx
similarity index 99%
rename from website/pages/docs/provisioners/puppet-masterless.mdx
rename to website/content/docs/provisioners/puppet-masterless.mdx
index 4ad97f59f..e32244da8 100644
--- a/website/pages/docs/provisioners/puppet-masterless.mdx
+++ b/website/content/docs/provisioners/puppet-masterless.mdx
@@ -11,7 +11,6 @@ description: >
remote paths. Puppet is run in masterless mode, meaning it never communicates
to a Puppet master.
-layout: docs
page_title: Puppet Masterless - Provisioners
sidebar_title: Puppet Masterless
---
diff --git a/website/pages/docs/provisioners/puppet-server.mdx b/website/content/docs/provisioners/puppet-server.mdx
similarity index 99%
rename from website/pages/docs/provisioners/puppet-server.mdx
rename to website/content/docs/provisioners/puppet-server.mdx
index ce30bc3a3..f80d97a1d 100644
--- a/website/pages/docs/provisioners/puppet-server.mdx
+++ b/website/content/docs/provisioners/puppet-server.mdx
@@ -2,7 +2,6 @@
description: |
The puppet-server Packer provisioner provisions Packer machines with Puppet by
connecting to a Puppet master.
-layout: docs
page_title: Puppet Server - Provisioners
sidebar_title: Puppet Server
---
diff --git a/website/pages/docs/provisioners/salt-masterless.mdx b/website/content/docs/provisioners/salt-masterless.mdx
similarity index 99%
rename from website/pages/docs/provisioners/salt-masterless.mdx
rename to website/content/docs/provisioners/salt-masterless.mdx
index c409c993c..eb590591b 100644
--- a/website/pages/docs/provisioners/salt-masterless.mdx
+++ b/website/content/docs/provisioners/salt-masterless.mdx
@@ -2,7 +2,6 @@
description: |
The salt-masterless Packer provisioner provisions machines built by Packer
using Salt states, without connecting to a Salt master.
-layout: docs
page_title: Salt Masterless - Provisioners
sidebar_title: Salt Masterless
---
diff --git a/website/pages/docs/provisioners/shell-local.mdx b/website/content/docs/provisioners/shell-local.mdx
similarity index 99%
rename from website/pages/docs/provisioners/shell-local.mdx
rename to website/content/docs/provisioners/shell-local.mdx
index 8260a9de6..01ef21379 100644
--- a/website/pages/docs/provisioners/shell-local.mdx
+++ b/website/content/docs/provisioners/shell-local.mdx
@@ -4,7 +4,6 @@ description: |
Packer is being run - in other words, shell-local will run the shell script on
your build server, or your desktop, etc., rather than the remote/guest machine
being provisioned by Packer.
-layout: docs
page_title: Shell (Local) - Provisioners
sidebar_title: Shell (Local)
---
@@ -69,7 +68,6 @@ build {
-
## Configuration Reference
The reference of available configuration options is listed below. The only
@@ -308,8 +306,6 @@ _must_ be extra careful to `exit 0` when necessary.
## Usage Examples:
-
-
### Windows Host
Example of running a .cmd file on windows:
@@ -338,7 +334,6 @@ provisioner "shell-local" {
-
Contents of "test_cmd.cmd":
echo %SHELLLOCALTEST%
@@ -346,7 +341,6 @@ Contents of "test_cmd.cmd":
Example of running an inline command on windows: Required customization:
tempfile_extension
-
diff --git a/website/pages/docs/provisioners/shell.mdx b/website/content/docs/provisioners/shell.mdx
similarity index 99%
rename from website/pages/docs/provisioners/shell.mdx
rename to website/content/docs/provisioners/shell.mdx
index 48a700360..f080a109b 100644
--- a/website/pages/docs/provisioners/shell.mdx
+++ b/website/content/docs/provisioners/shell.mdx
@@ -3,7 +3,6 @@ description: |
The shell Packer provisioner provisions machines built by Packer using shell
scripts. Shell provisioning is the easiest way to get software installed and
configured on a machine.
-layout: docs
page_title: Shell - Provisioners
sidebar_title: Shell
---
diff --git a/website/pages/docs/provisioners/windows-restart.mdx b/website/content/docs/provisioners/windows-restart.mdx
similarity index 99%
rename from website/pages/docs/provisioners/windows-restart.mdx
rename to website/content/docs/provisioners/windows-restart.mdx
index becff205a..2ab3bf0d7 100644
--- a/website/pages/docs/provisioners/windows-restart.mdx
+++ b/website/content/docs/provisioners/windows-restart.mdx
@@ -2,7 +2,6 @@
description: |
The Windows restart provisioner restarts a Windows machine and waits for it to
come back up.
-layout: docs
page_title: Windows Restart - Provisioners
sidebar_title: Windows Restart
---
diff --git a/website/pages/docs/provisioners/windows-shell.mdx b/website/content/docs/provisioners/windows-shell.mdx
similarity index 99%
rename from website/pages/docs/provisioners/windows-shell.mdx
rename to website/content/docs/provisioners/windows-shell.mdx
index 53b178a57..85781f427 100644
--- a/website/pages/docs/provisioners/windows-shell.mdx
+++ b/website/content/docs/provisioners/windows-shell.mdx
@@ -2,7 +2,6 @@
description: |
The windows-shell Packer provisioner runs commands on Windows using the cmd
shell.
-layout: docs
page_title: Windows Shell - Provisioners
sidebar_title: Windows Shell
---
diff --git a/website/pages/docs/templates/builders.mdx b/website/content/docs/templates/builders.mdx
similarity index 99%
rename from website/pages/docs/templates/builders.mdx
rename to website/content/docs/templates/builders.mdx
index 2bbd06ca3..6b02c197f 100644
--- a/website/pages/docs/templates/builders.mdx
+++ b/website/content/docs/templates/builders.mdx
@@ -4,7 +4,6 @@ description: >
builders
that Packer should use to generate machine images for the template.
-layout: docs
page_title: Builders - Templates
sidebar_title: Builders
---
diff --git a/website/pages/docs/templates/communicator.mdx b/website/content/docs/templates/communicator.mdx
similarity index 99%
rename from website/pages/docs/templates/communicator.mdx
rename to website/content/docs/templates/communicator.mdx
index 10056dbca..4f6812cc4 100644
--- a/website/pages/docs/templates/communicator.mdx
+++ b/website/content/docs/templates/communicator.mdx
@@ -2,7 +2,6 @@
description: |
Communicators are the mechanism Packer uses to upload files, execute scripts,
etc. with the machine being created.
-layout: docs
page_title: Communicators - Templates
sidebar_title: Communicators
---
diff --git a/website/pages/docs/templates/engine.mdx b/website/content/docs/templates/engine.mdx
similarity index 99%
rename from website/pages/docs/templates/engine.mdx
rename to website/content/docs/templates/engine.mdx
index 0d0597252..9d307e906 100644
--- a/website/pages/docs/templates/engine.mdx
+++ b/website/content/docs/templates/engine.mdx
@@ -3,7 +3,6 @@ description: |
All strings within templates are processed by a common Packer templating
engine, where variables and functions can be used to modify the value of a
configuration parameter at runtime.
-layout: docs
page_title: Template Engine - Templates
sidebar_title: Engine
---
diff --git a/website/pages/docs/templates/index.mdx b/website/content/docs/templates/index.mdx
similarity index 99%
rename from website/pages/docs/templates/index.mdx
rename to website/content/docs/templates/index.mdx
index dbb508749..4cf1f8200 100644
--- a/website/pages/docs/templates/index.mdx
+++ b/website/content/docs/templates/index.mdx
@@ -10,7 +10,6 @@ description: >
of being able to not only create and modify templates by hand, but also write
scripts to dynamically create or modify templates.
-layout: docs
page_title: Templates
sidebar_title: Templates
---
diff --git a/website/pages/docs/templates/post-processors.mdx b/website/content/docs/templates/post-processors.mdx
similarity index 95%
rename from website/pages/docs/templates/post-processors.mdx
rename to website/content/docs/templates/post-processors.mdx
index 828560b35..d3d0086f7 100644
--- a/website/pages/docs/templates/post-processors.mdx
+++ b/website/content/docs/templates/post-processors.mdx
@@ -3,7 +3,6 @@ description: |
The post-processor section within a template configures any post-processing
that will be done to images built by the builders. Examples of post-processing
would be compressing files, uploading artifacts, etc.
-layout: docs
page_title: Post-Processors - Templates
sidebar_title: Post-Processors
---
@@ -151,23 +150,20 @@ option _ignores_ post-processors.
```json
([
{
- // can be skipped when running `packer build -except vbox`
"name": "vbox",
"type": "vagrant",
"only": ["virtualbox-iso"]
},
{
- "type": "compress" // will only be executed when vbox is
+ "type": "compress"
}
],
[
- "compress", // will run even if vbox is skipped, from the same start as vbox.
+ "compress",
{
"type": "upload",
"endpoint": "http://example.com"
}
- // this list of post processors will execute
- // using build, not another post-processor.
])
```
diff --git a/website/pages/docs/templates/provisioners.mdx b/website/content/docs/templates/provisioners.mdx
similarity index 99%
rename from website/pages/docs/templates/provisioners.mdx
rename to website/content/docs/templates/provisioners.mdx
index 73d305bc3..c7387262d 100644
--- a/website/pages/docs/templates/provisioners.mdx
+++ b/website/content/docs/templates/provisioners.mdx
@@ -3,7 +3,6 @@ description: |
Within the template, the provisioners section contains an array of all the
provisioners that Packer should use to install and configure software within
running machines prior to turning them into machine images.
-layout: docs
page_title: Provisioners - Templates
sidebar_title: Provisioners
---
diff --git a/website/pages/docs/templates/user-variables.mdx b/website/content/docs/templates/user-variables.mdx
similarity index 97%
rename from website/pages/docs/templates/user-variables.mdx
rename to website/content/docs/templates/user-variables.mdx
index e4b375c7e..102522c2f 100644
--- a/website/pages/docs/templates/user-variables.mdx
+++ b/website/content/docs/templates/user-variables.mdx
@@ -5,7 +5,6 @@ description: |
parameterize your templates so that you can keep secret tokens,
environment-specific data, and other types of information out of your
templates. This maximizes the portability and shareability of the template.
-layout: docs
page_title: User Variables - Templates
sidebar_title: User Variables
---
@@ -195,8 +194,8 @@ and used within your template as user variables. The `aws_secretsmanager` functi
available _only_ within the default value of a user variable, allowing you to default
a user variable to an AWS Secrets Manager secret.
-
### Plaintext Secrets
+
```json
{
"variables": {
@@ -206,10 +205,11 @@ a user variable to an AWS Secrets Manager secret.
```
In the example above it is assumed that the secret `globalpassword` is not
- stored as a key pair but as a single non-JSON string value. Which the
- `aws_secretsmanager` function will return as a raw string.
+stored as a key pair but as a single non-JSON string value. Which the
+`aws_secretsmanager` function will return as a raw string.
### Single Key Secrets
+
```json
{
"variables": {
@@ -219,10 +219,11 @@ In the example above it is assumed that the secret `globalpassword` is not
```
In the example above it is assumed that only one key is stored in
- `sample/app/password` if there are multiple keys stored in it then you need
- to indicate the specific key you want to fetch as shown below.
+`sample/app/password` if there are multiple keys stored in it then you need
+to indicate the specific key you want to fetch as shown below.
### Multiple Key Secrets
+
```json
{
"variables": {
diff --git a/website/pages/docs/terminology.mdx b/website/content/docs/terminology.mdx
similarity index 99%
rename from website/pages/docs/terminology.mdx
rename to website/content/docs/terminology.mdx
index 4e446f1ac..8496c6d85 100644
--- a/website/pages/docs/terminology.mdx
+++ b/website/content/docs/terminology.mdx
@@ -11,7 +11,6 @@ description: >
order
for quick referencing.
-layout: docs
page_title: Terminology
sidebar_title: Terminology
---
diff --git a/website/pages/guides/automatic-operating-system-installs/autounattend_windows.mdx b/website/content/guides/automatic-operating-system-installs/autounattend_windows.mdx
similarity index 99%
rename from website/pages/guides/automatic-operating-system-installs/autounattend_windows.mdx
rename to website/content/guides/automatic-operating-system-installs/autounattend_windows.mdx
index b2ef2075f..5a40114ed 100644
--- a/website/pages/guides/automatic-operating-system-installs/autounattend_windows.mdx
+++ b/website/content/guides/automatic-operating-system-installs/autounattend_windows.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Unattended Windows Installation
sidebar_title: Unattended Installation for Windows
description: |-
diff --git a/website/pages/guides/automatic-operating-system-installs/index.mdx b/website/content/guides/automatic-operating-system-installs/index.mdx
similarity index 98%
rename from website/pages/guides/automatic-operating-system-installs/index.mdx
rename to website/content/guides/automatic-operating-system-installs/index.mdx
index bc6a3da70..7f6b53e81 100644
--- a/website/pages/guides/automatic-operating-system-installs/index.mdx
+++ b/website/content/guides/automatic-operating-system-installs/index.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Automatic OS Installs
sidebar_title: Automatic OS Installs
description: |-
diff --git a/website/pages/guides/automatic-operating-system-installs/preseed_ubuntu.mdx b/website/content/guides/automatic-operating-system-installs/preseed_ubuntu.mdx
similarity index 99%
rename from website/pages/guides/automatic-operating-system-installs/preseed_ubuntu.mdx
rename to website/content/guides/automatic-operating-system-installs/preseed_ubuntu.mdx
index e413209a9..dbcb3e40a 100644
--- a/website/pages/guides/automatic-operating-system-installs/preseed_ubuntu.mdx
+++ b/website/content/guides/automatic-operating-system-installs/preseed_ubuntu.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Unattended Debian/Ubuntu Installation
sidebar_title: Unattended Installation for Debian
description: |-
diff --git a/website/pages/guides/hcl/component-object-spec.mdx b/website/content/guides/hcl/component-object-spec.mdx
similarity index 99%
rename from website/pages/guides/hcl/component-object-spec.mdx
rename to website/content/guides/hcl/component-object-spec.mdx
index 93fab2687..14bb8f4f1 100644
--- a/website/pages/guides/hcl/component-object-spec.mdx
+++ b/website/content/guides/hcl/component-object-spec.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Generating code for config spec.
sidebar_title: Making a plugin HCL2 enabled
description: Learn how to generate the HCL2 configuration of your component easily.
diff --git a/website/pages/guides/hcl/from-json-v1.mdx b/website/content/guides/hcl/from-json-v1.mdx
similarity index 99%
rename from website/pages/guides/hcl/from-json-v1.mdx
rename to website/content/guides/hcl/from-json-v1.mdx
index b91afd7fd..81d1157c9 100644
--- a/website/pages/guides/hcl/from-json-v1.mdx
+++ b/website/content/guides/hcl/from-json-v1.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Transforming Packer v1 files for Packer v1.5.0
sidebar_title: From JSON v1
description: |-
diff --git a/website/pages/guides/hcl/index.mdx b/website/content/guides/hcl/index.mdx
similarity index 99%
rename from website/pages/guides/hcl/index.mdx
rename to website/content/guides/hcl/index.mdx
index 3f9e9dde3..a0364411b 100644
--- a/website/pages/guides/hcl/index.mdx
+++ b/website/content/guides/hcl/index.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Getting started configuring Packer with HCL2 files
sidebar_title: HCL guides
---
diff --git a/website/pages/guides/hcl/variables.mdx b/website/content/guides/hcl/variables.mdx
similarity index 98%
rename from website/pages/guides/hcl/variables.mdx
rename to website/content/guides/hcl/variables.mdx
index ada556c12..de240db73 100644
--- a/website/pages/guides/hcl/variables.mdx
+++ b/website/content/guides/hcl/variables.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Input and Local Variables guide
sidebar_title: Variables
description: |-
@@ -23,8 +22,8 @@ the "variables" stanza of our json template could simply be passed in via the
command line or a var-file; if a variable was never defined it would generally
be interpolated to an empty string.
-*In the HCL2 packer templates, we must always pre-define our variables in the
-HCL equivalent of the "variables" stanza.*
+_In the HCL2 packer templates, we must always pre-define our variables in the
+HCL equivalent of the "variables" stanza._
Another difference between JSON and HCL packer templates is that in JSON packer
templates, the "variables" stanza, if used, was always in the same .json file
@@ -207,6 +206,7 @@ $ packer build \
These files can also be JSON:
variables.json:
+
```json
{
"weekday": "sunday",
diff --git a/website/pages/guides/index.mdx b/website/content/guides/index.mdx
similarity index 97%
rename from website/pages/guides/index.mdx
rename to website/content/guides/index.mdx
index 7ce7e05ab..6e73508c9 100644
--- a/website/pages/guides/index.mdx
+++ b/website/content/guides/index.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Guides
description: |-
Welcome to the Packer guides. If you are just getting started with Packer,
diff --git a/website/pages/guides/packer-on-cicd/build-image-in-cicd.mdx b/website/content/guides/packer-on-cicd/build-image-in-cicd.mdx
similarity index 98%
rename from website/pages/guides/packer-on-cicd/build-image-in-cicd.mdx
rename to website/content/guides/packer-on-cicd/build-image-in-cicd.mdx
index 9e323d0af..69855749b 100644
--- a/website/pages/guides/packer-on-cicd/build-image-in-cicd.mdx
+++ b/website/content/guides/packer-on-cicd/build-image-in-cicd.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Build Images in CI/CD
sidebar_title: Build Images in CI/CD
---
diff --git a/website/pages/guides/packer-on-cicd/build-virtualbox-image.mdx b/website/content/guides/packer-on-cicd/build-virtualbox-image.mdx
similarity index 99%
rename from website/pages/guides/packer-on-cicd/build-virtualbox-image.mdx
rename to website/content/guides/packer-on-cicd/build-virtualbox-image.mdx
index ce39e9542..9b4ea5b3e 100644
--- a/website/pages/guides/packer-on-cicd/build-virtualbox-image.mdx
+++ b/website/content/guides/packer-on-cicd/build-virtualbox-image.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Build a VirtualBox Image with Packer in TeamCity
sidebar_title: Build a VirtualBox Image with Packer in TeamCity
---
diff --git a/website/pages/guides/packer-on-cicd/index.mdx b/website/content/guides/packer-on-cicd/index.mdx
similarity index 98%
rename from website/pages/guides/packer-on-cicd/index.mdx
rename to website/content/guides/packer-on-cicd/index.mdx
index 8148fb01a..9edf9dc11 100644
--- a/website/pages/guides/packer-on-cicd/index.mdx
+++ b/website/content/guides/packer-on-cicd/index.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Build Immutable Infrastructure with Packer in CI/CD
sidebar_title: Build Immutable Infrastructure with Packer in CI/CD
---
diff --git a/website/pages/guides/packer-on-cicd/pipelineing-builds.mdx b/website/content/guides/packer-on-cicd/pipelineing-builds.mdx
similarity index 99%
rename from website/pages/guides/packer-on-cicd/pipelineing-builds.mdx
rename to website/content/guides/packer-on-cicd/pipelineing-builds.mdx
index 7363ad00d..308b5b112 100644
--- a/website/pages/guides/packer-on-cicd/pipelineing-builds.mdx
+++ b/website/content/guides/packer-on-cicd/pipelineing-builds.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Packer Build Pipelines
sidebar_title: Pipelineing Builds
description: |-
@@ -280,6 +279,7 @@ different files in a single directory, so the following files are assumed to
exist in their own folder:
sources.pkr.hcl
+
```hcl
// In your sources file, you can create a configuration for a builder that you
// want to reuse between multiple steps in the build. Just leave the source
@@ -293,6 +293,7 @@ source "docker" "example" {
```
build.pkr.hcl
+
```hcl
build {
// Make sure to name your builds so that you can selectively run them one at
@@ -342,6 +343,7 @@ build {
```
pipeline.sh
+
```sh
#!/bin/bash
packer build -only='step1.docker.example' .
diff --git a/website/pages/guides/packer-on-cicd/trigger-tfe.mdx b/website/content/guides/packer-on-cicd/trigger-tfe.mdx
similarity index 99%
rename from website/pages/guides/packer-on-cicd/trigger-tfe.mdx
rename to website/content/guides/packer-on-cicd/trigger-tfe.mdx
index fff9bb345..0733198b1 100644
--- a/website/pages/guides/packer-on-cicd/trigger-tfe.mdx
+++ b/website/content/guides/packer-on-cicd/trigger-tfe.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Trigger Terraform Enterprise runs
sidebar_title: Trigger Terraform Enterprise runs
---
diff --git a/website/pages/guides/packer-on-cicd/upload-images-to-artifact.mdx b/website/content/guides/packer-on-cicd/upload-images-to-artifact.mdx
similarity index 99%
rename from website/pages/guides/packer-on-cicd/upload-images-to-artifact.mdx
rename to website/content/guides/packer-on-cicd/upload-images-to-artifact.mdx
index b40036d0e..cd4887e3a 100644
--- a/website/pages/guides/packer-on-cicd/upload-images-to-artifact.mdx
+++ b/website/content/guides/packer-on-cicd/upload-images-to-artifact.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Upload VirtualBox Image to S3
sidebar_title: Upload a VirtualBox Image to S3
---
diff --git a/website/pages/guides/workflow-tips-and-tricks/index.mdx b/website/content/guides/workflow-tips-and-tricks/index.mdx
similarity index 96%
rename from website/pages/guides/workflow-tips-and-tricks/index.mdx
rename to website/content/guides/workflow-tips-and-tricks/index.mdx
index 6414f77c2..a4e15bc8e 100644
--- a/website/pages/guides/workflow-tips-and-tricks/index.mdx
+++ b/website/content/guides/workflow-tips-and-tricks/index.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Tips and Tricks
sidebar_title: Workflow Tips and Tricks
description: |-
diff --git a/website/pages/guides/workflow-tips-and-tricks/isotime-template-function.mdx b/website/content/guides/workflow-tips-and-tricks/isotime-template-function.mdx
similarity index 99%
rename from website/pages/guides/workflow-tips-and-tricks/isotime-template-function.mdx
rename to website/content/guides/workflow-tips-and-tricks/isotime-template-function.mdx
index d9379706f..a71f64fab 100644
--- a/website/pages/guides/workflow-tips-and-tricks/isotime-template-function.mdx
+++ b/website/content/guides/workflow-tips-and-tricks/isotime-template-function.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Using the isotime template function - Guides
sidebar_title: Isotime Template Function
description: |-
diff --git a/website/pages/guides/workflow-tips-and-tricks/use-packer-with-comment.mdx b/website/content/guides/workflow-tips-and-tricks/use-packer-with-comment.mdx
similarity index 99%
rename from website/pages/guides/workflow-tips-and-tricks/use-packer-with-comment.mdx
rename to website/content/guides/workflow-tips-and-tricks/use-packer-with-comment.mdx
index bb8164676..64f2f1f78 100644
--- a/website/pages/guides/workflow-tips-and-tricks/use-packer-with-comment.mdx
+++ b/website/content/guides/workflow-tips-and-tricks/use-packer-with-comment.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Use jq and Packer to comment your templates - Guides
sidebar_title: Use jq to strip comments from a Packer template
description: |-
diff --git a/website/pages/guides/workflow-tips-and-tricks/veewee-to-packer.mdx b/website/content/guides/workflow-tips-and-tricks/veewee-to-packer.mdx
similarity index 99%
rename from website/pages/guides/workflow-tips-and-tricks/veewee-to-packer.mdx
rename to website/content/guides/workflow-tips-and-tricks/veewee-to-packer.mdx
index 238247132..a082ccf36 100644
--- a/website/pages/guides/workflow-tips-and-tricks/veewee-to-packer.mdx
+++ b/website/content/guides/workflow-tips-and-tricks/veewee-to-packer.mdx
@@ -1,5 +1,4 @@
---
-layout: guides
page_title: Convert Veewee Definitions to Packer Templates - Guides
sidebar_title: Veewee to Packer
description: |-
diff --git a/website/pages/intro/index.mdx b/website/content/intro/index.mdx
similarity index 99%
rename from website/pages/intro/index.mdx
rename to website/content/intro/index.mdx
index e84fb23b5..b9c4ebb1a 100644
--- a/website/pages/intro/index.mdx
+++ b/website/content/intro/index.mdx
@@ -1,5 +1,4 @@
---
-layout: intro
page_title: Introduction
description: |-
Welcome to the world of Packer! This introduction guide will show you what
diff --git a/website/pages/intro/use-cases.mdx b/website/content/intro/use-cases.mdx
similarity index 99%
rename from website/pages/intro/use-cases.mdx
rename to website/content/intro/use-cases.mdx
index c08474462..3f59588f3 100644
--- a/website/pages/intro/use-cases.mdx
+++ b/website/content/intro/use-cases.mdx
@@ -1,5 +1,4 @@
---
-layout: intro
page_title: Use Cases - Introduction
sidebar_title: Use Cases
description: |-
diff --git a/website/pages/intro/why.mdx b/website/content/intro/why.mdx
similarity index 99%
rename from website/pages/intro/why.mdx
rename to website/content/intro/why.mdx
index 6e25c7206..cf98064cf 100644
--- a/website/pages/intro/why.mdx
+++ b/website/content/intro/why.mdx
@@ -1,5 +1,4 @@
---
-layout: intro
page_title: Why Packer - Introduction
sidebar_title: Why Use Packer?
description: |-
diff --git a/website/pages/partials/builder/alicloud/ecs/AlicloudAccessConfig-not-required.mdx b/website/content/partials/builder/alicloud/ecs/AlicloudAccessConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/alicloud/ecs/AlicloudAccessConfig-not-required.mdx
rename to website/content/partials/builder/alicloud/ecs/AlicloudAccessConfig-not-required.mdx
diff --git a/website/pages/partials/builder/alicloud/ecs/AlicloudAccessConfig-required.mdx b/website/content/partials/builder/alicloud/ecs/AlicloudAccessConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/alicloud/ecs/AlicloudAccessConfig-required.mdx
rename to website/content/partials/builder/alicloud/ecs/AlicloudAccessConfig-required.mdx
diff --git a/website/pages/partials/builder/alicloud/ecs/AlicloudAccessConfig.mdx b/website/content/partials/builder/alicloud/ecs/AlicloudAccessConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/alicloud/ecs/AlicloudAccessConfig.mdx
rename to website/content/partials/builder/alicloud/ecs/AlicloudAccessConfig.mdx
diff --git a/website/pages/partials/builder/alicloud/ecs/AlicloudDiskDevice-not-required.mdx b/website/content/partials/builder/alicloud/ecs/AlicloudDiskDevice-not-required.mdx
similarity index 90%
rename from website/pages/partials/builder/alicloud/ecs/AlicloudDiskDevice-not-required.mdx
rename to website/content/partials/builder/alicloud/ecs/AlicloudDiskDevice-not-required.mdx
index 9d0a99c0e..13e7bef8e 100644
--- a/website/pages/partials/builder/alicloud/ecs/AlicloudDiskDevice-not-required.mdx
+++ b/website/content/partials/builder/alicloud/ecs/AlicloudDiskDevice-not-required.mdx
@@ -3,13 +3,10 @@
- `disk_name` (string) - The value of disk name is blank by default. [2,
128] English or Chinese characters, must begin with an
uppercase/lowercase letter or Chinese character. Can contain numbers,
- ., _ and -. The disk name will appear on the console. It cannot
+ ., \_ and -. The disk name will appear on the console. It cannot
begin with `http://` or `https://`.
-- `disk_category` (string) - Category of the system disk. Optional values are:
- - cloud - general cloud disk
- - cloud_efficiency - efficiency cloud disk
- - cloud_ssd - cloud SSD
+- `disk_category` (string) - Category of the system disk. Optional values are: - cloud - general cloud disk - cloud_efficiency - efficiency cloud disk - cloud_ssd - cloud SSD
- `disk_size` (int) - Size of the system disk, measured in GiB. Value
range: [20, 500]. The specified value must be equal to or greater
diff --git a/website/pages/partials/builder/alicloud/ecs/AlicloudDiskDevice.mdx b/website/content/partials/builder/alicloud/ecs/AlicloudDiskDevice.mdx
similarity index 100%
rename from website/pages/partials/builder/alicloud/ecs/AlicloudDiskDevice.mdx
rename to website/content/partials/builder/alicloud/ecs/AlicloudDiskDevice.mdx
diff --git a/website/pages/partials/builder/alicloud/ecs/AlicloudDiskDevices-not-required.mdx b/website/content/partials/builder/alicloud/ecs/AlicloudDiskDevices-not-required.mdx
similarity index 98%
rename from website/pages/partials/builder/alicloud/ecs/AlicloudDiskDevices-not-required.mdx
rename to website/content/partials/builder/alicloud/ecs/AlicloudDiskDevices-not-required.mdx
index 01f5c4edb..8911e8a31 100644
--- a/website/pages/partials/builder/alicloud/ecs/AlicloudDiskDevices-not-required.mdx
+++ b/website/content/partials/builder/alicloud/ecs/AlicloudDiskDevices-not-required.mdx
@@ -4,7 +4,7 @@
See the [disk device configuration](#disk-devices-configuration) section
for more information on options.
Usage example:
-
+
```json
"builders": [{
"type":"alicloud-ecs",
@@ -20,7 +20,7 @@
See the [disk device configuration](#disk-devices-configuration) section
for more information on options.
Usage example:
-
+
```json
"builders": [{
"type":"alicloud-ecs",
@@ -32,4 +32,4 @@
],
...
}
- ```
+ ```
diff --git a/website/pages/partials/builder/alicloud/ecs/AlicloudDiskDevices.mdx b/website/content/partials/builder/alicloud/ecs/AlicloudDiskDevices.mdx
similarity index 100%
rename from website/pages/partials/builder/alicloud/ecs/AlicloudDiskDevices.mdx
rename to website/content/partials/builder/alicloud/ecs/AlicloudDiskDevices.mdx
diff --git a/website/pages/partials/builder/alicloud/ecs/AlicloudImageConfig-not-required.mdx b/website/content/partials/builder/alicloud/ecs/AlicloudImageConfig-not-required.mdx
similarity index 96%
rename from website/pages/partials/builder/alicloud/ecs/AlicloudImageConfig-not-required.mdx
rename to website/content/partials/builder/alicloud/ecs/AlicloudImageConfig-not-required.mdx
index ae957a5e8..cc0fdaa82 100644
--- a/website/pages/partials/builder/alicloud/ecs/AlicloudImageConfig-not-required.mdx
+++ b/website/content/partials/builder/alicloud/ecs/AlicloudImageConfig-not-required.mdx
@@ -17,10 +17,10 @@
- `image_copy_names` ([]string) - The name of the destination image, [2, 128] English or Chinese
characters. It must begin with an uppercase/lowercase letter or a
- Chinese character, and may contain numbers, _ or -. It cannot begin with
+ Chinese character, and may contain numbers, \_ or -. It cannot begin with
`http://` or `https://`.
-- `image_encrypted` (boolean) - Whether or not to encrypt the target images, including those
+- `image_encrypted` (boolean) - Whether or not to encrypt the target images, including those
copied if image_copy_regions is specified. If this option is set to
true, a temporary image will be created from the provisioned instance in
the main region and an encrypted copy will be generated in the same
diff --git a/website/pages/partials/builder/alicloud/ecs/AlicloudImageConfig-required.mdx b/website/content/partials/builder/alicloud/ecs/AlicloudImageConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/alicloud/ecs/AlicloudImageConfig-required.mdx
rename to website/content/partials/builder/alicloud/ecs/AlicloudImageConfig-required.mdx
diff --git a/website/pages/partials/builder/alicloud/ecs/RunConfig-not-required.mdx b/website/content/partials/builder/alicloud/ecs/RunConfig-not-required.mdx
similarity index 91%
rename from website/pages/partials/builder/alicloud/ecs/RunConfig-not-required.mdx
rename to website/content/partials/builder/alicloud/ecs/RunConfig-not-required.mdx
index edb8e05e5..0a9d4ed64 100644
--- a/website/pages/partials/builder/alicloud/ecs/RunConfig-not-required.mdx
+++ b/website/content/partials/builder/alicloud/ecs/RunConfig-not-required.mdx
@@ -12,7 +12,7 @@
- `force_stop_instance` (bool) - Whether to force shutdown upon device
restart. The default value is `false`.
-
+
If it is set to `false`, the system is shut down normally; if it is set to
`true`, the system is forced to shut down.
@@ -34,7 +34,7 @@
- `security_group_name` (string) - The security group name. The default value
is blank. [2, 128] English or Chinese characters, must begin with an
uppercase/lowercase letter or Chinese character. Can contain numbers, .,
- _ or -. It cannot begin with `http://` or `https://`.
+ \_ or -. It cannot begin with `http://` or `https://`.
- `user_data` (string) - User data to apply when launching the instance. Note
that you need to be careful about escaping characters due to the templates
@@ -49,7 +49,7 @@
- `vpc_name` (string) - The VPC name. The default value is blank. [2, 128]
English or Chinese characters, must begin with an uppercase/lowercase
- letter or Chinese character. Can contain numbers, _ and -. The disk
+ letter or Chinese character. Can contain numbers, \_ and -. The disk
description will appear on the console. Cannot begin with `http://` or
`https://`.
@@ -69,21 +69,23 @@
- `internet_charge_type` (string) - Internet charge type, which can be
`PayByTraffic` or `PayByBandwidth`. Optional values:
- - `PayByBandwidth`
- - `PayByTraffic`
-
+
+ - `PayByBandwidth`
+ - `PayByTraffic`
+
If this parameter is not specified, the default value is `PayByBandwidth`.
For the regions out of China, currently only support `PayByTraffic`, you
must set it manfully.
- `internet_max_bandwidth_out` (int) - Maximum outgoing bandwidth to the
public network, measured in Mbps (Mega bits per second).
-
+
Value range:
- - `PayByBandwidth`: \[0, 100\]. If this parameter is not specified, API
- automatically sets it to 0 Mbps.
- - `PayByTraffic`: \[1, 100\]. If this parameter is not specified, an
- error is returned.
+
+ - `PayByBandwidth`: \[0, 100\]. If this parameter is not specified, API
+ automatically sets it to 0 Mbps.
+ - `PayByTraffic`: \[1, 100\]. If this parameter is not specified, an
+ error is returned.
- `wait_snapshot_ready_timeout` (int) - Timeout of creating snapshot(s).
The default timeout is 3600 seconds if this option is not set or is set
diff --git a/website/pages/partials/builder/alicloud/ecs/RunConfig-required.mdx b/website/content/partials/builder/alicloud/ecs/RunConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/alicloud/ecs/RunConfig-required.mdx
rename to website/content/partials/builder/alicloud/ecs/RunConfig-required.mdx
diff --git a/website/pages/partials/builder/amazon/chroot/Config-not-required.mdx b/website/content/partials/builder/amazon/chroot/Config-not-required.mdx
similarity index 84%
rename from website/pages/partials/builder/amazon/chroot/Config-not-required.mdx
rename to website/content/partials/builder/amazon/chroot/Config-not-required.mdx
index b113914ba..c5dcc623b 100644
--- a/website/pages/partials/builder/amazon/chroot/Config-not-required.mdx
+++ b/website/content/partials/builder/amazon/chroot/Config-not-required.mdx
@@ -81,47 +81,47 @@
if building based on top of a source_ami which is also io1.
- `source_ami_filter` (awscommon.AmiFilterOptions) - Filters used to populate the source_ami field. Example:
-
+
```json
{
- "source_ami_filter": {
- "filters": {
- "virtualization-type": "hvm",
- "name": "ubuntu/images/*ubuntu-xenial-16.04-amd64-server-*",
- "root-device-type": "ebs"
- },
- "owners": ["099720109477"],
- "most_recent": true
- }
+ "source_ami_filter": {
+ "filters": {
+ "virtualization-type": "hvm",
+ "name": "ubuntu/images/*ubuntu-xenial-16.04-amd64-server-*",
+ "root-device-type": "ebs"
+ },
+ "owners": ["099720109477"],
+ "most_recent": true
+ }
}
```
-
+
This selects the most recent Ubuntu 16.04 HVM EBS AMI from Canonical. NOTE:
- This will fail unless *exactly* one AMI is returned. In the above example,
+ This will fail unless _exactly_ one AMI is returned. In the above example,
`most_recent` will cause this to succeed by selecting the newest image.
-
- - `filters` (map of strings) - filters used to select a `source_ami`.
- NOTE: This will fail unless *exactly* one AMI is returned. Any filter
- described in the docs for
- [DescribeImages](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html)
- is valid.
-
- - `owners` (array of strings) - Filters the images by their owner. You
- may specify one or more AWS account IDs, "self" (which will use the
- account whose credentials you are using to run Packer), or an AWS owner
- alias: for example, "amazon", "aws-marketplace", or "microsoft". This
- option is required for security reasons.
-
- - `most_recent` (boolean) - Selects the newest created image when true.
- This is most useful for selecting a daily distro build.
-
+
+ - `filters` (map of strings) - filters used to select a `source_ami`.
+ NOTE: This will fail unless _exactly_ one AMI is returned. Any filter
+ described in the docs for
+ [DescribeImages](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html)
+ is valid.
+
+ - `owners` (array of strings) - Filters the images by their owner. You
+ may specify one or more AWS account IDs, "self" (which will use the
+ account whose credentials you are using to run Packer), or an AWS owner
+ alias: for example, "amazon", "aws-marketplace", or "microsoft". This
+ option is required for security reasons.
+
+ - `most_recent` (boolean) - Selects the newest created image when true.
+ This is most useful for selecting a daily distro build.
+
You may set this in place of `source_ami` or in conjunction with it. If you
set this in conjunction with `source_ami`, the `source_ami` will be added
to the filter. The provided `source_ami` must meet all of the filtering
criteria provided in `source_ami_filter`; this pins the AMI returned by the
filter, but will cause Packer to fail if the `source_ami` does not exist.
-- `root_volume_tags` (map[string]string) - Key/value pair tags to apply to the volumes that are *launched*. This is
+- `root_volume_tags` (map[string]string) - Key/value pair tags to apply to the volumes that are _launched_. This is
a [template engine](/docs/templates/engine), see [Build template
data](#build-template-data) for more information.
diff --git a/website/pages/partials/builder/amazon/chroot/Config-required.mdx b/website/content/partials/builder/amazon/chroot/Config-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/chroot/Config-required.mdx
rename to website/content/partials/builder/amazon/chroot/Config-required.mdx
diff --git a/website/pages/partials/builder/amazon/chroot/Config.mdx b/website/content/partials/builder/amazon/chroot/Config.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/chroot/Config.mdx
rename to website/content/partials/builder/amazon/chroot/Config.mdx
diff --git a/website/pages/partials/builder/amazon/common/AMIConfig-not-required.mdx b/website/content/partials/builder/amazon/common/AMIConfig-not-required.mdx
similarity index 96%
rename from website/pages/partials/builder/amazon/common/AMIConfig-not-required.mdx
rename to website/content/partials/builder/amazon/common/AMIConfig-not-required.mdx
index f5681e72e..c2e45ed85 100644
--- a/website/pages/partials/builder/amazon/common/AMIConfig-not-required.mdx
+++ b/website/content/partials/builder/amazon/common/AMIConfig-not-required.mdx
@@ -1,7 +1,7 @@
- `ami_description` (string) - The description to set for the resulting
- AMI(s). By default this description is empty. This is a
+ AMI(s). By default this description is empty. This is a
[template engine](/docs/templates/engine), see [Build template
data](#build-template-data) for more information.
@@ -40,7 +40,7 @@
- `ena_support` (boolean) - Enable enhanced networking (ENA but not SriovNetSupport) on
HVM-compatible AMIs. If set, add `ec2:ModifyInstanceAttribute` to your
AWS IAM policy.
-
+
Note: you must make sure enhanced networking is enabled on your
instance. See [Amazon's documentation on enabling enhanced
networking](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking.html#enabling_enhanced_networking).
@@ -64,7 +64,7 @@
the encryption setting to what it was in the source image. Setting false
will result in an unencrypted image, and true will result in an encrypted
one.
-
+
If you have used the `launch_block_device_mappings` to set an encryption
key and that key is the same as the one you want the image encrypted with
at the end, then you don't need to set this field; leaving it empty will
@@ -74,18 +74,18 @@
only applies to the main `region` -- any regions the AMI gets copied to
copied will be encrypted by the default EBS KMS key for that region,
unless you set region-specific keys in AMIRegionKMSKeyIDs.
-
+
Set this value if you select `encrypt_boot`, but don't want to use the
region's default KMS key.
-
+
If you have a custom kms key you'd like to apply to the launch volume,
and are only building in one region, it is more efficient to leave this
and `encrypt_boot` empty and to instead set the key id in the
launch_block_device_mappings (you can find an example below). This saves
potentially many minutes at the end of the build by preventing Packer
from having to copy and re-encrypt the image at the end of the build.
-
- For valid formats see *KmsKeyId* in the [AWS API docs -
+
+ For valid formats see _KmsKeyId_ in the [AWS API docs -
CopyImage](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CopyImage.html).
This field is validated by Packer, when using an alias, you will have to
prefix `kms_key_id` with `alias/`.
@@ -95,12 +95,11 @@
provided in `ami_regions`. If you just want to encrypt using a default
ID, you can stick with `kms_key_id` and `ami_regions`. If you want a
region to be encrypted with that region's default key ID, you can use an
- empty string `""` instead of a key id in this map. (e.g. `"us-east-1":
- ""`) However, you cannot use default key IDs if you are using this in
+ empty string `""` instead of a key id in this map. (e.g. `"us-east-1": ""`) However, you cannot use default key IDs if you are using this in
conjunction with `snapshot_users` -- in that situation you must use
- custom keys. For valid formats see *KmsKeyId* in the [AWS API docs -
+ custom keys. For valid formats see _KmsKeyId_ in the [AWS API docs -
CopyImage](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CopyImage.html).
-
+
This option supercedes the `kms_key_id` option -- if you set both, and
they are different, Packer will respect the value in
`region_kms_key_ids` for your build region and silently disregard the
diff --git a/website/pages/partials/builder/amazon/common/AMIConfig-required.mdx b/website/content/partials/builder/amazon/common/AMIConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/AMIConfig-required.mdx
rename to website/content/partials/builder/amazon/common/AMIConfig-required.mdx
diff --git a/website/pages/partials/builder/amazon/common/AMIConfig.mdx b/website/content/partials/builder/amazon/common/AMIConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/AMIConfig.mdx
rename to website/content/partials/builder/amazon/common/AMIConfig.mdx
diff --git a/website/pages/partials/builder/amazon/common/AWSPollingConfig-not-required.mdx b/website/content/partials/builder/amazon/common/AWSPollingConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/AWSPollingConfig-not-required.mdx
rename to website/content/partials/builder/amazon/common/AWSPollingConfig-not-required.mdx
diff --git a/website/pages/partials/builder/amazon/common/AWSPollingConfig.mdx b/website/content/partials/builder/amazon/common/AWSPollingConfig.mdx
similarity index 99%
rename from website/pages/partials/builder/amazon/common/AWSPollingConfig.mdx
rename to website/content/partials/builder/amazon/common/AWSPollingConfig.mdx
index 5fbab730c..a3417dd35 100644
--- a/website/pages/partials/builder/amazon/common/AWSPollingConfig.mdx
+++ b/website/content/partials/builder/amazon/common/AWSPollingConfig.mdx
@@ -5,6 +5,7 @@ volumes or importing image.
Usage example:
In JSON:
+
```json
"aws_polling" : {
"delay_seconds": 30,
@@ -13,6 +14,7 @@ In JSON:
```
In HCL2:
+
```hcl
aws_polling {
delay_seconds = 30
diff --git a/website/pages/partials/builder/amazon/common/AccessConfig-not-required.mdx b/website/content/partials/builder/amazon/common/AccessConfig-not-required.mdx
similarity index 68%
rename from website/pages/partials/builder/amazon/common/AccessConfig-not-required.mdx
rename to website/content/partials/builder/amazon/common/AccessConfig-not-required.mdx
index 45b2c116f..0cd869619 100644
--- a/website/pages/partials/builder/amazon/common/AccessConfig-not-required.mdx
+++ b/website/content/partials/builder/amazon/common/AccessConfig-not-required.mdx
@@ -47,39 +47,40 @@
generating credentials via the Vault engine, see the [Vault
docs.](https://www.vaultproject.io/api/secret/aws#generate-credentials)
If you set this flag, you must also set the below options:
- - `name` (string) - Required. Specifies the name of the role to generate
- credentials against. This is part of the request URL.
- - `engine_name` (string) - The name of the aws secrets engine. In the
- Vault docs, this is normally referred to as "aws", and Packer will
- default to "aws" if `engine_name` is not set.
- - `role_arn` (string)- The ARN of the role to assume if credential\_type
- on the Vault role is assumed\_role. Must match one of the allowed role
- ARNs in the Vault role. Optional if the Vault role only allows a single
- AWS role ARN; required otherwise.
- - `ttl` (string) - Specifies the TTL for the use of the STS token. This
- is specified as a string with a duration suffix. Valid only when
- credential\_type is assumed\_role or federation\_token. When not
- specified, the default\_sts\_ttl set for the role will be used. If that
- is also not set, then the default value of 3600s will be used. AWS
- places limits on the maximum TTL allowed. See the AWS documentation on
- the DurationSeconds parameter for AssumeRole (for assumed\_role
- credential types) and GetFederationToken (for federation\_token
- credential types) for more details.
-
+
+ - `name` (string) - Required. Specifies the name of the role to generate
+ credentials against. This is part of the request URL.
+ - `engine_name` (string) - The name of the aws secrets engine. In the
+ Vault docs, this is normally referred to as "aws", and Packer will
+ default to "aws" if `engine_name` is not set.
+ - `role_arn` (string)- The ARN of the role to assume if credential_type
+ on the Vault role is assumed_role. Must match one of the allowed role
+ ARNs in the Vault role. Optional if the Vault role only allows a single
+ AWS role ARN; required otherwise.
+ - `ttl` (string) - Specifies the TTL for the use of the STS token. This
+ is specified as a string with a duration suffix. Valid only when
+ credential_type is assumed_role or federation_token. When not
+ specified, the default_sts_ttl set for the role will be used. If that
+ is also not set, then the default value of 3600s will be used. AWS
+ places limits on the maximum TTL allowed. See the AWS documentation on
+ the DurationSeconds parameter for AssumeRole (for assumed_role
+ credential types) and GetFederationToken (for federation_token
+ credential types) for more details.
+
JSON example:
-
+
```json
{
- "vault_aws_engine": {
- "name": "myrole",
- "role_arn": "myarn",
- "ttl": "3600s"
- }
+ "vault_aws_engine": {
+ "name": "myrole",
+ "role_arn": "myarn",
+ "ttl": "3600s"
+ }
}
```
-
+
HCL2 example:
-
+
```hcl
vault_aws_engine {
name = "myrole"
diff --git a/website/pages/partials/builder/amazon/common/AccessConfig-required.mdx b/website/content/partials/builder/amazon/common/AccessConfig-required.mdx
similarity index 96%
rename from website/pages/partials/builder/amazon/common/AccessConfig-required.mdx
rename to website/content/partials/builder/amazon/common/AccessConfig-required.mdx
index 23fb2db77..43fd018d0 100644
--- a/website/pages/partials/builder/amazon/common/AccessConfig-required.mdx
+++ b/website/content/partials/builder/amazon/common/AccessConfig-required.mdx
@@ -1,6 +1,6 @@
-- `access_key` (string) - The access key used to communicate with AWS. [Learn how to set this]
+- `access_key` (string) - The access key used to communicate with AWS. [Learn how to set this]
(/docs/builders/amazon#specifying-amazon-credentials). On EBS, this
is not required if you are using `use_vault_aws_engine` for
authentication instead.
diff --git a/website/pages/partials/builder/amazon/common/AccessConfig.mdx b/website/content/partials/builder/amazon/common/AccessConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/AccessConfig.mdx
rename to website/content/partials/builder/amazon/common/AccessConfig.mdx
diff --git a/website/pages/partials/builder/amazon/common/AmiFilterOptions-not-required.mdx b/website/content/partials/builder/amazon/common/AmiFilterOptions-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/AmiFilterOptions-not-required.mdx
rename to website/content/partials/builder/amazon/common/AmiFilterOptions-not-required.mdx
diff --git a/website/pages/partials/builder/amazon/common/AssumeRoleConfig-not-required.mdx b/website/content/partials/builder/amazon/common/AssumeRoleConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/AssumeRoleConfig-not-required.mdx
rename to website/content/partials/builder/amazon/common/AssumeRoleConfig-not-required.mdx
diff --git a/website/pages/partials/builder/amazon/common/AssumeRoleConfig.mdx b/website/content/partials/builder/amazon/common/AssumeRoleConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/AssumeRoleConfig.mdx
rename to website/content/partials/builder/amazon/common/AssumeRoleConfig.mdx
diff --git a/website/pages/partials/builder/amazon/common/BlockDevice-not-required.mdx b/website/content/partials/builder/amazon/common/BlockDevice-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/BlockDevice-not-required.mdx
rename to website/content/partials/builder/amazon/common/BlockDevice-not-required.mdx
diff --git a/website/pages/partials/builder/amazon/common/BlockDevice.mdx b/website/content/partials/builder/amazon/common/BlockDevice.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/BlockDevice.mdx
rename to website/content/partials/builder/amazon/common/BlockDevice.mdx
diff --git a/website/pages/partials/builder/amazon/common/PolicyDocument-not-required.mdx b/website/content/partials/builder/amazon/common/PolicyDocument-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/PolicyDocument-not-required.mdx
rename to website/content/partials/builder/amazon/common/PolicyDocument-not-required.mdx
diff --git a/website/pages/partials/builder/amazon/common/RunConfig-not-required.mdx b/website/content/partials/builder/amazon/common/RunConfig-not-required.mdx
similarity index 70%
rename from website/pages/partials/builder/amazon/common/RunConfig-not-required.mdx
rename to website/content/partials/builder/amazon/common/RunConfig-not-required.mdx
index 999dc7fd8..cbe7bda14 100644
--- a/website/pages/partials/builder/amazon/common/RunConfig-not-required.mdx
+++ b/website/content/partials/builder/amazon/common/RunConfig-not-required.mdx
@@ -17,22 +17,26 @@
run. For Windows instances, it is sometimes desirable to [run
Sysprep](http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ami-create-standard.html)
which will stop the instance for you. If this is set to `true`, Packer
- *will not* stop the instance but will assume that you will send the stop
+ _will not_ stop the instance but will assume that you will send the stop
signal yourself through your final provisioner. You can do this with a
[windows-shell provisioner](/docs/provisioners/windows-shell). Note that
Packer will still wait for the instance to be stopped, and failing to
send the stop signal yourself, when you have set this flag to `true`,
will cause a timeout.
-
+
An example of a valid windows shutdown command in a `windows-shell`
provisioner is :
+
```shell-session
ec2config.exe -sysprep
```
+
or
+
```sell-session
"%programfiles%\amazon\ec2configservice\"ec2config.exe -sysprep""
```
+
-> Note: The double quotation marks in the command are not required if
your CMD shell is already in the
`C:\Program Files\Amazon\EC2ConfigService\` directory.
@@ -54,12 +58,12 @@
up a [T2
Standard](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-std.html)
instance instead.
-
+
To use T2 Unlimited you must use a T2 instance type, e.g. `t2.micro`.
Additionally, T2 Unlimited cannot be used in conjunction with Spot
Instances, e.g. when the `spot_price` option has been configured.
Attempting to do so will cause an error.
-
+
!> **Warning!** Additional costs may be incurred by enabling T2
Unlimited - even for instances that would usually qualify for the
[AWS Free Tier](https://aws.amazon.com/free/).
@@ -72,19 +76,17 @@
- `temporary_iam_instance_profile_policy_document` (\*PolicyDocument) - Temporary IAM instance profile policy document
If IamInstanceProfile is specified it will be used instead. Example:
-
+
```json
{
- "Version": "2012-10-17",
- "Statement": [
- {
- "Action": [
- "logs:*"
- ],
- "Effect": "Allow",
- "Resource": "*"
- }
- ]
+ "Version": "2012-10-17",
+ "Statement": [
+ {
+ "Action": ["logs:*"],
+ "Effect": "Allow",
+ "Resource": "*"
+ }
+ ]
}
```
@@ -93,7 +95,7 @@
terminate. Defaults to stop.
- `security_group_filter` (SecurityGroupFilterOptions) - Filters used to populate the `security_group_ids` field. JSON Example:
-
+
```json
{
"security_group_filter": {
@@ -103,9 +105,9 @@
}
}
```
-
+
HCL2 Example:
-
+
```hcl
security_group_filter {
filters = {
@@ -113,17 +115,17 @@
}
}
```
-
+
This selects the SG's with tag `Class` with the value `packer`.
-
- - `filters` (map of strings) - filters used to select a
- `security_group_ids`. Any filter described in the docs for
- [DescribeSecurityGroups](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html)
- is valid.
-
+
+ - `filters` (map of strings) - filters used to select a
+ `security_group_ids`. Any filter described in the docs for
+ [DescribeSecurityGroups](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html)
+ is valid.
+
`security_group_ids` take precedence over this.
-- `run_tags` (map[string]string) - Key/value pair tags to apply to the instance that is that is *launched*
+- `run_tags` (map[string]string) - Key/value pair tags to apply to the instance that is that is _launched_
to create the EBS volumes. This is a [template
engine](/docs/templates/engine), see [Build template
data](#build-template-data) for more information.
@@ -145,25 +147,26 @@
- `source_ami_filter` (AmiFilterOptions) - Filters used to populate the `source_ami`
field. JSON Example:
-
+
```json
- "builders" [
+ "builders"[
{
"type": "amazon-ebs",
"source_ami_filter": {
- "filters": {
- "virtualization-type": "hvm",
- "name": "ubuntu/images/\*ubuntu-xenial-16.04-amd64-server-\*",
- "root-device-type": "ebs"
- },
- "owners": ["099720109477"],
- "most_recent": true
+ "filters": {
+ "virtualization-type": "hvm",
+ "name": "ubuntu/images/*ubuntu-xenial-16.04-amd64-server-*",
+ "root-device-type": "ebs"
+ },
+ "owners": ["099720109477"],
+ "most_recent": true
}
}
]
```
+
HCL2 example:
-
+
```hcl
source "amazon-ebs" "basic-example" {
source_ami_filter {
@@ -177,37 +180,37 @@
}
}
```
-
- This selects the most recent Ubuntu 16.04 HVM EBS AMI from Canonical. NOTE:
- This will fail unless *exactly* one AMI is returned. In the above example,
- `most_recent` will cause this to succeed by selecting the newest image.
-
- - `filters` (map of strings) - filters used to select a `source_ami`.
- NOTE: This will fail unless *exactly* one AMI is returned. Any filter
- described in the docs for
- [DescribeImages](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html)
- is valid.
-
- - `owners` (array of strings) - Filters the images by their owner. You
- may specify one or more AWS account IDs, "self" (which will use the
- account whose credentials you are using to run Packer), or an AWS owner
- alias: for example, `amazon`, `aws-marketplace`, or `microsoft`. This
- option is required for security reasons.
-
- - `most_recent` (boolean) - Selects the newest created image when true.
- This is most useful for selecting a daily distro build.
-
- You may set this in place of `source_ami` or in conjunction with it. If you
- set this in conjunction with `source_ami`, the `source_ami` will be added
- to the filter. The provided `source_ami` must meet all of the filtering
- criteria provided in `source_ami_filter`; this pins the AMI returned by the
- filter, but will cause Packer to fail if the `source_ami` does not exist.
+
+ This selects the most recent Ubuntu 16.04 HVM EBS AMI from Canonical. NOTE:
+ This will fail unless _exactly_ one AMI is returned. In the above example,
+ `most_recent` will cause this to succeed by selecting the newest image.
+
+ - `filters` (map of strings) - filters used to select a `source_ami`.
+ NOTE: This will fail unless _exactly_ one AMI is returned. Any filter
+ described in the docs for
+ [DescribeImages](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html)
+ is valid.
+
+ - `owners` (array of strings) - Filters the images by their owner. You
+ may specify one or more AWS account IDs, "self" (which will use the
+ account whose credentials you are using to run Packer), or an AWS owner
+ alias: for example, `amazon`, `aws-marketplace`, or `microsoft`. This
+ option is required for security reasons.
+
+ - `most_recent` (boolean) - Selects the newest created image when true.
+ This is most useful for selecting a daily distro build.
+
+ You may set this in place of `source_ami` or in conjunction with it. If you
+ set this in conjunction with `source_ami`, the `source_ami` will be added
+ to the filter. The provided `source_ami` must meet all of the filtering
+ criteria provided in `source_ami_filter`; this pins the AMI returned by the
+ filter, but will cause Packer to fail if the `source_ami` does not exist.
- `spot_instance_types` ([]string) - a list of acceptable instance
types to run your build on. We will request a spot instance using the max
price of spot_price and the allocation strategy of "lowest price".
Your instance will be launched on an instance type of the lowest available
- price that you have in your list. This is used in place of instance_type.
+ price that you have in your list. This is used in place of instance_type.
You may only set either spot_instance_types or instance_type, not both.
This feature exists to help prevent situations where a Packer build fails
because a particular availability zone does not have capacity for the
@@ -217,7 +220,7 @@
time period your instances are running. Spot Instance prices are set by
Amazon EC2 and adjust gradually based on long-term trends in supply and
demand for Spot Instance capacity.
-
+
When this field is set, it represents the maximum hourly price you are
willing to pay for a spot instance. If you do not set this value, it
defaults to a maximum price equal to the on demand price of the
@@ -239,9 +242,9 @@
- `subnet_filter` (SubnetFilterOptions) - Filters used to populate the `subnet_id` field.
JSON Example:
-
+
```json
- "builders" [
+ "builders"[
{
"type": "amazon-ebs",
"subnet_filter": {
@@ -254,8 +257,9 @@
}
]
```
+
HCL2 example:
-
+
```hcl
source "amazon-ebs" "basic-example" {
subnet_filter {
@@ -267,25 +271,25 @@
}
}
```
-
- This selects the Subnet with tag `Class` with the value `build`, which has
- the most free IP addresses. NOTE: This will fail unless *exactly* one
- Subnet is returned. By using `most_free` or `random` one will be selected
- from those matching the filter.
-
- - `filters` (map of strings) - filters used to select a `subnet_id`.
- NOTE: This will fail unless *exactly* one Subnet is returned. Any
- filter described in the docs for
- [DescribeSubnets](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSubnets.html)
- is valid.
-
- - `most_free` (boolean) - The Subnet with the most free IPv4 addresses
- will be used if multiple Subnets matches the filter.
-
- - `random` (boolean) - A random Subnet will be used if multiple Subnets
- matches the filter. `most_free` have precendence over this.
-
- `subnet_id` take precedence over this.
+
+ This selects the Subnet with tag `Class` with the value `build`, which has
+ the most free IP addresses. NOTE: This will fail unless _exactly_ one
+ Subnet is returned. By using `most_free` or `random` one will be selected
+ from those matching the filter.
+
+ - `filters` (map of strings) - filters used to select a `subnet_id`.
+ NOTE: This will fail unless _exactly_ one Subnet is returned. Any
+ filter described in the docs for
+ [DescribeSubnets](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSubnets.html)
+ is valid.
+
+ - `most_free` (boolean) - The Subnet with the most free IPv4 addresses
+ will be used if multiple Subnets matches the filter.
+
+ - `random` (boolean) - A random Subnet will be used if multiple Subnets
+ matches the filter. `most_free` have precendence over this.
+
+ `subnet_id` take precedence over this.
- `subnet_id` (string) - If using VPC, the ID of the subnet, such as
subnet-12345def, where Packer will launch the EC2 instance. This field is
@@ -293,13 +297,13 @@
- `tenancy` (string) - [Tenancy](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html) used
when Packer launches the EC2 instance, allowing it to be launched on dedicated hardware.
-
+
The default is "default", meaning shared tenancy. Allowed values are "default",
"dedicated" and "host".
- `temporary_security_group_source_cidrs` ([]string) - A list of IPv4 CIDR blocks to be authorized access to the instance, when
packer is creating a temporary security group.
-
+
The default is [`0.0.0.0/0`] (i.e., allow any IPv4 source). This is only
used when `security_group_id` or `security_group_ids` is not specified.
@@ -314,9 +318,9 @@
- `vpc_filter` (VpcFilterOptions) - Filters used to populate the `vpc_id` field.
JSON Example:
-
+
```json
- "builders" [
+ "builders"[
{
"type": "amazon-ebs",
"vpc_filter": {
@@ -329,8 +333,9 @@
}
]
```
+
HCL2 example:
-
+
```hcl
source "amazon-ebs" "basic-example" {
vpc_filter {
@@ -342,17 +347,17 @@
}
}
```
-
+
This selects the VPC with tag `Class` with the value `build`, which is not
the default VPC, and have a IPv4 CIDR block of `/24`. NOTE: This will fail
- unless *exactly* one VPC is returned.
-
- - `filters` (map of strings) - filters used to select a `vpc_id`. NOTE:
- This will fail unless *exactly* one VPC is returned. Any filter
- described in the docs for
- [DescribeVpcs](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html)
- is valid.
-
+ unless _exactly_ one VPC is returned.
+
+ - `filters` (map of strings) - filters used to select a `vpc_id`. NOTE:
+ This will fail unless _exactly_ one VPC is returned. Any filter
+ described in the docs for
+ [DescribeVpcs](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html)
+ is valid.
+
`vpc_id` take precedence over this.
- `vpc_id` (string) - If launching into a VPC subnet, Packer needs the VPC ID
@@ -365,25 +370,26 @@
10m
- `ssh_interface` (string) - One of `public_ip`, `private_ip`, `public_dns`, `private_dns` or `session_manager`.
- If set, either the public IP address, private IP address, public DNS name
- or private DNS name will be used as the host for SSH. The default behaviour
- if inside a VPC is to use the public IP address if available, otherwise
- the private IP address will be used. If not in a VPC the public DNS name
- will be used. Also works for WinRM.
-
- Where Packer is configured for an outbound proxy but WinRM traffic
- should be direct, `ssh_interface` must be set to `private_dns` and
- `.compute.internal` included in the `NO_PROXY` environment
- variable.
-
- When using `session_manager` the machine running Packer must have
- the AWS Session Manager Plugin installed and within the users' system path.
- Connectivity via the `session_manager` interface establishes a secure tunnel
- between the local host and the remote host on an available local port to the specified `ssh_port`.
- See [Session Manager Connections](#session-manager-connections) for more information.
- - Session manager connectivity is currently only implemented for the SSH communicator, not the WinRM communicator.
- - Upon termination the secure tunnel will be terminated automatically, if however there is a failure in
- terminating the tunnel it will automatically terminate itself after 20 minutes of inactivity.
+ If set, either the public IP address, private IP address, public DNS name
+ or private DNS name will be used as the host for SSH. The default behaviour
+ if inside a VPC is to use the public IP address if available, otherwise
+ the private IP address will be used. If not in a VPC the public DNS name
+ will be used. Also works for WinRM.
+
+ Where Packer is configured for an outbound proxy but WinRM traffic
+ should be direct, `ssh_interface` must be set to `private_dns` and
+ `.compute.internal` included in the `NO_PROXY` environment
+ variable.
+
+ When using `session_manager` the machine running Packer must have
+ the AWS Session Manager Plugin installed and within the users' system path.
+ Connectivity via the `session_manager` interface establishes a secure tunnel
+ between the local host and the remote host on an available local port to the specified `ssh_port`.
+ See [Session Manager Connections](#session-manager-connections) for more information.
+
+ - Session manager connectivity is currently only implemented for the SSH communicator, not the WinRM communicator.
+ - Upon termination the secure tunnel will be terminated automatically, if however there is a failure in
+ terminating the tunnel it will automatically terminate itself after 20 minutes of inactivity.
- `pause_before_ssm` (duration string | ex: "1h5m2s") - The time to wait before establishing the Session Manager session.
The value of this should be a duration. Examples are
diff --git a/website/pages/partials/builder/amazon/common/RunConfig-required.mdx b/website/content/partials/builder/amazon/common/RunConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/RunConfig-required.mdx
rename to website/content/partials/builder/amazon/common/RunConfig-required.mdx
diff --git a/website/pages/partials/builder/amazon/common/RunConfig.mdx b/website/content/partials/builder/amazon/common/RunConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/RunConfig.mdx
rename to website/content/partials/builder/amazon/common/RunConfig.mdx
diff --git a/website/pages/partials/builder/amazon/common/StateChangeConf.mdx b/website/content/partials/builder/amazon/common/StateChangeConf.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/StateChangeConf.mdx
rename to website/content/partials/builder/amazon/common/StateChangeConf.mdx
diff --git a/website/pages/partials/builder/amazon/common/Statement-not-required.mdx b/website/content/partials/builder/amazon/common/Statement-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/Statement-not-required.mdx
rename to website/content/partials/builder/amazon/common/Statement-not-required.mdx
diff --git a/website/pages/partials/builder/amazon/common/SubnetFilterOptions-not-required.mdx b/website/content/partials/builder/amazon/common/SubnetFilterOptions-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/SubnetFilterOptions-not-required.mdx
rename to website/content/partials/builder/amazon/common/SubnetFilterOptions-not-required.mdx
diff --git a/website/pages/partials/builder/amazon/common/VaultAWSEngineOptions-not-required.mdx b/website/content/partials/builder/amazon/common/VaultAWSEngineOptions-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/common/VaultAWSEngineOptions-not-required.mdx
rename to website/content/partials/builder/amazon/common/VaultAWSEngineOptions-not-required.mdx
diff --git a/website/pages/partials/builder/amazon/ebs/Config-not-required.mdx b/website/content/partials/builder/amazon/ebs/Config-not-required.mdx
similarity index 92%
rename from website/pages/partials/builder/amazon/ebs/Config-not-required.mdx
rename to website/content/partials/builder/amazon/ebs/Config-not-required.mdx
index 2a152c906..3919ddcf0 100644
--- a/website/pages/partials/builder/amazon/ebs/Config-not-required.mdx
+++ b/website/content/partials/builder/amazon/ebs/Config-not-required.mdx
@@ -16,8 +16,8 @@
from the source instance. See the
[BlockDevices](#block-devices-configuration) documentation for fields.
-- `run_volume_tags` (map[string]string) - Tags to apply to the volumes that are *launched* to create the AMI.
- These tags are *not* applied to the resulting AMI unless they're
+- `run_volume_tags` (map[string]string) - Tags to apply to the volumes that are _launched_ to create the AMI.
+ These tags are _not_ applied to the resulting AMI unless they're
duplicated in `tags`. This is a [template
engine](/docs/templates/engine), see [Build template
data](#build-template-data) for more information.
@@ -34,5 +34,5 @@
For more information, see
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/InstanceStorage.html.
Because we don't validate the OS type of your guest, it is up to you to
- make sure you don't set this for *nix guests; behavior may be
+ make sure you don't set this for \*nix guests; behavior may be
unpredictable.
diff --git a/website/pages/partials/builder/amazon/ebssurrogate/BlockDevice-not-required.mdx b/website/content/partials/builder/amazon/ebssurrogate/BlockDevice-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/ebssurrogate/BlockDevice-not-required.mdx
rename to website/content/partials/builder/amazon/ebssurrogate/BlockDevice-not-required.mdx
diff --git a/website/pages/partials/builder/amazon/ebssurrogate/Config-not-required.mdx b/website/content/partials/builder/amazon/ebssurrogate/Config-not-required.mdx
similarity index 94%
rename from website/pages/partials/builder/amazon/ebssurrogate/Config-not-required.mdx
rename to website/content/partials/builder/amazon/ebssurrogate/Config-not-required.mdx
index 71951af3d..dc261354b 100644
--- a/website/pages/partials/builder/amazon/ebssurrogate/Config-not-required.mdx
+++ b/website/content/partials/builder/amazon/ebssurrogate/Config-not-required.mdx
@@ -16,8 +16,8 @@
from the source instance. See the
[BlockDevices](#block-devices-configuration) documentation for fields.
-- `run_volume_tags` (map[string]string) - Tags to apply to the volumes that are *launched* to create the AMI.
- These tags are *not* applied to the resulting AMI unless they're
+- `run_volume_tags` (map[string]string) - Tags to apply to the volumes that are _launched_ to create the AMI.
+ These tags are _not_ applied to the resulting AMI unless they're
duplicated in `tags`. This is a [template
engine](/docs/templates/engine), see [Build template
data](#build-template-data) for more information.
diff --git a/website/pages/partials/builder/amazon/ebssurrogate/Config-required.mdx b/website/content/partials/builder/amazon/ebssurrogate/Config-required.mdx
similarity index 58%
rename from website/pages/partials/builder/amazon/ebssurrogate/Config-required.mdx
rename to website/content/partials/builder/amazon/ebssurrogate/Config-required.mdx
index e5994df14..1567a9aed 100644
--- a/website/pages/partials/builder/amazon/ebssurrogate/Config-required.mdx
+++ b/website/content/partials/builder/amazon/ebssurrogate/Config-required.mdx
@@ -3,7 +3,7 @@
- `ami_root_device` (RootBlockDevice) - A block device mapping describing the root device of the AMI. This looks
like the mappings in `ami_block_device_mapping`, except with an
additional field:
-
- - `source_device_name` (string) - The device name of the block device on
- the source instance to be used as the root device for the AMI. This
- must correspond to a block device in `launch_block_device_mapping`.
+
+ - `source_device_name` (string) - The device name of the block device on
+ the source instance to be used as the root device for the AMI. This
+ must correspond to a block device in `launch_block_device_mapping`.
diff --git a/website/pages/partials/builder/amazon/ebssurrogate/RootBlockDevice-not-required.mdx b/website/content/partials/builder/amazon/ebssurrogate/RootBlockDevice-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/ebssurrogate/RootBlockDevice-not-required.mdx
rename to website/content/partials/builder/amazon/ebssurrogate/RootBlockDevice-not-required.mdx
diff --git a/website/pages/partials/builder/amazon/ebsvolume/BlockDevice-not-required.mdx b/website/content/partials/builder/amazon/ebsvolume/BlockDevice-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/ebsvolume/BlockDevice-not-required.mdx
rename to website/content/partials/builder/amazon/ebsvolume/BlockDevice-not-required.mdx
diff --git a/website/pages/partials/builder/amazon/ebsvolume/Config-not-required.mdx b/website/content/partials/builder/amazon/ebsvolume/Config-not-required.mdx
similarity index 94%
rename from website/pages/partials/builder/amazon/ebsvolume/Config-not-required.mdx
rename to website/content/partials/builder/amazon/ebsvolume/Config-not-required.mdx
index ef4f375a7..5a2ac0110 100644
--- a/website/pages/partials/builder/amazon/ebsvolume/Config-not-required.mdx
+++ b/website/content/partials/builder/amazon/ebsvolume/Config-not-required.mdx
@@ -24,13 +24,13 @@
documentation for fields.
- `run_volume_tags` (map[string]string) - Key/value pair tags to apply to the volumes of the instance that is
- *launched* to create EBS Volumes. These tags will *not* appear in the
+ _launched_ to create EBS Volumes. These tags will _not_ appear in the
tags of the resulting EBS volumes unless they're duplicated under `tags`
in the `ebs_volumes` setting. This is a [template
engine](/docs/templates/engine), see [Build template
data](#build-template-data) for more information.
-
- Note: The tags specified here will be *temporarily* applied to volumes
+
+ Note: The tags specified here will be _temporarily_ applied to volumes
specified in `ebs_volumes` - but only while the instance is being
created. Packer will replace all tags on the volume with the tags
configured in the `ebs_volumes` section as soon as the instance is
diff --git a/website/pages/partials/builder/amazon/instance/Config-not-required.mdx b/website/content/partials/builder/amazon/instance/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/instance/Config-not-required.mdx
rename to website/content/partials/builder/amazon/instance/Config-not-required.mdx
diff --git a/website/pages/partials/builder/amazon/instance/Config-required.mdx b/website/content/partials/builder/amazon/instance/Config-required.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/instance/Config-required.mdx
rename to website/content/partials/builder/amazon/instance/Config-required.mdx
diff --git a/website/pages/partials/builder/amazon/instance/Config.mdx b/website/content/partials/builder/amazon/instance/Config.mdx
similarity index 100%
rename from website/pages/partials/builder/amazon/instance/Config.mdx
rename to website/content/partials/builder/amazon/instance/Config.mdx
diff --git a/website/pages/partials/builder/azure/arm/Config-not-required.mdx b/website/content/partials/builder/azure/arm/Config-not-required.mdx
similarity index 96%
rename from website/pages/partials/builder/azure/arm/Config-not-required.mdx
rename to website/content/partials/builder/azure/arm/Config-not-required.mdx
index f1bfc1ec9..9f8845008 100644
--- a/website/pages/partials/builder/azure/arm/Config-not-required.mdx
+++ b/website/content/partials/builder/azure/arm/Config-not-required.mdx
@@ -13,11 +13,12 @@
- `shared_image_gallery` (SharedImageGallery) - Use a [Shared Gallery
image](https://azure.microsoft.com/en-us/blog/announcing-the-public-preview-of-shared-image-gallery/)
- as the source for this build. *VHD targets are incompatible with this
- build type* - the target must be a *Managed Image*. When using shared_image_gallery as a source, image_publisher,
+ as the source for this build. _VHD targets are incompatible with this
+ build type_ - the target must be a _Managed Image_. When using shared_image_gallery as a source, image_publisher,
image_offer, image_sku, image_version, and custom_managed_image_name should not be set.
-
+
In JSON
+
```json
"shared_image_gallery": {
"subscription": "00000000-0000-0000-0000-00000000000",
@@ -29,7 +30,9 @@
"managed_image_name": "TargetImageName",
"managed_image_resource_group_name": "TargetResourceGroup"
```
+
In HCL2
+
```hcl
shared_image_gallery {
subscription = "00000000-0000-0000-0000-00000000000"
@@ -43,10 +46,11 @@
```
- `shared_image_gallery_destination` (SharedImageGalleryDestination) - The name of the Shared Image Gallery under which the managed image will be published as Shared Gallery Image version.
-
+
Following is an example.
-
+
In JSON
+
```json
"shared_image_gallery_destination": {
"subscription": "00000000-0000-0000-0000-00000000000",
@@ -59,7 +63,9 @@
"managed_image_name": "TargetImageName",
"managed_image_resource_group_name": "TargetResourceGroup"
```
+
In HCL2
+
```hcl
shared_image_gallery_destination {
subscription = "00000000-0000-0000-0000-00000000000"
@@ -75,8 +81,7 @@
- `shared_image_gallery_timeout` (duration string | ex: "1h5m2s") - How long to wait for an image to be published to the shared image
gallery before timing out. If your Packer build is failing on the
- Publishing to Shared Image Gallery step with the error `Original Error:
- context deadline exceeded`, but the image is present when you check your
+ Publishing to Shared Image Gallery step with the error `Original Error: context deadline exceeded`, but the image is present when you check your
Azure dashboard, then you probably need to increase this timeout from
its default of "60m" (valid time units include `s` for seconds, `m` for
minutes, and `h` for hours.)
@@ -96,7 +101,7 @@
across regions due to image synchronization latency. To ensure a consistent
version across regions set this value to one that is available in all
regions where you are deploying.
-
+
CLI example
`az vm image list --location westus --publisher Canonical --offer UbuntuServer --sku 16.04.0-LTS --all`
@@ -106,7 +111,7 @@
VM from your VHD. See
[pricing](https://azure.microsoft.com/en-us/pricing/details/virtual-machines/)
information. Defaults to `Standard_A1`.
-
+
CLI example `az vm list-sizes --location westus`
- `managed_image_resource_group_name` (string) - Specify the managed image resource group name where the result of the
@@ -203,29 +208,29 @@
terms](https://aka.ms/azuremarketplaceapideployment) for more details.
Not all Marketplace images support programmatic deployment, and support
is controlled by the image publisher.
-
- An example plan\_info object is defined below.
-
+
+ An example plan_info object is defined below.
+
```json
{
"plan_info": {
- "plan_name": "rabbitmq",
- "plan_product": "rabbitmq",
- "plan_publisher": "bitnami"
+ "plan_name": "rabbitmq",
+ "plan_product": "rabbitmq",
+ "plan_publisher": "bitnami"
}
}
```
-
+
`plan_name` (string) - The plan name, required. `plan_product` (string) -
The plan product, required. `plan_publisher` (string) - The plan publisher,
required. `plan_promotion_code` (string) - Some images accept a promotion
code, optional.
-
+
Images created from the Marketplace with `plan_info` **must** specify
`plan_info` whenever the image is deployed. The builder automatically adds
tags to the image to ensure this information is not lost. The following
tags are added.
-
+
```text
1. PlanName
2. PlanProduct
@@ -236,8 +241,7 @@
- `polling_duration_timeout` (duration string | ex: "1h5m2s") - The default PollingDuration for azure is 15mins, this property will override
that value. See [Azure DefaultPollingDuration](https://godoc.org/github.com/Azure/go-autorest/autorest#pkg-constants)
If your Packer build is failing on the
- ARM deployment step with the error `Original Error:
- context deadline exceeded`, then you probably need to increase this timeout from
+ ARM deployment step with the error `Original Error: context deadline exceeded`, then you probably need to increase this timeout from
its default of "15m" (valid time units include `s` for seconds, `m` for
minutes, and `h` for hours.)
@@ -257,12 +261,12 @@
or
[Linux](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/about-disks-and-vhds)
for more information.
-
+
For VHD builds the final artifacts will be named
`PREFIX-dataDisk-.UUID.vhd` and stored in the specified capture
container along side the OS disk. The additional disks are included in
the deployment template `PREFIX-vmTemplate.UUID`.
-
+
For Managed build the final artifacts are included in the managed image.
The additional disk will have the same storage account type as the OS
disk, as specified with the `managed_image_storage_account_type`
diff --git a/website/pages/partials/builder/azure/arm/Config-required.mdx b/website/content/partials/builder/azure/arm/Config-required.mdx
similarity index 99%
rename from website/pages/partials/builder/azure/arm/Config-required.mdx
rename to website/content/partials/builder/azure/arm/Config-required.mdx
index 16cac03d6..018cb1d2f 100644
--- a/website/pages/partials/builder/azure/arm/Config-required.mdx
+++ b/website/content/partials/builder/azure/arm/Config-required.mdx
@@ -3,20 +3,20 @@
- `image_publisher` (string) - Name of the publisher to use for your base image (Azure Marketplace Images only). See
[documentation](https://azure.microsoft.com/en-us/documentation/articles/resource-groups-vm-searching/)
for details.
-
+
CLI example `az vm image list-publishers --location westus`
- `image_offer` (string) - Name of the publisher's offer to use for your base image (Azure Marketplace Images only). See
[documentation](https://azure.microsoft.com/en-us/documentation/articles/resource-groups-vm-searching/)
for details.
-
+
CLI example
`az vm image list-offers --location westus --publisher Canonical`
- `image_sku` (string) - SKU of the image offer to use for your base image (Azure Marketplace Images only). See
[documentation](https://azure.microsoft.com/en-us/documentation/articles/resource-groups-vm-searching/)
for details.
-
+
CLI example
`az vm image list-skus --location westus --publisher Canonical --offer UbuntuServer`
diff --git a/website/pages/partials/builder/azure/arm/PlanInformation-not-required.mdx b/website/content/partials/builder/azure/arm/PlanInformation-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/arm/PlanInformation-not-required.mdx
rename to website/content/partials/builder/azure/arm/PlanInformation-not-required.mdx
diff --git a/website/pages/partials/builder/azure/arm/SharedImageGallery-not-required.mdx b/website/content/partials/builder/azure/arm/SharedImageGallery-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/arm/SharedImageGallery-not-required.mdx
rename to website/content/partials/builder/azure/arm/SharedImageGallery-not-required.mdx
diff --git a/website/pages/partials/builder/azure/arm/SharedImageGalleryDestination-not-required.mdx b/website/content/partials/builder/azure/arm/SharedImageGalleryDestination-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/arm/SharedImageGalleryDestination-not-required.mdx
rename to website/content/partials/builder/azure/arm/SharedImageGalleryDestination-not-required.mdx
diff --git a/website/pages/partials/builder/azure/chroot/Config-not-required.mdx b/website/content/partials/builder/azure/chroot/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/chroot/Config-not-required.mdx
rename to website/content/partials/builder/azure/chroot/Config-not-required.mdx
diff --git a/website/pages/partials/builder/azure/chroot/Config-required.mdx b/website/content/partials/builder/azure/chroot/Config-required.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/chroot/Config-required.mdx
rename to website/content/partials/builder/azure/chroot/Config-required.mdx
diff --git a/website/pages/partials/builder/azure/chroot/Config.mdx b/website/content/partials/builder/azure/chroot/Config.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/chroot/Config.mdx
rename to website/content/partials/builder/azure/chroot/Config.mdx
diff --git a/website/pages/partials/builder/azure/chroot/SharedImageGalleryDestination-not-required.mdx b/website/content/partials/builder/azure/chroot/SharedImageGalleryDestination-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/chroot/SharedImageGalleryDestination-not-required.mdx
rename to website/content/partials/builder/azure/chroot/SharedImageGalleryDestination-not-required.mdx
diff --git a/website/pages/partials/builder/azure/chroot/SharedImageGalleryDestination-required.mdx b/website/content/partials/builder/azure/chroot/SharedImageGalleryDestination-required.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/chroot/SharedImageGalleryDestination-required.mdx
rename to website/content/partials/builder/azure/chroot/SharedImageGalleryDestination-required.mdx
diff --git a/website/pages/partials/builder/azure/chroot/SharedImageGalleryDestination.mdx b/website/content/partials/builder/azure/chroot/SharedImageGalleryDestination.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/chroot/SharedImageGalleryDestination.mdx
rename to website/content/partials/builder/azure/chroot/SharedImageGalleryDestination.mdx
diff --git a/website/pages/partials/builder/azure/chroot/TargetRegion-not-required.mdx b/website/content/partials/builder/azure/chroot/TargetRegion-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/chroot/TargetRegion-not-required.mdx
rename to website/content/partials/builder/azure/chroot/TargetRegion-not-required.mdx
diff --git a/website/pages/partials/builder/azure/chroot/TargetRegion-required.mdx b/website/content/partials/builder/azure/chroot/TargetRegion-required.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/chroot/TargetRegion-required.mdx
rename to website/content/partials/builder/azure/chroot/TargetRegion-required.mdx
diff --git a/website/pages/partials/builder/azure/chroot/TargetRegion.mdx b/website/content/partials/builder/azure/chroot/TargetRegion.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/chroot/TargetRegion.mdx
rename to website/content/partials/builder/azure/chroot/TargetRegion.mdx
diff --git a/website/pages/partials/builder/azure/common/client/Config-not-required.mdx b/website/content/partials/builder/azure/common/client/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/common/client/Config-not-required.mdx
rename to website/content/partials/builder/azure/common/client/Config-not-required.mdx
diff --git a/website/pages/partials/builder/azure/common/client/Config.mdx b/website/content/partials/builder/azure/common/client/Config.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/common/client/Config.mdx
rename to website/content/partials/builder/azure/common/client/Config.mdx
diff --git a/website/pages/partials/builder/azure/dtl/ArtifactParameter-not-required.mdx b/website/content/partials/builder/azure/dtl/ArtifactParameter-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/dtl/ArtifactParameter-not-required.mdx
rename to website/content/partials/builder/azure/dtl/ArtifactParameter-not-required.mdx
diff --git a/website/pages/partials/builder/azure/dtl/Config-not-required.mdx b/website/content/partials/builder/azure/dtl/Config-not-required.mdx
similarity index 92%
rename from website/pages/partials/builder/azure/dtl/Config-not-required.mdx
rename to website/content/partials/builder/azure/dtl/Config-not-required.mdx
index 37fd13eb3..414671673 100644
--- a/website/pages/partials/builder/azure/dtl/Config-not-required.mdx
+++ b/website/content/partials/builder/azure/dtl/Config-not-required.mdx
@@ -6,9 +6,9 @@
- `shared_image_gallery` (SharedImageGallery) - Use a [Shared Gallery
image](https://azure.microsoft.com/en-us/blog/announcing-the-public-preview-of-shared-image-gallery/)
- as the source for this build. *VHD targets are incompatible with this
- build type* - the target must be a *Managed Image*.
-
+ as the source for this build. _VHD targets are incompatible with this
+ build type_ - the target must be a _Managed Image_.
+
```json
"shared_image_gallery": {
"subscription": "00000000-0000-0000-0000-00000000000",
@@ -22,9 +22,9 @@
```
- `shared_image_gallery_destination` (SharedImageGalleryDestination) - The name of the Shared Image Gallery under which the managed image will be published as Shared Gallery Image version.
-
+
Following is an example.
-
+
```json
"shared_image_gallery_destination": {
"resource_group": "ResourceGroup",
@@ -39,8 +39,7 @@
- `shared_image_gallery_timeout` (duration string | ex: "1h5m2s") - How long to wait for an image to be published to the shared image
gallery before timing out. If your Packer build is failing on the
- Publishing to Shared Image Gallery step with the error `Original Error:
- context deadline exceeded`, but the image is present when you check your
+ Publishing to Shared Image Gallery step with the error `Original Error: context deadline exceeded`, but the image is present when you check your
Azure dashboard, then you probably need to increase this timeout from
its default of "60m" (valid time units include `s` for seconds, `m` for
minutes, and `h` for hours.)
@@ -48,20 +47,20 @@
- `image_publisher` (string) - PublisherName for your base image. See
[documentation](https://azure.microsoft.com/en-us/documentation/articles/resource-groups-vm-searching/)
for details.
-
+
CLI example `az vm image list-publishers --location westus`
- `image_offer` (string) - Offer for your base image. See
[documentation](https://azure.microsoft.com/en-us/documentation/articles/resource-groups-vm-searching/)
for details.
-
+
CLI example
`az vm image list-offers --location westus --publisher Canonical`
- `image_sku` (string) - SKU for your base image. See
[documentation](https://azure.microsoft.com/en-us/documentation/articles/resource-groups-vm-searching/)
for details.
-
+
CLI example
`az vm image list-skus --location westus --publisher Canonical --offer UbuntuServer`
@@ -70,7 +69,7 @@
across regions due to image synchronization latency. To ensure a consistent
version across regions set this value to one that is available in all
regions where you are deploying.
-
+
CLI example
`az vm image list --location westus --publisher Canonical --offer UbuntuServer --sku 16.04.0-LTS --all`
@@ -78,14 +77,14 @@
not set image_publisher, image_offer, image_sku, or image_version.
- `custom_managed_image_resource_group_name` (string) - Specify the source managed image's resource group used to use. If this
- value is set, do not set image\_publisher, image\_offer, image\_sku, or
- image\_version. If this value is set, the value
+ value is set, do not set image_publisher, image_offer, image_sku, or
+ image_version. If this value is set, the value
`custom_managed_image_name` must also be set. See
[documentation](https://docs.microsoft.com/en-us/azure/storage/storage-managed-disks-overview#images)
to learn more about managed images.
- `custom_managed_image_name` (string) - Specify the source managed image's name to use. If this value is set, do
- not set image\_publisher, image\_offer, image\_sku, or image\_version.
+ not set image_publisher, image_offer, image_sku, or image_version.
If this value is set, the value
`custom_managed_image_resource_group_name` must also be set. See
[documentation](https://docs.microsoft.com/en-us/azure/storage/storage-managed-disks-overview#images)
@@ -97,7 +96,7 @@
VM from your VHD. See
[pricing](https://azure.microsoft.com/en-us/pricing/details/virtual-machines/)
information. Defaults to `Standard_A1`.
-
+
CLI example `az vm list-sizes --location westus`
- `managed_image_resource_group_name` (string) - Specify the managed image resource group name where the result of the
@@ -131,8 +130,7 @@
- `polling_duration_timeout` (duration string | ex: "1h5m2s") - The default PollingDuration for azure is 15mins, this property will override
that value. See [Azure DefaultPollingDuration](https://godoc.org/github.com/Azure/go-autorest/autorest#pkg-constants)
If your Packer build is failing on the
- ARM deployment step with the error `Original Error:
- context deadline exceeded`, then you probably need to increase this timeout from
+ ARM deployment step with the error `Original Error: context deadline exceeded`, then you probably need to increase this timeout from
its default of "15m" (valid time units include `s` for seconds, `m` for
minutes, and `h` for hours.)
diff --git a/website/pages/partials/builder/azure/dtl/DtlArtifact-not-required.mdx b/website/content/partials/builder/azure/dtl/DtlArtifact-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/dtl/DtlArtifact-not-required.mdx
rename to website/content/partials/builder/azure/dtl/DtlArtifact-not-required.mdx
diff --git a/website/pages/partials/builder/azure/dtl/SharedImageGallery-not-required.mdx b/website/content/partials/builder/azure/dtl/SharedImageGallery-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/dtl/SharedImageGallery-not-required.mdx
rename to website/content/partials/builder/azure/dtl/SharedImageGallery-not-required.mdx
diff --git a/website/pages/partials/builder/azure/dtl/SharedImageGalleryDestination-not-required.mdx b/website/content/partials/builder/azure/dtl/SharedImageGalleryDestination-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/azure/dtl/SharedImageGalleryDestination-not-required.mdx
rename to website/content/partials/builder/azure/dtl/SharedImageGalleryDestination-not-required.mdx
diff --git a/website/pages/partials/builder/cloudstack/Config-not-required.mdx b/website/content/partials/builder/cloudstack/Config-not-required.mdx
similarity index 99%
rename from website/pages/partials/builder/cloudstack/Config-not-required.mdx
rename to website/content/partials/builder/cloudstack/Config-not-required.mdx
index 95de7e258..7b8483e45 100644
--- a/website/pages/partials/builder/cloudstack/Config-not-required.mdx
+++ b/website/content/partials/builder/cloudstack/Config-not-required.mdx
@@ -104,6 +104,6 @@
contains tools to support dynamic scaling of VM cpu/memory. Defaults to
false.
-- `template_tag` (string) -
+- `template_tag` (string) -
- `tags` (map[string]string) - Tags
diff --git a/website/pages/partials/builder/cloudstack/Config-required.mdx b/website/content/partials/builder/cloudstack/Config-required.mdx
similarity index 100%
rename from website/pages/partials/builder/cloudstack/Config-required.mdx
rename to website/content/partials/builder/cloudstack/Config-required.mdx
diff --git a/website/pages/partials/builder/cloudstack/Config.mdx b/website/content/partials/builder/cloudstack/Config.mdx
similarity index 100%
rename from website/pages/partials/builder/cloudstack/Config.mdx
rename to website/content/partials/builder/cloudstack/Config.mdx
diff --git a/website/pages/partials/builder/digitalocean/Config-not-required.mdx b/website/content/partials/builder/digitalocean/Config-not-required.mdx
similarity index 96%
rename from website/pages/partials/builder/digitalocean/Config-not-required.mdx
rename to website/content/partials/builder/digitalocean/Config-not-required.mdx
index 4eabeacce..bbc1bedb7 100644
--- a/website/pages/partials/builder/digitalocean/Config-not-required.mdx
+++ b/website/content/partials/builder/digitalocean/Config-not-required.mdx
@@ -26,8 +26,7 @@
- `snapshot_timeout` (duration string | ex: "1h5m2s") - How long to wait for an image to be published to the shared image
gallery before timing out. If your Packer build is failing on the
- Publishing to Shared Image Gallery step with the error `Original Error:
- context deadline exceeded`, but the image is present when you check your
+ Publishing to Shared Image Gallery step with the error `Original Error: context deadline exceeded`, but the image is present when you check your
Azure dashboard, then you probably need to increase this timeout from
its default of "60m" (valid time units include `s` for seconds, `m` for
minutes, and `h` for hours.)
diff --git a/website/pages/partials/builder/digitalocean/Config-required.mdx b/website/content/partials/builder/digitalocean/Config-required.mdx
similarity index 100%
rename from website/pages/partials/builder/digitalocean/Config-required.mdx
rename to website/content/partials/builder/digitalocean/Config-required.mdx
diff --git a/website/pages/partials/builder/docker/AwsAccessConfig-not-required.mdx b/website/content/partials/builder/docker/AwsAccessConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/docker/AwsAccessConfig-not-required.mdx
rename to website/content/partials/builder/docker/AwsAccessConfig-not-required.mdx
diff --git a/website/pages/partials/builder/docker/Config-not-required.mdx b/website/content/partials/builder/docker/Config-not-required.mdx
similarity index 91%
rename from website/pages/partials/builder/docker/Config-not-required.mdx
rename to website/content/partials/builder/docker/Config-not-required.mdx
index e56587dc5..005b9ab7b 100644
--- a/website/pages/partials/builder/docker/Config-not-required.mdx
+++ b/website/content/partials/builder/docker/Config-not-required.mdx
@@ -33,15 +33,13 @@
used. This defaults to true if not set.
- `run_command` ([]string) - An array of arguments to pass to docker run in order to run the
- container. By default this is set to `["-d", "-i", "-t",
- "--entrypoint=/bin/sh", "--", "{{.Image}}"]` if you are using a linux
- container, and `["-d", "-i", "-t", "--entrypoint=powershell", "--",
- "{{.Image}}"]` if you are running a windows container. `{{.Image}}` is a
+ container. By default this is set to `["-d", "-i", "-t", "--entrypoint=/bin/sh", "--", "{{.Image}}"]` if you are using a linux
+ container, and `["-d", "-i", "-t", "--entrypoint=powershell", "--", "{{.Image}}"]` if you are running a windows container. `{{.Image}}` is a
template variable that corresponds to the image template option. Passing
the entrypoint option this way will make it the default entrypoint of
- the resulting image, so running docker run -it --rm will start the
+ the resulting image, so running docker run -it --rm will start the
docker image from the /bin/sh shell interpreter; you could run a script
- or another shell by running docker run -it --rm -c /bin/bash. If your
+ or another shell by running docker run -it --rm -c /bin/bash. If your
docker image embeds a binary intended to be run often, you should
consider changing the default entrypoint to point to it.
diff --git a/website/pages/partials/builder/docker/Config-required.mdx b/website/content/partials/builder/docker/Config-required.mdx
similarity index 100%
rename from website/pages/partials/builder/docker/Config-required.mdx
rename to website/content/partials/builder/docker/Config-required.mdx
diff --git a/website/pages/partials/builder/googlecompute/Config-not-required.mdx b/website/content/partials/builder/googlecompute/Config-not-required.mdx
similarity index 93%
rename from website/pages/partials/builder/googlecompute/Config-not-required.mdx
rename to website/content/partials/builder/googlecompute/Config-not-required.mdx
index 3bc4a6647..b650d3d86 100644
--- a/website/pages/partials/builder/googlecompute/Config-not-required.mdx
+++ b/website/content/partials/builder/googlecompute/Config-not-required.mdx
@@ -50,22 +50,23 @@
- `image_description` (string) - The description of the resulting image.
- `image_encryption_key` (\*CustomerEncryptionKey) - Image encryption key to apply to the created image. Possible values:
- * kmsKeyName - The name of the encryption key that is stored in Google Cloud KMS.
- * RawKey: - A 256-bit customer-supplied encryption key, encodes in RFC 4648 base64.
-
+
+ - kmsKeyName - The name of the encryption key that is stored in Google Cloud KMS.
+ - RawKey: - A 256-bit customer-supplied encryption key, encodes in RFC 4648 base64.
+
examples:
-
- ```json
- {
- "kmsKeyName": "projects/${project}/locations/${region}/keyRings/computeEngine/cryptoKeys/computeEngine/cryptoKeyVersions/4"
+
+ ```json
+ {
+ "kmsKeyName": "projects/${project}/locations/${region}/keyRings/computeEngine/cryptoKeys/computeEngine/cryptoKeyVersions/4"
+ }
+ ```
+
+ ```hcl
+ image_encryption_key {
+ kmsKeyName = "projects/${var.project}/locations/${var.region}/keyRings/computeEngine/cryptoKeys/computeEngine/cryptoKeyVersions/4"
}
- ```
-
- ```hcl
- image_encryption_key {
- kmsKeyName = "projects/${var.project}/locations/${var.region}/keyRings/computeEngine/cryptoKeys/computeEngine/cryptoKeyVersions/4"
- }
- ```
+ ```
- `image_family` (string) - The name of the image family to which the resulting image belongs. You
can create disks by specifying an image family instead of a specific
@@ -79,21 +80,22 @@
- `image_storage_locations` ([]string) - Storage location, either regional or multi-regional, where snapshot
content is to be stored and only accepts 1 value. Always defaults to a nearby regional or multi-regional
location.
-
+
multi-regional example:
-
- ```json
- {
- "image_storage_locations": ["us"]
- }
- ```
+
+ ```json
+ {
+ "image_storage_locations": ["us"]
+ }
+ ```
+
regional example:
-
- ```json
- {
- "image_storage_locations": ["us-east1"]
- }
- ```
+
+ ```json
+ {
+ "image_storage_locations": ["us-east1"]
+ }
+ ```
- `instance_name` (string) - A name to give the launched instance. Beware that this must be unique.
Defaults to `packer-{{uuid}}`.
@@ -105,7 +107,7 @@
- `metadata` (map[string]string) - Metadata applied to the launched instance.
All metadata configuration values are expected to be of type string.
Google metadata options that take a value of `TRUE` or `FALSE` should be
- set as a string (i.e `"TRUE"` `"FALSE"` or `"true"` `"false"`).
+ set as a string (i.e `"TRUE"` `"FALSE"` or `"true"` `"false"`).
- `metadata_files` (map[string]string) - Metadata applied to the launched instance. Values are files.
@@ -129,7 +131,7 @@
- `on_host_maintenance` (string) - Sets Host Maintenance Option. Valid choices are `MIGRATE` and
`TERMINATE`. Please see [GCE Instance Scheduling
Options](https://cloud.google.com/compute/docs/instances/setting-instance-scheduling-options),
- as not all machine\_types support `MIGRATE` (i.e. machines with GPUs).
+ as not all machine_types support `MIGRATE` (i.e. machines with GPUs).
If preemptible is true this can only be `TERMINATE`. If preemptible is
false, it defaults to `MIGRATE`
@@ -142,7 +144,7 @@
- `scopes` ([]string) - The service account scopes for launched
instance. Defaults to:
-
+
```json
[
"https://www.googleapis.com/auth/userinfo.email",
@@ -161,8 +163,9 @@
- `startup_script_file` (string) - The path to a startup script to run on the launched instance from which the image will
be made. When set, the contents of the startup script file will be added to the instance metadata
under the `"startup_script"` metadata property. See [Providing startup script contents directly](https://cloud.google.com/compute/docs/startupscript#providing_startup_script_contents_directly) for more details.
-
+
When using `startup_script_file` the following rules apply:
+
- The contents of the script file will overwrite the value of the `"startup_script"` metadata property at runtime.
- The contents of the script file will be wrapped in Packer's startup script wrapper, unless `wrap_startup_script` is disabled. See `wrap_startup_script` for more details.
- Not supported by Windows instances. See [Startup Scripts for Windows](https://cloud.google.com/compute/docs/startupscript#providing_a_startup_script_for_windows_instances) for more details.
@@ -171,8 +174,9 @@
If "true", the contents of `startup_script_file` or `"startup_script"` in the instance metadata
is wrapped in a Packer specific script that tracks the execution and completion of the provided
startup script. The wrapper ensures that the builder will not continue until the startup script has been executed.
+
- The use of the wrapped script file requires that the user or service account
- running the build has the compute.instance.Metadata role.
+ running the build has the compute.instance.Metadata role.
- `subnetwork` (string) - The Google Compute subnetwork id or URL to use for the launched
instance. Only required if the network has been created with custom
@@ -191,12 +195,12 @@
and setting the `enable-oslogin` to `TRUE` in the instance metadata.
Optionally, `use_os_login` can be used with an existing `ssh_username` and `ssh_private_key_file`
if a SSH key has already been added to the Google account's login profile - See [Adding SSH Keys](https://cloud.google.com/compute/docs/instances/managing-instance-access#add_oslogin_keys).
-
+
SSH keys can be added to an individual user account
-
+
```shell-session
$ gcloud compute os-login ssh-keys add --key-file=/home/user/.ssh/my-key.pub
-
+
$ gcloud compute os-login describe-profile
PosixAccounts:
- accountId:
@@ -210,12 +214,13 @@
000000000000000000000000000000000000000000000000000000000000000a:
fingerprint: 000000000000000000000000000000000000000000000000000000000000000a
```
-
+
Or SSH keys can be added to an associated service account
+
```shell-session
$ gcloud auth activate-service-account --key-file=
$ gcloud compute os-login ssh-keys add --key-file=/home/user/.ssh/my-key.pub
-
+
$ gcloud compute os-login describe-profile
PosixAccounts:
- accountId:
diff --git a/website/pages/partials/builder/googlecompute/Config-required.mdx b/website/content/partials/builder/googlecompute/Config-required.mdx
similarity index 100%
rename from website/pages/partials/builder/googlecompute/Config-required.mdx
rename to website/content/partials/builder/googlecompute/Config-required.mdx
diff --git a/website/pages/partials/builder/googlecompute/Config.mdx b/website/content/partials/builder/googlecompute/Config.mdx
similarity index 100%
rename from website/pages/partials/builder/googlecompute/Config.mdx
rename to website/content/partials/builder/googlecompute/Config.mdx
diff --git a/website/pages/partials/builder/googlecompute/CustomerEncryptionKey-not-required.mdx b/website/content/partials/builder/googlecompute/CustomerEncryptionKey-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/googlecompute/CustomerEncryptionKey-not-required.mdx
rename to website/content/partials/builder/googlecompute/CustomerEncryptionKey-not-required.mdx
diff --git a/website/pages/partials/builder/googlecompute/IAPConfig-not-required.mdx b/website/content/partials/builder/googlecompute/IAPConfig-not-required.mdx
similarity index 96%
rename from website/pages/partials/builder/googlecompute/IAPConfig-not-required.mdx
rename to website/content/partials/builder/googlecompute/IAPConfig-not-required.mdx
index 0ce215f50..5427c892d 100644
--- a/website/pages/partials/builder/googlecompute/IAPConfig-not-required.mdx
+++ b/website/content/partials/builder/googlecompute/IAPConfig-not-required.mdx
@@ -2,10 +2,11 @@
- `use_iap` (bool) - Whether to use an IAP proxy.
Prerequisites and limitations for using IAP:
+
- You must manually enable the IAP API in the Google Cloud console.
- You must have the gcloud sdk installed on the computer running Packer.
- You must be using a Service Account with a credentials file (using the
- account_file option in the Packer template)
+ account_file option in the Packer template)
- You must add the given service account to project level IAP permissions
in https://console.cloud.google.com/security/iap. To do so, click
"project" > "SSH and TCP resoures" > "All Tunnel Resources" >
diff --git a/website/pages/partials/builder/googlecompute/IAPConfig.mdx b/website/content/partials/builder/googlecompute/IAPConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/googlecompute/IAPConfig.mdx
rename to website/content/partials/builder/googlecompute/IAPConfig.mdx
diff --git a/website/pages/partials/builder/hyperone/Config-not-required.mdx b/website/content/partials/builder/hyperone/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/hyperone/Config-not-required.mdx
rename to website/content/partials/builder/hyperone/Config-not-required.mdx
diff --git a/website/pages/partials/builder/hyperone/Config-required.mdx b/website/content/partials/builder/hyperone/Config-required.mdx
similarity index 100%
rename from website/pages/partials/builder/hyperone/Config-required.mdx
rename to website/content/partials/builder/hyperone/Config-required.mdx
diff --git a/website/pages/partials/builder/hyperv/common/CommonConfig-not-required.mdx b/website/content/partials/builder/hyperv/common/CommonConfig-not-required.mdx
similarity index 97%
rename from website/pages/partials/builder/hyperv/common/CommonConfig-not-required.mdx
rename to website/content/partials/builder/hyperv/common/CommonConfig-not-required.mdx
index aa7a2b789..88d398368 100644
--- a/website/pages/partials/builder/hyperv/common/CommonConfig-not-required.mdx
+++ b/website/content/partials/builder/hyperv/common/CommonConfig-not-required.mdx
@@ -83,7 +83,7 @@
VM files and folders during the build. By default `%TEMP%` is used
which, for most systems, will evaluate to
`%USERPROFILE%/AppData/Local/Temp`.
-
+
The build directory housed under `temp_path` will have a name similar to
`packerhv1234567`. The seven digit number at the end of the name is
automatically generated by Packer to ensure the directory name is
@@ -111,29 +111,31 @@
- `first_boot_device` (string) - When configured, determines the device or device type that is given preferential
treatment when choosing a boot device.
-
+
For Generation 1:
- - `IDE`
- - `CD` *or* `DVD`
- - `Floppy`
- - `NET`
-
+
+ - `IDE`
+ - `CD` _or_ `DVD`
+ - `Floppy`
+ - `NET`
+
For Generation 2:
- - `IDE:x:y`
- - `SCSI:x:y`
- - `CD` *or* `DVD`
- - `NET`
+
+ - `IDE:x:y`
+ - `SCSI:x:y`
+ - `CD` _or_ `DVD`
+ - `NET`
- `boot_order` ([]string) - When configured, the boot order determines the order of the devices
from which to boot.
-
+
The device name must be in the form of `SCSI:x:y`, for example,
to boot from the first scsi device use `SCSI:0:0`.
-
+
**NB** You should also set `first_boot_device` (e.g. `DVD`).
-
+
**NB** Although the VM will have this initial boot order, the OS can
change it, for example, Ubuntu 18.04 will modify the boot order to
include itself as the first boot option.
-
+
**NB** This only works for Generation 2 machines.
diff --git a/website/pages/partials/builder/hyperv/common/OutputConfig-not-required.mdx b/website/content/partials/builder/hyperv/common/OutputConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/hyperv/common/OutputConfig-not-required.mdx
rename to website/content/partials/builder/hyperv/common/OutputConfig-not-required.mdx
diff --git a/website/pages/partials/builder/hyperv/iso/Builder.mdx b/website/content/partials/builder/hyperv/iso/Builder.mdx
similarity index 100%
rename from website/pages/partials/builder/hyperv/iso/Builder.mdx
rename to website/content/partials/builder/hyperv/iso/Builder.mdx
diff --git a/website/pages/partials/builder/hyperv/iso/Config-not-required.mdx b/website/content/partials/builder/hyperv/iso/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/hyperv/iso/Config-not-required.mdx
rename to website/content/partials/builder/hyperv/iso/Config-not-required.mdx
diff --git a/website/pages/partials/builder/hyperv/vmcx/Builder.mdx b/website/content/partials/builder/hyperv/vmcx/Builder.mdx
similarity index 100%
rename from website/pages/partials/builder/hyperv/vmcx/Builder.mdx
rename to website/content/partials/builder/hyperv/vmcx/Builder.mdx
diff --git a/website/pages/partials/builder/hyperv/vmcx/Config-not-required.mdx b/website/content/partials/builder/hyperv/vmcx/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/hyperv/vmcx/Config-not-required.mdx
rename to website/content/partials/builder/hyperv/vmcx/Config-not-required.mdx
diff --git a/website/pages/partials/builder/lxc/Config-not-required.mdx b/website/content/partials/builder/lxc/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/lxc/Config-not-required.mdx
rename to website/content/partials/builder/lxc/Config-not-required.mdx
diff --git a/website/pages/partials/builder/lxc/Config-required.mdx b/website/content/partials/builder/lxc/Config-required.mdx
similarity index 100%
rename from website/pages/partials/builder/lxc/Config-required.mdx
rename to website/content/partials/builder/lxc/Config-required.mdx
diff --git a/website/pages/partials/builder/lxd/Config-not-required.mdx b/website/content/partials/builder/lxd/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/lxd/Config-not-required.mdx
rename to website/content/partials/builder/lxd/Config-not-required.mdx
diff --git a/website/pages/partials/builder/lxd/Config-required.mdx b/website/content/partials/builder/lxd/Config-required.mdx
similarity index 100%
rename from website/pages/partials/builder/lxd/Config-required.mdx
rename to website/content/partials/builder/lxd/Config-required.mdx
diff --git a/website/pages/partials/builder/ncloud/Config-not-required.mdx b/website/content/partials/builder/ncloud/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/ncloud/Config-not-required.mdx
rename to website/content/partials/builder/ncloud/Config-not-required.mdx
diff --git a/website/pages/partials/builder/ncloud/Config-required.mdx b/website/content/partials/builder/ncloud/Config-required.mdx
similarity index 100%
rename from website/pages/partials/builder/ncloud/Config-required.mdx
rename to website/content/partials/builder/ncloud/Config-required.mdx
diff --git a/website/pages/partials/builder/ncloud/Config.mdx b/website/content/partials/builder/ncloud/Config.mdx
similarity index 100%
rename from website/pages/partials/builder/ncloud/Config.mdx
rename to website/content/partials/builder/ncloud/Config.mdx
diff --git a/website/pages/partials/builder/openstack/AccessConfig-not-required.mdx b/website/content/partials/builder/openstack/AccessConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/openstack/AccessConfig-not-required.mdx
rename to website/content/partials/builder/openstack/AccessConfig-not-required.mdx
diff --git a/website/pages/partials/builder/openstack/AccessConfig-required.mdx b/website/content/partials/builder/openstack/AccessConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/openstack/AccessConfig-required.mdx
rename to website/content/partials/builder/openstack/AccessConfig-required.mdx
diff --git a/website/pages/partials/builder/openstack/AccessConfig.mdx b/website/content/partials/builder/openstack/AccessConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/openstack/AccessConfig.mdx
rename to website/content/partials/builder/openstack/AccessConfig.mdx
diff --git a/website/pages/partials/builder/openstack/ImageConfig-not-required.mdx b/website/content/partials/builder/openstack/ImageConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/openstack/ImageConfig-not-required.mdx
rename to website/content/partials/builder/openstack/ImageConfig-not-required.mdx
diff --git a/website/pages/partials/builder/openstack/ImageConfig-required.mdx b/website/content/partials/builder/openstack/ImageConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/openstack/ImageConfig-required.mdx
rename to website/content/partials/builder/openstack/ImageConfig-required.mdx
diff --git a/website/pages/partials/builder/openstack/ImageConfig.mdx b/website/content/partials/builder/openstack/ImageConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/openstack/ImageConfig.mdx
rename to website/content/partials/builder/openstack/ImageConfig.mdx
diff --git a/website/pages/partials/builder/openstack/ImageFilter-not-required.mdx b/website/content/partials/builder/openstack/ImageFilter-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/openstack/ImageFilter-not-required.mdx
rename to website/content/partials/builder/openstack/ImageFilter-not-required.mdx
diff --git a/website/pages/partials/builder/openstack/ImageFilterOptions-not-required.mdx b/website/content/partials/builder/openstack/ImageFilterOptions-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/openstack/ImageFilterOptions-not-required.mdx
rename to website/content/partials/builder/openstack/ImageFilterOptions-not-required.mdx
diff --git a/website/pages/partials/builder/openstack/RunConfig-not-required.mdx b/website/content/partials/builder/openstack/RunConfig-not-required.mdx
similarity index 98%
rename from website/pages/partials/builder/openstack/RunConfig-not-required.mdx
rename to website/content/partials/builder/openstack/RunConfig-not-required.mdx
index c5035abd8..a0efd79cb 100644
--- a/website/pages/partials/builder/openstack/RunConfig-not-required.mdx
+++ b/website/content/partials/builder/openstack/RunConfig-not-required.mdx
@@ -92,4 +92,4 @@
- `openstack_provider` (string) - Not really used, but here for BC
-- `use_floating_ip` (bool) - *Deprecated* use `floating_ip` or `floating_ip_pool` instead.
+- `use_floating_ip` (bool) - _Deprecated_ use `floating_ip` or `floating_ip_pool` instead.
diff --git a/website/pages/partials/builder/openstack/RunConfig-required.mdx b/website/content/partials/builder/openstack/RunConfig-required.mdx
similarity index 55%
rename from website/pages/partials/builder/openstack/RunConfig-required.mdx
rename to website/content/partials/builder/openstack/RunConfig-required.mdx
index 7351dcd8b..e599bda60 100644
--- a/website/pages/partials/builder/openstack/RunConfig-required.mdx
+++ b/website/content/partials/builder/openstack/RunConfig-required.mdx
@@ -12,48 +12,48 @@
providing source_image and only either of them can be specified.
- `source_image_filter` (ImageFilter) - Filters used to populate filter options. Example:
-
+
```json
{
- "source_image_filter": {
- "filters": {
- "name": "ubuntu-16.04",
- "visibility": "protected",
- "owner": "d1a588cf4b0743344508dc145649372d1",
- "tags": ["prod", "ready"],
- "properties": {
- "os_distro": "ubuntu"
- }
- },
- "most_recent": true
- }
+ "source_image_filter": {
+ "filters": {
+ "name": "ubuntu-16.04",
+ "visibility": "protected",
+ "owner": "d1a588cf4b0743344508dc145649372d1",
+ "tags": ["prod", "ready"],
+ "properties": {
+ "os_distro": "ubuntu"
+ }
+ },
+ "most_recent": true
+ }
}
```
-
+
This selects the most recent production Ubuntu 16.04 shared to you by
- the given owner. NOTE: This will fail unless *exactly* one image is
+ the given owner. NOTE: This will fail unless _exactly_ one image is
returned, or `most_recent` is set to true. In the example of multiple
returned images, `most_recent` will cause this to succeed by selecting
the newest image of the returned images.
-
- - `filters` (map of strings) - filters used to select a
- `source_image`.
- NOTE: This will fail unless *exactly* one image is returned, or
- `most_recent` is set to true. Of the filters described in
- [ImageService](https://developer.openstack.org/api-ref/image/v2/), the
- following are valid:
-
- - name (string)
- - owner (string)
- - tags (array of strings)
- - visibility (string)
- - properties (map of strings to strings) (fields that can be set
- with `openstack image set --property key=value`)
-
- - `most_recent` (boolean) - Selects the newest created image when
- true.
- This is most useful for selecting a daily distro build.
-
+
+ - `filters` (map of strings) - filters used to select a
+ `source_image`.
+ NOTE: This will fail unless _exactly_ one image is returned, or
+ `most_recent` is set to true. Of the filters described in
+ [ImageService](https://developer.openstack.org/api-ref/image/v2/), the
+ following are valid:
+
+ - name (string)
+ - owner (string)
+ - tags (array of strings)
+ - visibility (string)
+ - properties (map of strings to strings) (fields that can be set
+ with `openstack image set --property key=value`)
+
+ - `most_recent` (boolean) - Selects the newest created image when
+ true.
+ This is most useful for selecting a daily distro build.
+
You may set use this in place of `source_image` If `source_image_filter`
is provided alongside `source_image`, the `source_image` will override
the filter. The filter will not be used in this case.
diff --git a/website/pages/partials/builder/openstack/RunConfig.mdx b/website/content/partials/builder/openstack/RunConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/openstack/RunConfig.mdx
rename to website/content/partials/builder/openstack/RunConfig.mdx
diff --git a/website/pages/partials/builder/parallels/common/HWConfig-not-required.mdx b/website/content/partials/builder/parallels/common/HWConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/common/HWConfig-not-required.mdx
rename to website/content/partials/builder/parallels/common/HWConfig-not-required.mdx
diff --git a/website/pages/partials/builder/parallels/common/OutputConfig-not-required.mdx b/website/content/partials/builder/parallels/common/OutputConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/common/OutputConfig-not-required.mdx
rename to website/content/partials/builder/parallels/common/OutputConfig-not-required.mdx
diff --git a/website/pages/partials/builder/parallels/common/OutputConfig.mdx b/website/content/partials/builder/parallels/common/OutputConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/common/OutputConfig.mdx
rename to website/content/partials/builder/parallels/common/OutputConfig.mdx
diff --git a/website/pages/partials/builder/parallels/common/PrlctlConfig-not-required.mdx b/website/content/partials/builder/parallels/common/PrlctlConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/common/PrlctlConfig-not-required.mdx
rename to website/content/partials/builder/parallels/common/PrlctlConfig-not-required.mdx
diff --git a/website/pages/partials/builder/parallels/common/PrlctlConfig.mdx b/website/content/partials/builder/parallels/common/PrlctlConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/common/PrlctlConfig.mdx
rename to website/content/partials/builder/parallels/common/PrlctlConfig.mdx
diff --git a/website/pages/partials/builder/parallels/common/PrlctlPostConfig-not-required.mdx b/website/content/partials/builder/parallels/common/PrlctlPostConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/common/PrlctlPostConfig-not-required.mdx
rename to website/content/partials/builder/parallels/common/PrlctlPostConfig-not-required.mdx
diff --git a/website/pages/partials/builder/parallels/common/PrlctlPostConfig.mdx b/website/content/partials/builder/parallels/common/PrlctlPostConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/common/PrlctlPostConfig.mdx
rename to website/content/partials/builder/parallels/common/PrlctlPostConfig.mdx
diff --git a/website/pages/partials/builder/parallels/common/PrlctlVersionConfig-not-required.mdx b/website/content/partials/builder/parallels/common/PrlctlVersionConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/common/PrlctlVersionConfig-not-required.mdx
rename to website/content/partials/builder/parallels/common/PrlctlVersionConfig-not-required.mdx
diff --git a/website/pages/partials/builder/parallels/common/PrlctlVersionConfig.mdx b/website/content/partials/builder/parallels/common/PrlctlVersionConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/common/PrlctlVersionConfig.mdx
rename to website/content/partials/builder/parallels/common/PrlctlVersionConfig.mdx
diff --git a/website/pages/partials/builder/parallels/common/ToolsConfig-not-required.mdx b/website/content/partials/builder/parallels/common/ToolsConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/common/ToolsConfig-not-required.mdx
rename to website/content/partials/builder/parallels/common/ToolsConfig-not-required.mdx
diff --git a/website/pages/partials/builder/parallels/common/ToolsConfig-required.mdx b/website/content/partials/builder/parallels/common/ToolsConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/common/ToolsConfig-required.mdx
rename to website/content/partials/builder/parallels/common/ToolsConfig-required.mdx
diff --git a/website/pages/partials/builder/parallels/common/ToolsConfig.mdx b/website/content/partials/builder/parallels/common/ToolsConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/common/ToolsConfig.mdx
rename to website/content/partials/builder/parallels/common/ToolsConfig.mdx
diff --git a/website/pages/partials/builder/parallels/iso/Config-not-required.mdx b/website/content/partials/builder/parallels/iso/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/iso/Config-not-required.mdx
rename to website/content/partials/builder/parallels/iso/Config-not-required.mdx
diff --git a/website/pages/partials/builder/parallels/pvm/Config-not-required.mdx b/website/content/partials/builder/parallels/pvm/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/pvm/Config-not-required.mdx
rename to website/content/partials/builder/parallels/pvm/Config-not-required.mdx
diff --git a/website/pages/partials/builder/parallels/pvm/Config-required.mdx b/website/content/partials/builder/parallels/pvm/Config-required.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/pvm/Config-required.mdx
rename to website/content/partials/builder/parallels/pvm/Config-required.mdx
diff --git a/website/pages/partials/builder/parallels/pvm/Config.mdx b/website/content/partials/builder/parallels/pvm/Config.mdx
similarity index 100%
rename from website/pages/partials/builder/parallels/pvm/Config.mdx
rename to website/content/partials/builder/parallels/pvm/Config.mdx
diff --git a/website/pages/partials/builder/qemu/CommConfig-not-required.mdx b/website/content/partials/builder/qemu/CommConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/qemu/CommConfig-not-required.mdx
rename to website/content/partials/builder/qemu/CommConfig-not-required.mdx
diff --git a/website/pages/partials/builder/qemu/Config-not-required.mdx b/website/content/partials/builder/qemu/Config-not-required.mdx
similarity index 92%
rename from website/pages/partials/builder/qemu/Config-not-required.mdx
rename to website/content/partials/builder/qemu/Config-not-required.mdx
index a5fced8ca..cdb867e69 100644
--- a/website/pages/partials/builder/qemu/Config-not-required.mdx
+++ b/website/content/partials/builder/qemu/Config-not-required.mdx
@@ -8,17 +8,17 @@
software must have already been installed on your build machine to use the
accelerator you specified. When no accelerator is specified, Packer will try
to use `kvm` if it is available but will default to `tcg` otherwise.
-
+
~> The `hax` accelerator has issues attaching CDROM ISOs. This is an
upstream issue which can be tracked
[here](https://github.com/intel/haxm/issues/20).
-
+
~> The `hvf` and `whpx` accelerator are new and experimental as of
[QEMU 2.12.0](https://wiki.qemu.org/ChangeLog/2.12#Host_support).
- You may encounter issues unrelated to Packer when using these. You may need to
+ You may encounter issues unrelated to Packer when using these. You may need to
add [ "-global", "virtio-pci.disable-modern=on" ] to `qemuargs` depending on the
guest operating system.
-
+
~> For `whpx`, note that [Stefan Weil's QEMU for Windows distribution](https://qemu.weilnetz.de/w64/)
does not include WHPX support and users may need to compile or source a
build of QEMU for Windows themselves with WHPX support.
@@ -28,22 +28,22 @@
is the default disk. Each string represents the disk image size in bytes.
Optional suffixes 'k' or 'K' (kilobyte, 1024), 'M' (megabyte, 1024k), 'G'
(gigabyte, 1024M), 'T' (terabyte, 1024G), 'P' (petabyte, 1024T) and 'E'
- (exabyte, 1024P) are supported. 'b' is ignored. Per qemu-img documentation.
+ (exabyte, 1024P) are supported. 'b' is ignored. Per qemu-img documentation.
Each additional disk uses the same disk parameters as the default disk.
Unset by default.
- `cpus` (int) - The number of cpus to use when building the VM.
- The default is `1` CPU.
+ The default is `1` CPU.
- `disk_interface` (string) - The interface to use for the disk. Allowed values include any of `ide`,
`scsi`, `virtio` or `virtio-scsi`^\*. Note also that any boot commands
or kickstart type scripts must have proper adjustments for resulting
device names. The Qemu builder uses `virtio` by default.
-
+
^\* Please be aware that use of the `scsi` disk interface has been
disabled by Red Hat due to a bug described
[here](https://bugzilla.redhat.com/show_bug.cgi?id=1019220). If you are
- running Qemu on RHEL or a RHEL variant such as CentOS, you *must* choose
+ running Qemu on RHEL or a RHEL variant such as CentOS, you _must_ choose
one of the other listed interfaces. Using the `scsi` interface under
these circumstances will cause the build to fail.
@@ -54,7 +54,7 @@
number is provided with no units, Packer will default to Megabytes.
- `skip_resize_disk` (bool) - Packer resizes the QCOW2 image using
- qemu-img resize. Set this option to true to disable resizing.
+ qemu-img resize. Set this option to true to disable resizing.
Defaults to false.
- `disk_cache` (string) - The cache mode to use for disk. Allowed values include any of
@@ -70,7 +70,7 @@
Packer still works with old versions of QEMU that don't have this option.
- `skip_compaction` (bool) - Packer compacts the QCOW2 image using
- qemu-img convert. Set this option to true to disable compacting.
+ qemu-img convert. Set this option to true to disable compacting.
Defaults to false.
- `disk_compression` (bool) - Apply compression to the QCOW2 disk file
@@ -87,7 +87,7 @@
- `headless` (bool) - Packer defaults to building QEMU virtual machines by
launching a GUI that shows the console of the machine being built. When this
value is set to `true`, the machine will start without a console.
-
+
You can still see the console if you make a note of the VNC display
number chosen, and then connect using `vncviewer -Shared :`
@@ -121,12 +121,12 @@
- `net_bridge` (string) - Connects the network to this bridge instead of using the user mode
networking.
-
+
**NB** This bridge must already exist. You can use the `virbr0` bridge
as created by vagrant-libvirt.
-
+
**NB** This will automatically enable the QMP socket (see QMPEnable).
-
+
**NB** This only works in Linux based OSes.
- `output_directory` (string) - This is the path to the directory where the
@@ -141,7 +141,7 @@
that overrides matching default switch/value pairs. Any value specified
as an empty string is ignored. All values after the switch are
concatenated with no separator.
-
+
~> **Warning:** The qemu command line allows extreme flexibility, so
beware of conflicting arguments causing failures of your run.
For instance adding a "--drive" or "--device" override will mean that
@@ -152,15 +152,16 @@
you can use those arguments along with the template engines allowed
by qemu-args to set up a working configuration that includes both the
Packer defaults and your extra arguments.
-
+
Another pitfall could be setting arguments like --no-acpi, which could
break the ability to send power signal type commands
(e.g., shutdown -P now) to the virtual machine, thus preventing proper
shutdown.
-
+
The following shows a sample usage:
-
+
In JSON:
+
```json
"qemuargs": [
[ "-m", "1024M" ],
@@ -174,8 +175,9 @@
[ "-device", "virtio-net,netdev=mynet0" ]
]
```
-
+
In HCL2:
+
```hcl
qemuargs = [
[ "-m", "1024M" ],
@@ -189,61 +191,66 @@
[ "-device", "virtio-net,netdev=mynet0" ]
]
```
-
+
would produce the following (not including other defaults supplied by
the builder and not otherwise conflicting with the qemuargs):
-
+
```text
qemu-system-x86 -m 1024m --no-acpi -netdev
user,id=mynet0,hostfwd=hostip:hostport-guestip:guestport -device
virtio-net,netdev=mynet0"
```
-
+
~> **Windows Users:** [QEMU for Windows](https://qemu.weilnetz.de/)
builds are available though an environmental variable does need to be
set for QEMU for Windows to redirect stdout to the console instead of
stdout.txt.
-
+
The following shows the environment variable that needs to be set for
Windows QEMU support:
-
+
```text
setx SDL_STDIO_REDIRECT=0
```
-
+
You can also use the `SSHHostPort` template variable to produce a packer
template that can be invoked by `make` in parallel:
-
+
In JSON:
+
```json
"qemuargs": [
[ "-netdev", "user,hostfwd=tcp::{{ .SSHHostPort }}-:22,id=forward"],
[ "-device", "virtio-net,netdev=forward,id=net0"]
]
```
-
+
In HCL2:
+
```hcl
qemuargs = [
[ "-netdev", "user,hostfwd=tcp::{{ .SSHHostPort }}-:22,id=forward"],
[ "-device", "virtio-net,netdev=forward,id=net0"]
]
-
+
`make -j 3 my-awesome-packer-templates` spawns 3 packer processes, each
of which will bind to their own SSH port as determined by each process.
This will also work with WinRM, just change the port forward in
`qemuargs` to map to WinRM's default port of `5985` or whatever value
you have the service set to listen on.
-
+
This is a template engine and allows access to the following variables:
`{{ .HTTPIP }}`, `{{ .HTTPPort }}`, `{{ .HTTPDir }}`,
`{{ .OutputDir }}`, `{{ .Name }}`, and `{{ .SSHHostPort }}`
+ ```
+
- `qemu_img_args` (QemuImgArgs) - A map of custom arguments to pass to qemu-img commands, where the key
is the subcommand, and the values are lists of strings for each flag.
Example:
-
+
In JSON:
+
```json
{
"qemu_img_args": {
@@ -251,23 +258,25 @@
"resize": ["-foo", "bar"]
}
```
+
Please note
that unlike qemuargs, these commands are not split into switch-value
- sub-arrays, because the basic elements in qemu-img calls are unlikely
+ sub-arrays, because the basic elements in qemu-img calls are unlikely
to need an actual override.
The arguments will be constructed as follows:
+
- Convert:
- Default is `qemu-img convert -O $format $sourcepath $targetpath`. Adding
- arguments ["-foo", "bar"] to qemu_img_args.convert will change this to
- `qemu-img convert -foo bar -O $format $sourcepath $targetpath`
+ Default is `qemu-img convert -O $format $sourcepath $targetpath`. Adding
+ arguments ["-foo", "bar"] to qemu_img_args.convert will change this to
+ `qemu-img convert -foo bar -O $format $sourcepath $targetpath`
- Create:
- Default is `create -f $format $targetpath $size`. Adding arguments
- ["-foo", "bar"] to qemu_img_args.create will change this to
- "create -f qcow2 -foo bar target.qcow2 1234M"
+ Default is `create -f $format $targetpath $size`. Adding arguments
+ ["-foo", "bar"] to qemu_img_args.create will change this to
+ "create -f qcow2 -foo bar target.qcow2 1234M"
- Resize:
- Default is `qemu-img resize -f $format $sourcepath $size`. Adding
- arguments ["-foo", "bar"] to qemu_img_args.resize will change this to
- `qemu-img resize -f $format -foo bar $sourcepath $size`
+ Default is `qemu-img resize -f $format $sourcepath $size`. Adding
+ arguments ["-foo", "bar"] to qemu_img_args.resize will change this to
+ `qemu-img resize -f $format -foo bar $sourcepath $size`
- `qemu_binary` (string) - The name of the Qemu binary to look for. This
defaults to qemu-system-x86_64, but may need to be changed for
diff --git a/website/pages/partials/builder/qemu/QemuImgArgs-not-required.mdx b/website/content/partials/builder/qemu/QemuImgArgs-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/qemu/QemuImgArgs-not-required.mdx
rename to website/content/partials/builder/qemu/QemuImgArgs-not-required.mdx
diff --git a/website/pages/partials/builder/scaleway/Config-not-required.mdx b/website/content/partials/builder/scaleway/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/scaleway/Config-not-required.mdx
rename to website/content/partials/builder/scaleway/Config-not-required.mdx
diff --git a/website/pages/partials/builder/scaleway/Config-required.mdx b/website/content/partials/builder/scaleway/Config-required.mdx
similarity index 100%
rename from website/pages/partials/builder/scaleway/Config-required.mdx
rename to website/content/partials/builder/scaleway/Config-required.mdx
diff --git a/website/pages/partials/builder/tencentcloud/cvm/TencentCloudAccessConfig-not-required.mdx b/website/content/partials/builder/tencentcloud/cvm/TencentCloudAccessConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/tencentcloud/cvm/TencentCloudAccessConfig-not-required.mdx
rename to website/content/partials/builder/tencentcloud/cvm/TencentCloudAccessConfig-not-required.mdx
diff --git a/website/pages/partials/builder/tencentcloud/cvm/TencentCloudAccessConfig-required.mdx b/website/content/partials/builder/tencentcloud/cvm/TencentCloudAccessConfig-required.mdx
similarity index 92%
rename from website/pages/partials/builder/tencentcloud/cvm/TencentCloudAccessConfig-required.mdx
rename to website/content/partials/builder/tencentcloud/cvm/TencentCloudAccessConfig-required.mdx
index 7c4dd4c3b..d0bff1675 100644
--- a/website/pages/partials/builder/tencentcloud/cvm/TencentCloudAccessConfig-required.mdx
+++ b/website/content/partials/builder/tencentcloud/cvm/TencentCloudAccessConfig-required.mdx
@@ -8,8 +8,8 @@
- `region` (string) - The region where your cvm will be launch. You should
reference Region and Zone
- for parameter taking.
+ for parameter taking.
- `zone` (string) - The zone where your cvm will be launch. You should
reference Region and Zone
- for parameter taking.
+ for parameter taking.
diff --git a/website/pages/partials/builder/tencentcloud/cvm/TencentCloudImageConfig-not-required.mdx b/website/content/partials/builder/tencentcloud/cvm/TencentCloudImageConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/tencentcloud/cvm/TencentCloudImageConfig-not-required.mdx
rename to website/content/partials/builder/tencentcloud/cvm/TencentCloudImageConfig-not-required.mdx
diff --git a/website/pages/partials/builder/tencentcloud/cvm/TencentCloudImageConfig-required.mdx b/website/content/partials/builder/tencentcloud/cvm/TencentCloudImageConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/tencentcloud/cvm/TencentCloudImageConfig-required.mdx
rename to website/content/partials/builder/tencentcloud/cvm/TencentCloudImageConfig-required.mdx
diff --git a/website/pages/partials/builder/tencentcloud/cvm/TencentCloudRunConfig-not-required.mdx b/website/content/partials/builder/tencentcloud/cvm/TencentCloudRunConfig-not-required.mdx
similarity index 90%
rename from website/pages/partials/builder/tencentcloud/cvm/TencentCloudRunConfig-not-required.mdx
rename to website/content/partials/builder/tencentcloud/cvm/TencentCloudRunConfig-not-required.mdx
index 1dbdc9bc6..c5c8fdea2 100644
--- a/website/pages/partials/builder/tencentcloud/cvm/TencentCloudRunConfig-not-required.mdx
+++ b/website/content/partials/builder/tencentcloud/cvm/TencentCloudRunConfig-not-required.mdx
@@ -24,9 +24,10 @@
type for all data disks, and each data disk size will use the origin
value in source image.
The data disks allow for the following argument:
- - `disk_type` - Type of the data disk. Valid choices: `CLOUD_BASIC`, `CLOUD_PREMIUM` and `CLOUD_SSD`.
- - `disk_size` - Size of the data disk.
- - `disk_snapshot_id` - Id of the snapshot for a data disk.
+
+ - `disk_type` - Type of the data disk. Valid choices: `CLOUD_BASIC`, `CLOUD_PREMIUM` and `CLOUD_SSD`.
+ - `disk_size` - Size of the data disk.
+ - `disk_snapshot_id` - Id of the snapshot for a data disk.
- `vpc_id` (string) - Specify vpc your cvm will be launched by.
@@ -60,8 +61,8 @@
- `host_name` (string) - host name.
-- `run_tags` (map[string]string) - Key/value pair tags to apply to the instance that is *launched* to
- create the image. These tags are *not* applied to the resulting image.
+- `run_tags` (map[string]string) - Key/value pair tags to apply to the instance that is _launched_ to
+ create the image. These tags are _not_ applied to the resulting image.
- `run_tag` ([]{key string, value string}) - Same as [`run_tags`](#run_tags) but defined as a singular repeatable
block containing a `key` and a `value` field. In HCL2 mode the
diff --git a/website/pages/partials/builder/tencentcloud/cvm/TencentCloudRunConfig-required.mdx b/website/content/partials/builder/tencentcloud/cvm/TencentCloudRunConfig-required.mdx
similarity index 91%
rename from website/pages/partials/builder/tencentcloud/cvm/TencentCloudRunConfig-required.mdx
rename to website/content/partials/builder/tencentcloud/cvm/TencentCloudRunConfig-required.mdx
index 1a612ec47..4c6aad1fe 100644
--- a/website/pages/partials/builder/tencentcloud/cvm/TencentCloudRunConfig-required.mdx
+++ b/website/content/partials/builder/tencentcloud/cvm/TencentCloudRunConfig-required.mdx
@@ -2,4 +2,4 @@
- `instance_type` (string) - The instance type your cvm will be launched by.
You should reference Instace Type
- for parameter taking.
+ for parameter taking.
diff --git a/website/pages/partials/builder/tencentcloud/cvm/tencentCloudDataDisk-not-required.mdx b/website/content/partials/builder/tencentcloud/cvm/tencentCloudDataDisk-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/tencentcloud/cvm/tencentCloudDataDisk-not-required.mdx
rename to website/content/partials/builder/tencentcloud/cvm/tencentCloudDataDisk-not-required.mdx
diff --git a/website/pages/partials/builder/triton/AccessConfig-not-required.mdx b/website/content/partials/builder/triton/AccessConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/triton/AccessConfig-not-required.mdx
rename to website/content/partials/builder/triton/AccessConfig-not-required.mdx
diff --git a/website/pages/partials/builder/triton/AccessConfig-required.mdx b/website/content/partials/builder/triton/AccessConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/triton/AccessConfig-required.mdx
rename to website/content/partials/builder/triton/AccessConfig-required.mdx
diff --git a/website/pages/partials/builder/triton/AccessConfig.mdx b/website/content/partials/builder/triton/AccessConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/triton/AccessConfig.mdx
rename to website/content/partials/builder/triton/AccessConfig.mdx
diff --git a/website/pages/partials/builder/triton/MachineImageFilter-not-required.mdx b/website/content/partials/builder/triton/MachineImageFilter-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/triton/MachineImageFilter-not-required.mdx
rename to website/content/partials/builder/triton/MachineImageFilter-not-required.mdx
diff --git a/website/pages/partials/builder/triton/SourceMachineConfig-not-required.mdx b/website/content/partials/builder/triton/SourceMachineConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/triton/SourceMachineConfig-not-required.mdx
rename to website/content/partials/builder/triton/SourceMachineConfig-not-required.mdx
diff --git a/website/pages/partials/builder/triton/SourceMachineConfig-required.mdx b/website/content/partials/builder/triton/SourceMachineConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/triton/SourceMachineConfig-required.mdx
rename to website/content/partials/builder/triton/SourceMachineConfig-required.mdx
diff --git a/website/pages/partials/builder/triton/SourceMachineConfig.mdx b/website/content/partials/builder/triton/SourceMachineConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/triton/SourceMachineConfig.mdx
rename to website/content/partials/builder/triton/SourceMachineConfig.mdx
diff --git a/website/pages/partials/builder/triton/TargetImageConfig-not-required.mdx b/website/content/partials/builder/triton/TargetImageConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/triton/TargetImageConfig-not-required.mdx
rename to website/content/partials/builder/triton/TargetImageConfig-not-required.mdx
diff --git a/website/pages/partials/builder/triton/TargetImageConfig-required.mdx b/website/content/partials/builder/triton/TargetImageConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/triton/TargetImageConfig-required.mdx
rename to website/content/partials/builder/triton/TargetImageConfig-required.mdx
diff --git a/website/pages/partials/builder/triton/TargetImageConfig.mdx b/website/content/partials/builder/triton/TargetImageConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/triton/TargetImageConfig.mdx
rename to website/content/partials/builder/triton/TargetImageConfig.mdx
diff --git a/website/pages/partials/builder/ucloud/common/AccessConfig-not-required.mdx b/website/content/partials/builder/ucloud/common/AccessConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/ucloud/common/AccessConfig-not-required.mdx
rename to website/content/partials/builder/ucloud/common/AccessConfig-not-required.mdx
diff --git a/website/pages/partials/builder/ucloud/common/AccessConfig-required.mdx b/website/content/partials/builder/ucloud/common/AccessConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/ucloud/common/AccessConfig-required.mdx
rename to website/content/partials/builder/ucloud/common/AccessConfig-required.mdx
diff --git a/website/pages/partials/builder/ucloud/common/ImageConfig-not-required.mdx b/website/content/partials/builder/ucloud/common/ImageConfig-not-required.mdx
similarity index 68%
rename from website/pages/partials/builder/ucloud/common/ImageConfig-not-required.mdx
rename to website/content/partials/builder/ucloud/common/ImageConfig-not-required.mdx
index 156297395..8f9e67141 100644
--- a/website/pages/partials/builder/ucloud/common/ImageConfig-not-required.mdx
+++ b/website/content/partials/builder/ucloud/common/ImageConfig-not-required.mdx
@@ -3,15 +3,15 @@
- `image_description` (string) - The description of the image.
- `image_copy_to_mappings` ([]ImageDestination) - The array of mappings regarding the copied images to the destination regions and projects.
-
- - `project_id` (string) - The destination project id, where copying image in.
-
- - `region` (string) - The destination region, where copying image in.
-
- - `name` (string) - The copied image name. If not defined, builder will use `image_name` as default name.
-
- - `description` (string) - The copied image description.
-
+
+ - `project_id` (string) - The destination project id, where copying image in.
+
+ - `region` (string) - The destination region, where copying image in.
+
+ - `name` (string) - The copied image name. If not defined, builder will use `image_name` as default name.
+
+ - `description` (string) - The copied image description.
+
```json
{
"image_copy_to_mappings": [
diff --git a/website/pages/partials/builder/ucloud/common/ImageConfig-required.mdx b/website/content/partials/builder/ucloud/common/ImageConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/ucloud/common/ImageConfig-required.mdx
rename to website/content/partials/builder/ucloud/common/ImageConfig-required.mdx
diff --git a/website/pages/partials/builder/ucloud/common/ImageDestination-not-required.mdx b/website/content/partials/builder/ucloud/common/ImageDestination-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/ucloud/common/ImageDestination-not-required.mdx
rename to website/content/partials/builder/ucloud/common/ImageDestination-not-required.mdx
diff --git a/website/pages/partials/builder/ucloud/common/RunConfig-not-required.mdx b/website/content/partials/builder/ucloud/common/RunConfig-not-required.mdx
similarity index 75%
rename from website/pages/partials/builder/ucloud/common/RunConfig-not-required.mdx
rename to website/content/partials/builder/ucloud/common/RunConfig-not-required.mdx
index f7e1e42b4..c099e8c3f 100644
--- a/website/pages/partials/builder/ucloud/common/RunConfig-not-required.mdx
+++ b/website/content/partials/builder/ucloud/common/RunConfig-not-required.mdx
@@ -7,7 +7,7 @@
Possible values are: `cloud_ssd` and `cloud_rssd` for cloud boot disk, `local_normal` and `local_ssd`
for local boot disk. (Default: `cloud_ssd`). The `cloud_ssd` and `local_ssd` are not fully supported
by all regions as boot disk type, please proceed to UCloud console for more details.
-
+
~> **Note:** It takes around 10 mins for boot disk initialization when `boot_disk_type` is `local_normal` or `local_ssd`.
- `vpc_id` (string) - The ID of VPC linked to the UHost instance. If not defined `vpc_id`, the instance will use the default VPC in the current region.
@@ -39,16 +39,17 @@
- `min_cpu_platform` (string) - Specifies a minimum CPU platform for the the VM instance. (Default: `Intel/Auto`).
You may refer to [min_cpu_platform](https://docs.ucloud.cn/uhost/introduction/uhost/type_new)
- - The Intel CPU platform:
- - `Intel/Auto` as the Intel CPU platform version will be selected randomly by system;
- - `Intel/IvyBridge` as Intel V2, the version of Intel CPU platform selected by system will be `Intel/IvyBridge` and above;
- - `Intel/Haswell` as Intel V3, the version of Intel CPU platform selected by system will be `Intel/Haswell` and above;
- - `Intel/Broadwell` as Intel V4, the version of Intel CPU platform selected by system will be `Intel/Broadwell` and above;
- - `Intel/Skylake` as Intel V5, the version of Intel CPU platform selected by system will be `Intel/Skylake` and above;
- - `Intel/Cascadelake` as Intel V6, the version of Intel CPU platform selected by system will be `Intel/Cascadelake`;
- - The AMD CPU platform:
- - `Amd/Auto` as the Amd CPU platform version will be selected randomly by system;
- - `Amd/Epyc2` as the version of Amd CPU platform selected by system will be `Amd/Epyc2` and above;
+
+ - The Intel CPU platform:
+ - `Intel/Auto` as the Intel CPU platform version will be selected randomly by system;
+ - `Intel/IvyBridge` as Intel V2, the version of Intel CPU platform selected by system will be `Intel/IvyBridge` and above;
+ - `Intel/Haswell` as Intel V3, the version of Intel CPU platform selected by system will be `Intel/Haswell` and above;
+ - `Intel/Broadwell` as Intel V4, the version of Intel CPU platform selected by system will be `Intel/Broadwell` and above;
+ - `Intel/Skylake` as Intel V5, the version of Intel CPU platform selected by system will be `Intel/Skylake` and above;
+ - `Intel/Cascadelake` as Intel V6, the version of Intel CPU platform selected by system will be `Intel/Cascadelake`;
+ - The AMD CPU platform:
+ - `Amd/Auto` as the Amd CPU platform version will be selected randomly by system;
+ - `Amd/Epyc2` as the version of Amd CPU platform selected by system will be `Amd/Epyc2` and above;
- `use_ssh_private_ip` (bool) - If this value is true, packer will connect to the created UHost instance via a private ip
instead of allocating an EIP (elastic public ip).(Default: `false`).
diff --git a/website/pages/partials/builder/ucloud/common/RunConfig-required.mdx b/website/content/partials/builder/ucloud/common/RunConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/ucloud/common/RunConfig-required.mdx
rename to website/content/partials/builder/ucloud/common/RunConfig-required.mdx
diff --git a/website/pages/partials/builder/vagrant/Builder.mdx b/website/content/partials/builder/vagrant/Builder.mdx
similarity index 100%
rename from website/pages/partials/builder/vagrant/Builder.mdx
rename to website/content/partials/builder/vagrant/Builder.mdx
diff --git a/website/pages/partials/builder/vagrant/Config-not-required.mdx b/website/content/partials/builder/vagrant/Config-not-required.mdx
similarity index 80%
rename from website/pages/partials/builder/vagrant/Config-not-required.mdx
rename to website/content/partials/builder/vagrant/Config-not-required.mdx
index 04535b7d2..a891572b2 100644
--- a/website/pages/partials/builder/vagrant/Config-not-required.mdx
+++ b/website/content/partials/builder/vagrant/Config-not-required.mdx
@@ -11,22 +11,23 @@
"md5:{$checksum}", "sha1:{$checksum}", "sha256:{$checksum}",
"sha512:{$checksum}" or "file:{$path}". Here is a list of valid checksum
values:
- * md5:090992ba9fd140077b0661cb75f7ce13
- * 090992ba9fd140077b0661cb75f7ce13
- * sha1:ebfb681885ddf1234c18094a45bbeafd91467911
- * ebfb681885ddf1234c18094a45bbeafd91467911
- * sha256:ed363350696a726b7932db864dda019bd2017365c9e299627830f06954643f93
- * ed363350696a726b7932db864dda019bd2017365c9e299627830f06954643f93
- * file:http://releases.ubuntu.com/20.04/MD5SUMS
- * file:file://./local/path/file.sum
- * file:./local/path/file.sum
- * none
- Although the checksum will not be verified when it is set to "none",
- this is not recommended since these files can be very large and
- corruption does happen from time to time.
-- `box_name` (string) - if your source_box is a boxfile that we need to add to Vagrant, this is
- the name to give it. If left blank, will default to "packer_" plus your
+ - md5:090992ba9fd140077b0661cb75f7ce13
+ - 090992ba9fd140077b0661cb75f7ce13
+ - sha1:ebfb681885ddf1234c18094a45bbeafd91467911
+ - ebfb681885ddf1234c18094a45bbeafd91467911
+ - sha256:ed363350696a726b7932db864dda019bd2017365c9e299627830f06954643f93
+ - ed363350696a726b7932db864dda019bd2017365c9e299627830f06954643f93
+ - file:http://releases.ubuntu.com/20.04/MD5SUMS
+ - file:file://./local/path/file.sum
+ - file:./local/path/file.sum
+ - none
+ Although the checksum will not be verified when it is set to "none",
+ this is not recommended since these files can be very large and
+ corruption does happen from time to time.
+
+- `box_name` (string) - if your source*box is a boxfile that we need to add to Vagrant, this is
+ the name to give it. If left blank, will default to "packer*" plus your
buildname.
- `insert_key` (bool) - If true, Vagrant will automatically insert a keypair to use for SSH,
diff --git a/website/pages/partials/builder/vagrant/Config-required.mdx b/website/content/partials/builder/vagrant/Config-required.mdx
similarity index 93%
rename from website/pages/partials/builder/vagrant/Config-required.mdx
rename to website/content/partials/builder/vagrant/Config-required.mdx
index 8b4f6037c..6f5648e7f 100644
--- a/website/pages/partials/builder/vagrant/Config-required.mdx
+++ b/website/content/partials/builder/vagrant/Config-required.mdx
@@ -11,6 +11,6 @@
You can find the global id of your Vagrant boxes using the command
vagrant global-status; your global_id will be a 7-digit number and
letter comination that you'll find in the leftmost column of the
- global-status output. If you choose to use global_id instead of
+ global-status output. If you choose to use global_id instead of
source_box, Packer will skip the Vagrant initialize and add steps, and
simply launch the box directly using the global id.
diff --git a/website/pages/partials/builder/virtualbox/common/CommConfig-not-required.mdx b/website/content/partials/builder/virtualbox/common/CommConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/virtualbox/common/CommConfig-not-required.mdx
rename to website/content/partials/builder/virtualbox/common/CommConfig-not-required.mdx
diff --git a/website/pages/partials/builder/virtualbox/common/ExportConfig-not-required.mdx b/website/content/partials/builder/virtualbox/common/ExportConfig-not-required.mdx
similarity index 89%
rename from website/pages/partials/builder/virtualbox/common/ExportConfig-not-required.mdx
rename to website/content/partials/builder/virtualbox/common/ExportConfig-not-required.mdx
index 11337947e..0ac97e127 100644
--- a/website/pages/partials/builder/virtualbox/common/ExportConfig-not-required.mdx
+++ b/website/content/partials/builder/virtualbox/common/ExportConfig-not-required.mdx
@@ -7,23 +7,27 @@
export](https://www.virtualbox.org/manual/ch09.html#vboxmanage-export).
This can be useful for passing product information to include in the
resulting appliance file. Packer JSON configuration file example:
-
+
In JSON:
+
```json
{
"type": "virtualbox-iso",
- "export_opts":
- [
+ "export_opts": [
"--manifest",
- "--vsys", "0",
- "--description", "{{user `vm_description`}}",
- "--version", "{{user `vm_version`}}"
+ "--vsys",
+ "0",
+ "--description",
+ "{{user `vm_description`}}",
+ "--version",
+ "{{user `vm_version`}}"
],
- "format": "ova",
+ "format": "ova"
}
```
-
+
In HCL2:
+
```hcl
source "virtualbox-iso" "basic-example" {
export_opts = [
@@ -35,7 +39,7 @@
format = "ova"
}
```
-
+
A VirtualBox [VM
description](https://www.virtualbox.org/manual/ch09.html#vboxmanage-export-ovf)
may contain arbitrary strings; the GUI interprets HTML formatting. However,
@@ -43,14 +47,14 @@
multi-line description by preparing the string in the shell before the
packer call like this (shell `>` continuation character snipped for easier
copy & paste):
-
+
```shell
vm_description='some
multiline
description'
-
+
vm_version='0.2.0'
-
+
packer build \
-var "vm_description=${vm_description}" \
-var "vm_version=${vm_version}" \
diff --git a/website/pages/partials/builder/virtualbox/common/GuestAdditionsConfig-not-required.mdx b/website/content/partials/builder/virtualbox/common/GuestAdditionsConfig-not-required.mdx
similarity index 59%
rename from website/pages/partials/builder/virtualbox/common/GuestAdditionsConfig-not-required.mdx
rename to website/content/partials/builder/virtualbox/common/GuestAdditionsConfig-not-required.mdx
index 214353b06..de5c8e761 100644
--- a/website/pages/partials/builder/virtualbox/common/GuestAdditionsConfig-not-required.mdx
+++ b/website/content/partials/builder/virtualbox/common/GuestAdditionsConfig-not-required.mdx
@@ -14,19 +14,19 @@
iso_interface is not set. Options are "ide" and "sata".
- `guest_additions_path` (string) - The path on the guest virtual machine
- where the VirtualBox guest additions ISO will be uploaded. By default this
- is `VBoxGuestAdditions.iso` which should upload into the login directory of
- the user. This is a [configuration
- template](/docs/templates/engine) where the `Version`
- variable is replaced with the VirtualBox version.
+ where the VirtualBox guest additions ISO will be uploaded. By default this
+ is `VBoxGuestAdditions.iso` which should upload into the login directory of
+ the user. This is a [configuration
+ template](/docs/templates/engine) where the `Version`
+ variable is replaced with the VirtualBox version.
- `guest_additions_sha256` (string) - The SHA256 checksum of the guest
- additions ISO that will be uploaded to the guest VM. By default the
- checksums will be downloaded from the VirtualBox website, so this only needs
- to be set if you want to be explicit about the checksum.
+ additions ISO that will be uploaded to the guest VM. By default the
+ checksums will be downloaded from the VirtualBox website, so this only needs
+ to be set if you want to be explicit about the checksum.
- `guest_additions_url` (string) - The URL of the guest additions ISO
- to upload. This can also be a file URL if the ISO is at a local path. By
- default, the VirtualBox builder will attempt to find the guest additions ISO
- on the local file system. If it is not available locally, the builder will
- download the proper guest additions ISO from the internet.
+ to upload. This can also be a file URL if the ISO is at a local path. By
+ default, the VirtualBox builder will attempt to find the guest additions ISO
+ on the local file system. If it is not available locally, the builder will
+ download the proper guest additions ISO from the internet.
diff --git a/website/pages/partials/builder/virtualbox/common/HWConfig-not-required.mdx b/website/content/partials/builder/virtualbox/common/HWConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/virtualbox/common/HWConfig-not-required.mdx
rename to website/content/partials/builder/virtualbox/common/HWConfig-not-required.mdx
diff --git a/website/pages/partials/builder/virtualbox/common/OutputConfig-not-required.mdx b/website/content/partials/builder/virtualbox/common/OutputConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/virtualbox/common/OutputConfig-not-required.mdx
rename to website/content/partials/builder/virtualbox/common/OutputConfig-not-required.mdx
diff --git a/website/pages/partials/builder/virtualbox/common/RunConfig-not-required.mdx b/website/content/partials/builder/virtualbox/common/RunConfig-not-required.mdx
similarity index 92%
rename from website/pages/partials/builder/virtualbox/common/RunConfig-not-required.mdx
rename to website/content/partials/builder/virtualbox/common/RunConfig-not-required.mdx
index 8d15a9f4e..6c278e27c 100644
--- a/website/pages/partials/builder/virtualbox/common/RunConfig-not-required.mdx
+++ b/website/content/partials/builder/virtualbox/common/RunConfig-not-required.mdx
@@ -11,7 +11,6 @@
- `vrdp_port_min` (int) - The minimum and maximum port
to use for VRDP access to the virtual machine. Packer uses a randomly chosen
- port in this range that appears available. By default this is 5900 to
- 6000. The minimum and maximum ports are inclusive.
+ port in this range that appears available. By default this is 5900 to 6000. The minimum and maximum ports are inclusive.
- `vrdp_port_max` (int) - VRDP Port Max
diff --git a/website/pages/partials/builder/virtualbox/common/ShutdownConfig-not-required.mdx b/website/content/partials/builder/virtualbox/common/ShutdownConfig-not-required.mdx
similarity index 92%
rename from website/pages/partials/builder/virtualbox/common/ShutdownConfig-not-required.mdx
rename to website/content/partials/builder/virtualbox/common/ShutdownConfig-not-required.mdx
index d018be75e..43a2df243 100644
--- a/website/pages/partials/builder/virtualbox/common/ShutdownConfig-not-required.mdx
+++ b/website/content/partials/builder/virtualbox/common/ShutdownConfig-not-required.mdx
@@ -19,8 +19,8 @@
or so. By default, the delay is 0s or disabled.
- `disable_shutdown` (bool) - Packer normally halts the virtual machine after all provisioners have
- run when no `shutdown_command` is defined. If this is set to `true`, Packer
- *will not* halt the virtual machine but will assume that you will send the stop
+ run when no `shutdown_command` is defined. If this is set to `true`, Packer
+ _will not_ halt the virtual machine but will assume that you will send the stop
signal yourself through the preseed.cfg or your final provisioner.
Packer will wait for a default of 5 minutes until the virtual machine is shutdown.
The timeout can be changed using `shutdown_timeout` option.
diff --git a/website/pages/partials/builder/virtualbox/common/VBoxBundleConfig-not-required.mdx b/website/content/partials/builder/virtualbox/common/VBoxBundleConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/virtualbox/common/VBoxBundleConfig-not-required.mdx
rename to website/content/partials/builder/virtualbox/common/VBoxBundleConfig-not-required.mdx
diff --git a/website/pages/partials/builder/virtualbox/common/VBoxManageConfig-not-required.mdx b/website/content/partials/builder/virtualbox/common/VBoxManageConfig-not-required.mdx
similarity index 99%
rename from website/pages/partials/builder/virtualbox/common/VBoxManageConfig-not-required.mdx
rename to website/content/partials/builder/virtualbox/common/VBoxManageConfig-not-required.mdx
index 6ebea3a8d..ef0469564 100644
--- a/website/pages/partials/builder/virtualbox/common/VBoxManageConfig-not-required.mdx
+++ b/website/content/partials/builder/virtualbox/common/VBoxManageConfig-not-required.mdx
@@ -3,23 +3,25 @@
- `vboxmanage` ([][]string) - Custom `VBoxManage` commands to execute in order to further customize
the virtual machine being created. The example shown below sets the memory and number of CPUs
within the virtual machine:
-
+
In JSON:
+
```json
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "1024"],
["modifyvm", "{{.Name}}", "--cpus", "2"]
]
```
-
+
In HCL2:
+
```hcl
vboxmanage = [
["modifyvm", "{{.Name}}", "--memory", "1024"],
["modifyvm", "{{.Name}}", "--cpus", "2"],
]
```
-
+
The value of `vboxmanage` is an array of commands to execute. These commands are
executed in the order defined. So in the above example, the memory will be set
followed by the CPUs.
diff --git a/website/pages/partials/builder/virtualbox/common/VBoxManageConfig.mdx b/website/content/partials/builder/virtualbox/common/VBoxManageConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/virtualbox/common/VBoxManageConfig.mdx
rename to website/content/partials/builder/virtualbox/common/VBoxManageConfig.mdx
diff --git a/website/pages/partials/builder/virtualbox/common/VBoxVersionConfig-not-required.mdx b/website/content/partials/builder/virtualbox/common/VBoxVersionConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/virtualbox/common/VBoxVersionConfig-not-required.mdx
rename to website/content/partials/builder/virtualbox/common/VBoxVersionConfig-not-required.mdx
diff --git a/website/pages/partials/builder/virtualbox/iso/Config-not-required.mdx b/website/content/partials/builder/virtualbox/iso/Config-not-required.mdx
similarity index 99%
rename from website/pages/partials/builder/virtualbox/iso/Config-not-required.mdx
rename to website/content/partials/builder/virtualbox/iso/Config-not-required.mdx
index 55e348ac2..726292078 100644
--- a/website/pages/partials/builder/virtualbox/iso/Config-not-required.mdx
+++ b/website/content/partials/builder/virtualbox/iso/Config-not-required.mdx
@@ -22,15 +22,17 @@
Virtualbox 6, install an [extension
pack](https://www.virtualbox.org/wiki/Downloads#VirtualBox6.0.14OracleVMVirtualBoxExtensionPack)
and you will need to enable EFI mode for nvme to work, ex:
-
+
In JSON:
+
```json
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--firmware", "EFI" ],
]
```
-
+
In HCL2:
+
```hcl
vboxmanage = [
[ "modifyvm", "{{.Name}}", "--firmware", "EFI" ],
diff --git a/website/pages/partials/builder/virtualbox/ovf/Config-not-required.mdx b/website/content/partials/builder/virtualbox/ovf/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/virtualbox/ovf/Config-not-required.mdx
rename to website/content/partials/builder/virtualbox/ovf/Config-not-required.mdx
diff --git a/website/pages/partials/builder/virtualbox/ovf/Config-required.mdx b/website/content/partials/builder/virtualbox/ovf/Config-required.mdx
similarity index 52%
rename from website/pages/partials/builder/virtualbox/ovf/Config-required.mdx
rename to website/content/partials/builder/virtualbox/ovf/Config-required.mdx
index 279ad7c81..0419dd81a 100644
--- a/website/pages/partials/builder/virtualbox/ovf/Config-required.mdx
+++ b/website/content/partials/builder/virtualbox/ovf/Config-required.mdx
@@ -7,19 +7,20 @@
"md5:{$checksum}", "sha1:{$checksum}", "sha256:{$checksum}",
"sha512:{$checksum}" or "file:{$path}". Here is a list of valid checksum
values:
- * md5:090992ba9fd140077b0661cb75f7ce13
- * 090992ba9fd140077b0661cb75f7ce13
- * sha1:ebfb681885ddf1234c18094a45bbeafd91467911
- * ebfb681885ddf1234c18094a45bbeafd91467911
- * sha256:ed363350696a726b7932db864dda019bd2017365c9e299627830f06954643f93
- * ed363350696a726b7932db864dda019bd2017365c9e299627830f06954643f93
- * file:http://releases.ubuntu.com/20.04/MD5SUMS
- * file:file://./local/path/file.sum
- * file:./local/path/file.sum
- * none
- Although the checksum will not be verified when it is set to "none",
- this is not recommended since these files can be very large and
- corruption does happen from time to time.
+
+ - md5:090992ba9fd140077b0661cb75f7ce13
+ - 090992ba9fd140077b0661cb75f7ce13
+ - sha1:ebfb681885ddf1234c18094a45bbeafd91467911
+ - ebfb681885ddf1234c18094a45bbeafd91467911
+ - sha256:ed363350696a726b7932db864dda019bd2017365c9e299627830f06954643f93
+ - ed363350696a726b7932db864dda019bd2017365c9e299627830f06954643f93
+ - file:http://releases.ubuntu.com/20.04/MD5SUMS
+ - file:file://./local/path/file.sum
+ - file:./local/path/file.sum
+ - none
+ Although the checksum will not be verified when it is set to "none",
+ this is not recommended since these files can be very large and
+ corruption does happen from time to time.
- `source_path` (string) - The filepath or URL to an OVF or OVA file that acts as the
source of this build.
diff --git a/website/pages/partials/builder/virtualbox/ovf/Config.mdx b/website/content/partials/builder/virtualbox/ovf/Config.mdx
similarity index 100%
rename from website/pages/partials/builder/virtualbox/ovf/Config.mdx
rename to website/content/partials/builder/virtualbox/ovf/Config.mdx
diff --git a/website/content/partials/builder/virtualbox/vm/Config-not-required.mdx b/website/content/partials/builder/virtualbox/vm/Config-not-required.mdx
new file mode 100644
index 000000000..716f44a41
--- /dev/null
+++ b/website/content/partials/builder/virtualbox/vm/Config-not-required.mdx
@@ -0,0 +1,27 @@
+
+
+- `attach_snapshot` (string) - Default to `null/empty`. The name of an
+ **existing** snapshot to which the builder shall attach the VM before
+ starting it. If no snapshot is specified the builder will simply start the
+ VM from it's current state i.e. snapshot.
+
+- `target_snapshot` (string) - Default to `null/empty`. The name of the
+ snapshot which shall be created after all provisioners has been run by the
+ builder. If no target snapshot is specified and `keep_registered` is set to
+ `false` the builder will revert to the snapshot to which the VM was attached
+ before the builder has been executed, which will revert all changes applied
+ by the provisioners. This is handy if only an export shall be created and no
+ further snapshot is required.
+
+- `force_delete_snapshot` (bool) - Defaults to `false`. If set to `true`,
+ overwrite an existing `target_snapshot`. Otherwise the builder will yield an
+ error if the specified target snapshot already exists.
+
+- `keep_registered` (bool) - Set this to `true` if you would like to keep
+ the VM attached to the snapshot specified by `attach_snapshot`. Otherwise
+ the builder will reset the VM to the snapshot to which the VM was attached
+ before the builder started. Defaults to `false`.
+
+- `skip_export` (bool) - Defaults to `false`. When enabled, Packer will
+ not export the VM. Useful if the builder should be applied again on the created
+ target snapshot.
diff --git a/website/pages/partials/builder/virtualbox/vm/Config-required.mdx b/website/content/partials/builder/virtualbox/vm/Config-required.mdx
similarity index 88%
rename from website/pages/partials/builder/virtualbox/vm/Config-required.mdx
rename to website/content/partials/builder/virtualbox/vm/Config-required.mdx
index e766d714d..d9cc8b7d2 100644
--- a/website/pages/partials/builder/virtualbox/vm/Config-required.mdx
+++ b/website/content/partials/builder/virtualbox/vm/Config-required.mdx
@@ -1,4 +1,4 @@
- `vm_name` (string) - This is the name of the virtual machine to which the
- builder shall attach.
+ builder shall attach.
diff --git a/website/pages/partials/builder/virtualbox/vm/Config.mdx b/website/content/partials/builder/virtualbox/vm/Config.mdx
similarity index 100%
rename from website/pages/partials/builder/virtualbox/vm/Config.mdx
rename to website/content/partials/builder/virtualbox/vm/Config.mdx
diff --git a/website/pages/partials/builder/vmware/common/DiskConfig-not-required.mdx b/website/content/partials/builder/vmware/common/DiskConfig-not-required.mdx
similarity index 51%
rename from website/pages/partials/builder/vmware/common/DiskConfig-not-required.mdx
rename to website/content/partials/builder/vmware/common/DiskConfig-not-required.mdx
index 26c66f780..04525ecdf 100644
--- a/website/pages/partials/builder/vmware/common/DiskConfig-not-required.mdx
+++ b/website/content/partials/builder/vmware/common/DiskConfig-not-required.mdx
@@ -21,25 +21,25 @@
- `disk_type_id` (string) - The type of VMware virtual disk to create. This
option is for advanced usage.
-
- For desktop VMware clients:
-
- Type ID | Description
- ------- | ---
- `0` | Growable virtual disk contained in a single file (monolithic sparse).
- `1` | Growable virtual disk split into 2GB files (split sparse).
- `2` | Preallocated virtual disk contained in a single file (monolithic flat).
- `3` | Preallocated virtual disk split into 2GB files (split flat).
- `4` | Preallocated virtual disk compatible with ESX server (VMFS flat).
- `5` | Compressed disk optimized for streaming.
-
- The default is `1`.
-
- For ESXi, this defaults to `zeroedthick`. The available options for ESXi
- are: `zeroedthick`, `eagerzeroedthick`, `thin`. `rdm:dev`, `rdmp:dev`,
- `2gbsparse` are not supported. Due to default disk compaction, when using
- `zeroedthick` or `eagerzeroedthick` set `skip_compaction` to `true`.
-
- For more information, please consult the [Virtual Disk Manager User's
- Guide](https://www.vmware.com/pdf/VirtualDiskManager.pdf) for desktop
- VMware clients. For ESXi, refer to the proper ESXi documentation.
+
+ For desktop VMware clients:
+
+ | Type ID | Description |
+ | ------- | ----------------------------------------------------------------------- |
+ | `0` | Growable virtual disk contained in a single file (monolithic sparse). |
+ | `1` | Growable virtual disk split into 2GB files (split sparse). |
+ | `2` | Preallocated virtual disk contained in a single file (monolithic flat). |
+ | `3` | Preallocated virtual disk split into 2GB files (split flat). |
+ | `4` | Preallocated virtual disk compatible with ESX server (VMFS flat). |
+ | `5` | Compressed disk optimized for streaming. |
+
+ The default is `1`.
+
+ For ESXi, this defaults to `zeroedthick`. The available options for ESXi
+ are: `zeroedthick`, `eagerzeroedthick`, `thin`. `rdm:dev`, `rdmp:dev`,
+ `2gbsparse` are not supported. Due to default disk compaction, when using
+ `zeroedthick` or `eagerzeroedthick` set `skip_compaction` to `true`.
+
+ For more information, please consult the [Virtual Disk Manager User's
+ Guide](https://www.vmware.com/pdf/VirtualDiskManager.pdf) for desktop
+ VMware clients. For ESXi, refer to the proper ESXi documentation.
diff --git a/website/pages/partials/builder/vmware/common/DriverConfig-not-required.mdx b/website/content/partials/builder/vmware/common/DriverConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vmware/common/DriverConfig-not-required.mdx
rename to website/content/partials/builder/vmware/common/DriverConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vmware/common/ExportConfig-not-required.mdx b/website/content/partials/builder/vmware/common/ExportConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vmware/common/ExportConfig-not-required.mdx
rename to website/content/partials/builder/vmware/common/ExportConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vmware/common/HWConfig-not-required.mdx b/website/content/partials/builder/vmware/common/HWConfig-not-required.mdx
similarity index 73%
rename from website/pages/partials/builder/vmware/common/HWConfig-not-required.mdx
rename to website/content/partials/builder/vmware/common/HWConfig-not-required.mdx
index fca87b2e3..c6cb94e46 100644
--- a/website/pages/partials/builder/vmware/common/HWConfig-not-required.mdx
+++ b/website/content/partials/builder/vmware/common/HWConfig-not-required.mdx
@@ -32,58 +32,58 @@
- `serial` (string) - This specifies a serial port to add to the VM. It has a format of
`Type:option1,option2,...`. The field `Type` can be one of the following
values: `FILE`, `DEVICE`, `PIPE`, `AUTO`, or `NONE`.
-
- * `FILE:path(,yield)` - Specifies the path to the local file to be used
+
+ - `FILE:path(,yield)` - Specifies the path to the local file to be used
as the serial port.
-
- * `yield` (bool) - This is an optional boolean that specifies
+
+ - `yield` (bool) - This is an optional boolean that specifies
whether the vm should yield the cpu when polling the port. By
default, the builder will assume this as `FALSE`.
-
- * `DEVICE:path(,yield)` - Specifies the path to the local device to be
- Â used as the serial port. If `path` is empty, then default to the first
+
+ - `DEVICE:path(,yield)` - Specifies the path to the local device to be
+ Â used as the serial port. If `path` is empty, then default to the first
serial port.
-
- * `yield` (bool) - This is an optional boolean that specifies
+
+ - `yield` (bool) - This is an optional boolean that specifies
whether the vm should yield the cpu when polling the port. By
default, the builder will assume this as `FALSE`.
-
- * `PIPE:path,endpoint,host(,yield)` - Specifies to use the named-pipe
+
+ - `PIPE:path,endpoint,host(,yield)` - Specifies to use the named-pipe
"path" as a serial port. This has a few options that determine how the
VM should use the named-pipe.
-
- * `endpoint` (string) - Chooses the type of the VM-end, which can be
+
+ - `endpoint` (string) - Chooses the type of the VM-end, which can be
either a `client` or `server`.
-
- * `host` (string) - Chooses the type of the host-end, which can
+
+ - `host` (string) - Chooses the type of the host-end, which can
be either `app` (application) or `vm` (another virtual-machine).
-
- * `yield` (bool) - This is an optional boolean that specifies
+
+ - `yield` (bool) - This is an optional boolean that specifies
whether the vm should yield the cpu when polling the port. By
default, the builder will assume this as `FALSE`.
-
- * `AUTO:(yield)` - Specifies to use auto-detection to determine the
+
+ - `AUTO:(yield)` - Specifies to use auto-detection to determine the
serial port to use. This has one option to determine how the VM should
support the serial port.
-
- * `yield` (bool) - This is an optional boolean that specifies
+
+ - `yield` (bool) - This is an optional boolean that specifies
whether the vm should yield the cpu when polling the port. By
default, the builder will assume this as `FALSE`.
-
- * `NONE` - Specifies to not use a serial port. (default)
+
+ - `NONE` - Specifies to not use a serial port. (default)
- `parallel` (string) - This specifies a parallel port to add to the VM. It has the format of
`Type:option1,option2,...`. Type can be one of the following values:
`FILE`, `DEVICE`, `AUTO`, or `NONE`.
-
- * `FILE:path` - Specifies the path to the local file to be used
+
+ - `FILE:path` - Specifies the path to the local file to be used
for the parallel port.
-
- * `DEVICE:path` - Specifies the path to the local device to be used
+
+ - `DEVICE:path` - Specifies the path to the local device to be used
for the parallel port.
-
- * `AUTO:direction` - Specifies to use auto-detection to determine the
+
+ - `AUTO:direction` - Specifies to use auto-detection to determine the
parallel port. Direction can be `BI` to specify bidirectional
communication or `UNI` to specify unidirectional communication.
-
- * `NONE` - Specifies to not use a parallel port. (default)
+
+ - `NONE` - Specifies to not use a parallel port. (default)
diff --git a/website/pages/partials/builder/vmware/common/OutputConfig-not-required.mdx b/website/content/partials/builder/vmware/common/OutputConfig-not-required.mdx
similarity index 94%
rename from website/pages/partials/builder/vmware/common/OutputConfig-not-required.mdx
rename to website/content/partials/builder/vmware/common/OutputConfig-not-required.mdx
index 8ad2776dc..93adae573 100644
--- a/website/pages/partials/builder/vmware/common/OutputConfig-not-required.mdx
+++ b/website/content/partials/builder/vmware/common/OutputConfig-not-required.mdx
@@ -4,31 +4,31 @@
directory where the resulting virtual machine will be created.
This may be relative or absolute. If relative, the path is relative to
the working directory when packer is executed.
-
+
If you are running a remote esx build, the output_dir is the path on your
local machine (the machine running Packer) to which Packer will export
the vm if you have `"skip_export": false`. If you want to manage the
virtual machine's path on the remote datastore, use `remote_output_dir`.
-
+
This directory must not exist or be empty prior to running
the builder.
-
+
By default this is output-BUILDNAME where "BUILDNAME" is the name of the
build.
- `remote_output_directory` (string) - This is the directoy on your remote esx host where you will save your
vm, relative to your remote_datastore.
-
+
This option's default value is your `vm_name`, and the final path of your
vm will be vmfs/volumes/$remote_datastore/$vm_name/$vm_name.vmx where
- `$remote_datastore` and `$vm_name` match their corresponding template
+ `$remote_datastore`and`$vm_name` match their corresponding template
options
-
+
For example, setting `"remote_output_directory": "path/to/subdir`
will create a directory `/vmfs/volumes/remote_datastore/path/to/subdir`.
-
+
Packer will not create the remote datastore for you; it must already
exist. However, Packer will create all directories defined in the option
that do not currently exist.
-
+
This option will be ignored unless you are building on a remote esx host.
diff --git a/website/pages/partials/builder/vmware/common/ParallelUnion.mdx b/website/content/partials/builder/vmware/common/ParallelUnion.mdx
similarity index 100%
rename from website/pages/partials/builder/vmware/common/ParallelUnion.mdx
rename to website/content/partials/builder/vmware/common/ParallelUnion.mdx
diff --git a/website/pages/partials/builder/vmware/common/RunConfig-not-required.mdx b/website/content/partials/builder/vmware/common/RunConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vmware/common/RunConfig-not-required.mdx
rename to website/content/partials/builder/vmware/common/RunConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vmware/common/RunConfig.mdx b/website/content/partials/builder/vmware/common/RunConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/vmware/common/RunConfig.mdx
rename to website/content/partials/builder/vmware/common/RunConfig.mdx
diff --git a/website/pages/partials/builder/vmware/common/SerialConfigPipe.mdx b/website/content/partials/builder/vmware/common/SerialConfigPipe.mdx
similarity index 100%
rename from website/pages/partials/builder/vmware/common/SerialConfigPipe.mdx
rename to website/content/partials/builder/vmware/common/SerialConfigPipe.mdx
diff --git a/website/pages/partials/builder/vmware/common/ToolsConfig-not-required.mdx b/website/content/partials/builder/vmware/common/ToolsConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vmware/common/ToolsConfig-not-required.mdx
rename to website/content/partials/builder/vmware/common/ToolsConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vmware/common/VMXConfig-not-required.mdx b/website/content/partials/builder/vmware/common/VMXConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vmware/common/VMXConfig-not-required.mdx
rename to website/content/partials/builder/vmware/common/VMXConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vmware/iso/Config-not-required.mdx b/website/content/partials/builder/vmware/iso/Config-not-required.mdx
similarity index 99%
rename from website/pages/partials/builder/vmware/iso/Config-not-required.mdx
rename to website/content/partials/builder/vmware/iso/Config-not-required.mdx
index f647cee9a..935a51e14 100644
--- a/website/pages/partials/builder/vmware/iso/Config-not-required.mdx
+++ b/website/content/partials/builder/vmware/iso/Config-not-required.mdx
@@ -34,7 +34,7 @@
defines the contents of the virtual machine VMX file for VMware. The
engine has access to the template variables `{{ .DiskNumber }}` and
`{{ .DiskName }}`.
-
+
This is for **advanced users only** as this can render the virtual machine
non-functional. See below for more information. For basic VMX
modifications, try `vmx_data` first.
diff --git a/website/pages/partials/builder/vmware/vmx/Config-not-required.mdx b/website/content/partials/builder/vmware/vmx/Config-not-required.mdx
similarity index 99%
rename from website/pages/partials/builder/vmware/vmx/Config-not-required.mdx
rename to website/content/partials/builder/vmware/vmx/Config-not-required.mdx
index f29f2cb78..0885d22dc 100644
--- a/website/pages/partials/builder/vmware/vmx/Config-not-required.mdx
+++ b/website/content/partials/builder/vmware/vmx/Config-not-required.mdx
@@ -3,7 +3,7 @@
- `linked` (bool) - By default Packer creates a 'full' clone of the virtual machine
specified in source_path. The resultant virtual machine is fully
independant from the parent it was cloned from.
-
+
Setting linked to true instead causes Packer to create the virtual
machine as a 'linked' clone. Linked clones use and require ongoing
access to the disks of the parent virtual machine. The benefit of a
diff --git a/website/pages/partials/builder/vmware/vmx/Config-required.mdx b/website/content/partials/builder/vmware/vmx/Config-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vmware/vmx/Config-required.mdx
rename to website/content/partials/builder/vmware/vmx/Config-required.mdx
diff --git a/website/pages/partials/builder/vmware/vmx/Config.mdx b/website/content/partials/builder/vmware/vmx/Config.mdx
similarity index 100%
rename from website/pages/partials/builder/vmware/vmx/Config.mdx
rename to website/content/partials/builder/vmware/vmx/Config.mdx
diff --git a/website/pages/partials/builder/vsphere/clone/CloneConfig-not-required.mdx b/website/content/partials/builder/vsphere/clone/CloneConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/clone/CloneConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/clone/CloneConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/clone/Config-not-required.mdx b/website/content/partials/builder/vsphere/clone/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/clone/Config-not-required.mdx
rename to website/content/partials/builder/vsphere/clone/Config-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/clone/CustomizeConfig-not-required.mdx b/website/content/partials/builder/vsphere/clone/CustomizeConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/clone/CustomizeConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/clone/CustomizeConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/clone/CustomizeConfig.mdx b/website/content/partials/builder/vsphere/clone/CustomizeConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/clone/CustomizeConfig.mdx
rename to website/content/partials/builder/vsphere/clone/CustomizeConfig.mdx
diff --git a/website/pages/partials/builder/vsphere/clone/GlobalDnsSettings-not-required.mdx b/website/content/partials/builder/vsphere/clone/GlobalDnsSettings-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/clone/GlobalDnsSettings-not-required.mdx
rename to website/content/partials/builder/vsphere/clone/GlobalDnsSettings-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/clone/GlobalDnsSettings.mdx b/website/content/partials/builder/vsphere/clone/GlobalDnsSettings.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/clone/GlobalDnsSettings.mdx
rename to website/content/partials/builder/vsphere/clone/GlobalDnsSettings.mdx
diff --git a/website/pages/partials/builder/vsphere/clone/GlobalRoutingSettings-not-required.mdx b/website/content/partials/builder/vsphere/clone/GlobalRoutingSettings-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/clone/GlobalRoutingSettings-not-required.mdx
rename to website/content/partials/builder/vsphere/clone/GlobalRoutingSettings-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/clone/GlobalRoutingSettings.mdx b/website/content/partials/builder/vsphere/clone/GlobalRoutingSettings.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/clone/GlobalRoutingSettings.mdx
rename to website/content/partials/builder/vsphere/clone/GlobalRoutingSettings.mdx
diff --git a/website/pages/partials/builder/vsphere/clone/LinuxOptions-not-required.mdx b/website/content/partials/builder/vsphere/clone/LinuxOptions-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/clone/LinuxOptions-not-required.mdx
rename to website/content/partials/builder/vsphere/clone/LinuxOptions-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/clone/NetworkInterface-not-required.mdx b/website/content/partials/builder/vsphere/clone/NetworkInterface-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/clone/NetworkInterface-not-required.mdx
rename to website/content/partials/builder/vsphere/clone/NetworkInterface-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/clone/vAppConfig-not-required.mdx b/website/content/partials/builder/vsphere/clone/vAppConfig-not-required.mdx
similarity index 99%
rename from website/pages/partials/builder/vsphere/clone/vAppConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/clone/vAppConfig-not-required.mdx
index daa4b2d4f..90fe36869 100644
--- a/website/pages/partials/builder/vsphere/clone/vAppConfig-not-required.mdx
+++ b/website/content/partials/builder/vsphere/clone/vAppConfig-not-required.mdx
@@ -2,7 +2,7 @@
- `properties` (map[string]string) - Set values for the available vApp Properties to supply configuration parameters to a virtual machine cloned from
a template that came from an imported OVF or OVA file.
-
+
-> **Note:** The only supported usage path for vApp properties is for existing user-configurable keys.
These generally come from an existing template that was created from an imported OVF or OVA file.
You cannot set values for vApp properties on virtual machines created from scratch,
diff --git a/website/pages/partials/builder/vsphere/common/BootConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/BootConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/common/BootConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/BootConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/common/CDRomConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/CDRomConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/common/CDRomConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/CDRomConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/common/ConfigParamsConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/ConfigParamsConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/common/ConfigParamsConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/ConfigParamsConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/common/ConnectConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/ConnectConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/common/ConnectConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/ConnectConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/common/ContentLibraryDestinationConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/ContentLibraryDestinationConfig-not-required.mdx
similarity index 99%
rename from website/pages/partials/builder/vsphere/common/ContentLibraryDestinationConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/ContentLibraryDestinationConfig-not-required.mdx
index 86eefcb6b..ee3c3fbba 100644
--- a/website/pages/partials/builder/vsphere/common/ContentLibraryDestinationConfig-not-required.mdx
+++ b/website/content/partials/builder/vsphere/common/ContentLibraryDestinationConfig-not-required.mdx
@@ -8,7 +8,7 @@
the default is [vm_name](#vm_name) + timestamp when not set. VM templates will be always imported to a new library item.
For OVF templates, the name defaults to [vm_name](#vm_name) when not set, and if an item with the same name already
exists it will be then updated with the new OVF template, otherwise a new item will be created.
-
+
~> **Note**: It's not possible to update existing library items with a new VM template. If updating an existing library
item is necessary, use an OVF template instead by setting the [ovf](#ovf) option as `true`.
diff --git a/website/pages/partials/builder/vsphere/common/ContentLibraryDestinationConfig.mdx b/website/content/partials/builder/vsphere/common/ContentLibraryDestinationConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/common/ContentLibraryDestinationConfig.mdx
rename to website/content/partials/builder/vsphere/common/ContentLibraryDestinationConfig.mdx
diff --git a/website/pages/partials/builder/vsphere/common/DiskConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/DiskConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/common/DiskConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/DiskConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/common/DiskConfig-required.mdx b/website/content/partials/builder/vsphere/common/DiskConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/common/DiskConfig-required.mdx
rename to website/content/partials/builder/vsphere/common/DiskConfig-required.mdx
diff --git a/website/pages/partials/builder/vsphere/common/DiskConfig.mdx b/website/content/partials/builder/vsphere/common/DiskConfig.mdx
similarity index 99%
rename from website/pages/partials/builder/vsphere/common/DiskConfig.mdx
rename to website/content/partials/builder/vsphere/common/DiskConfig.mdx
index 44040b0f7..fd667c7a5 100644
--- a/website/pages/partials/builder/vsphere/common/DiskConfig.mdx
+++ b/website/content/partials/builder/vsphere/common/DiskConfig.mdx
@@ -5,6 +5,7 @@ Defines the disk storage for a VM.
Example that will create a 15GB and a 20GB disk on the VM. The second disk will be thin provisioned:
In JSON:
+
```json
"storage": [
{
@@ -16,7 +17,9 @@ In JSON:
}
],
```
+
In HCL2:
+
```hcl
storage {
disk_size = 15000
@@ -30,6 +33,7 @@ In HCL2:
Example that creates 2 pvscsi controllers and adds 2 disks to each one:
In JSON:
+
```json
"disk_controller_type": ["pvscsi", "pvscsi"],
"storage": [
@@ -53,6 +57,7 @@ In JSON:
```
In HCL2:
+
```hcl
disk_controller_type = ["pvscsi", "pvscsi"]
storage {
diff --git a/website/pages/partials/builder/vsphere/common/ExportConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/ExportConfig-not-required.mdx
similarity index 78%
rename from website/pages/partials/builder/vsphere/common/ExportConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/ExportConfig-not-required.mdx
index 8f1a355a4..9a25bc4a7 100644
--- a/website/pages/partials/builder/vsphere/common/ExportConfig-not-required.mdx
+++ b/website/content/partials/builder/vsphere/common/ExportConfig-not-required.mdx
@@ -9,21 +9,25 @@
- `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
-
+
+ - 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:
-
+
In JSON:
+
```json
...
"export": {
"options": ["mac"]
},
```
+
In HCL2:
+
```hcl
...
export {
diff --git a/website/pages/partials/builder/vsphere/common/ExportConfig.mdx b/website/content/partials/builder/vsphere/common/ExportConfig.mdx
similarity index 99%
rename from website/pages/partials/builder/vsphere/common/ExportConfig.mdx
rename to website/content/partials/builder/vsphere/common/ExportConfig.mdx
index 074c74302..ec01bd3d6 100644
--- a/website/pages/partials/builder/vsphere/common/ExportConfig.mdx
+++ b/website/content/partials/builder/vsphere/common/ExportConfig.mdx
@@ -5,6 +5,7 @@ You may optionally export an ovf from VSphere to the instance running Packer.
Example usage:
In JSON:
+
```json
...
"vm_name": "example-ubuntu",
@@ -14,7 +15,9 @@ In JSON:
"output_directory": "./output_vsphere"
},
```
+
In HCL2:
+
```hcl
# ...
vm_name = "example-ubuntu"
@@ -24,6 +27,7 @@ In HCL2:
output_directory = "./output_vsphere"
}
```
+
The above configuration would create the following files:
```text
diff --git a/website/pages/partials/builder/vsphere/common/FloppyConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/FloppyConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/common/FloppyConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/FloppyConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/common/HardwareConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/HardwareConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/common/HardwareConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/HardwareConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/common/LocationConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/LocationConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/common/LocationConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/LocationConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/common/OutputConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/OutputConfig-not-required.mdx
similarity index 93%
rename from website/pages/partials/builder/vsphere/common/OutputConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/OutputConfig-not-required.mdx
index 6e5476c97..32b16b445 100644
--- a/website/pages/partials/builder/vsphere/common/OutputConfig-not-required.mdx
+++ b/website/content/partials/builder/vsphere/common/OutputConfig-not-required.mdx
@@ -9,7 +9,7 @@
"output-BUILDNAME" where "BUILDNAME" is the name of the build.
- `directory_permission` (os.FileMode) - The permissions to apply to the "output_directory", and to any parent
- directories that get created for output_directory. By default this is
+ directories that get created for output_directory. By default this is
"0750". You should express the permission as quoted string with a
leading zero such as "0755" in JSON file, because JSON does not support
octal value. In Unix-like OS, the actual permission may differ from
diff --git a/website/pages/partials/builder/vsphere/common/RemoveCDRomConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/RemoveCDRomConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/common/RemoveCDRomConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/RemoveCDRomConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/common/RunConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/RunConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/common/RunConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/RunConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/common/ShutdownConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/ShutdownConfig-not-required.mdx
similarity index 93%
rename from website/pages/partials/builder/vsphere/common/ShutdownConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/ShutdownConfig-not-required.mdx
index 1b950c176..7013ac9d0 100644
--- a/website/pages/partials/builder/vsphere/common/ShutdownConfig-not-required.mdx
+++ b/website/content/partials/builder/vsphere/common/ShutdownConfig-not-required.mdx
@@ -10,7 +10,7 @@
- `disable_shutdown` (bool) - Packer normally halts the virtual machine after all provisioners have
run when no `shutdown_command` is defined. If this is set to `true`, Packer
- *will not* halt the virtual machine but will assume that you will send the stop
+ _will not_ halt the virtual machine but will assume that you will send the stop
signal yourself through a preseed.cfg, a script or the final provisioner.
Packer will wait for a default of five minutes until the virtual machine is shutdown.
The timeout can be changed using `shutdown_timeout` option.
diff --git a/website/pages/partials/builder/vsphere/common/StorageConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/StorageConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/common/StorageConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/StorageConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/common/WaitIpConfig-not-required.mdx b/website/content/partials/builder/vsphere/common/WaitIpConfig-not-required.mdx
similarity index 84%
rename from website/pages/partials/builder/vsphere/common/WaitIpConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/common/WaitIpConfig-not-required.mdx
index 905d44690..86b9b154e 100644
--- a/website/pages/partials/builder/vsphere/common/WaitIpConfig-not-required.mdx
+++ b/website/content/partials/builder/vsphere/common/WaitIpConfig-not-required.mdx
@@ -10,11 +10,11 @@
parameter to apx. 2 minutes. Examples 45s and 10m. Defaults to
5s(5 seconds). See the Golang
[ParseDuration](https://golang.org/pkg/time/#ParseDuration) documentation
- for full details.
+ for full details.
- `ip_wait_address` (\*string) - Set this to a CIDR address to cause the service to wait for an address that is contained in
this network range. Defaults to "0.0.0.0/0" for any ipv4 address. Examples include:
-
- * empty string ("") - remove all filters
- * `0:0:0:0:0:0:0:0/0` - allow only ipv6 addresses
- * `192.168.1.0/24` - only allow ipv4 addresses from 192.168.1.1 to 192.168.1.254
+
+ - empty string ("") - remove all filters
+ - `0:0:0:0:0:0:0:0/0` - allow only ipv6 addresses
+ - `192.168.1.0/24` - only allow ipv4 addresses from 192.168.1.1 to 192.168.1.254
diff --git a/website/pages/partials/builder/vsphere/iso/Config-not-required.mdx b/website/content/partials/builder/vsphere/iso/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/iso/Config-not-required.mdx
rename to website/content/partials/builder/vsphere/iso/Config-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/iso/CreateConfig-not-required.mdx b/website/content/partials/builder/vsphere/iso/CreateConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/iso/CreateConfig-not-required.mdx
rename to website/content/partials/builder/vsphere/iso/CreateConfig-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/iso/NIC-not-required.mdx b/website/content/partials/builder/vsphere/iso/NIC-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/iso/NIC-not-required.mdx
rename to website/content/partials/builder/vsphere/iso/NIC-not-required.mdx
diff --git a/website/pages/partials/builder/vsphere/iso/NIC-required.mdx b/website/content/partials/builder/vsphere/iso/NIC-required.mdx
similarity index 100%
rename from website/pages/partials/builder/vsphere/iso/NIC-required.mdx
rename to website/content/partials/builder/vsphere/iso/NIC-required.mdx
diff --git a/website/pages/partials/builder/vsphere/iso/NIC.mdx b/website/content/partials/builder/vsphere/iso/NIC.mdx
similarity index 99%
rename from website/pages/partials/builder/vsphere/iso/NIC.mdx
rename to website/content/partials/builder/vsphere/iso/NIC.mdx
index e891469b0..bdd401f23 100644
--- a/website/pages/partials/builder/vsphere/iso/NIC.mdx
+++ b/website/content/partials/builder/vsphere/iso/NIC.mdx
@@ -5,6 +5,7 @@ Defines a Network Adapter
Example that creates two network adapters:
In JSON:
+
```json
"network_adapters": [
{
@@ -17,7 +18,9 @@ In JSON:
}
],
```
+
In HCL2:
+
```hcl
network_adapters {
network = "VM Network"
diff --git a/website/pages/partials/builder/yandex/AccessConfig-not-required.mdx b/website/content/partials/builder/yandex/AccessConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/yandex/AccessConfig-not-required.mdx
rename to website/content/partials/builder/yandex/AccessConfig-not-required.mdx
diff --git a/website/pages/partials/builder/yandex/AccessConfig-required.mdx b/website/content/partials/builder/yandex/AccessConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/yandex/AccessConfig-required.mdx
rename to website/content/partials/builder/yandex/AccessConfig-required.mdx
diff --git a/website/pages/partials/builder/yandex/AccessConfig.mdx b/website/content/partials/builder/yandex/AccessConfig.mdx
similarity index 100%
rename from website/pages/partials/builder/yandex/AccessConfig.mdx
rename to website/content/partials/builder/yandex/AccessConfig.mdx
diff --git a/website/pages/partials/builder/yandex/CloudConfig-required.mdx b/website/content/partials/builder/yandex/CloudConfig-required.mdx
similarity index 100%
rename from website/pages/partials/builder/yandex/CloudConfig-required.mdx
rename to website/content/partials/builder/yandex/CloudConfig-required.mdx
diff --git a/website/pages/partials/builder/yandex/CommonConfig-not-required.mdx b/website/content/partials/builder/yandex/CommonConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/yandex/CommonConfig-not-required.mdx
rename to website/content/partials/builder/yandex/CommonConfig-not-required.mdx
diff --git a/website/pages/partials/builder/yandex/Config-not-required.mdx b/website/content/partials/builder/yandex/Config-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/yandex/Config-not-required.mdx
rename to website/content/partials/builder/yandex/Config-not-required.mdx
diff --git a/website/pages/partials/builder/yandex/Config-required.mdx b/website/content/partials/builder/yandex/Config-required.mdx
similarity index 100%
rename from website/pages/partials/builder/yandex/Config-required.mdx
rename to website/content/partials/builder/yandex/Config-required.mdx
diff --git a/website/pages/partials/builder/yandex/DiskConfig-not-required.mdx b/website/content/partials/builder/yandex/DiskConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/yandex/DiskConfig-not-required.mdx
rename to website/content/partials/builder/yandex/DiskConfig-not-required.mdx
diff --git a/website/pages/partials/builder/yandex/ImageConfig-not-required.mdx b/website/content/partials/builder/yandex/ImageConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/yandex/ImageConfig-not-required.mdx
rename to website/content/partials/builder/yandex/ImageConfig-not-required.mdx
diff --git a/website/pages/partials/builder/yandex/InstanceConfig-not-required.mdx b/website/content/partials/builder/yandex/InstanceConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/yandex/InstanceConfig-not-required.mdx
rename to website/content/partials/builder/yandex/InstanceConfig-not-required.mdx
diff --git a/website/pages/partials/builder/yandex/NetworkConfig-not-required.mdx b/website/content/partials/builder/yandex/NetworkConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/builder/yandex/NetworkConfig-not-required.mdx
rename to website/content/partials/builder/yandex/NetworkConfig-not-required.mdx
diff --git a/website/pages/partials/builders/aws-common-block-device-a-i.mdx b/website/content/partials/builders/aws-common-block-device-a-i.mdx
similarity index 100%
rename from website/pages/partials/builders/aws-common-block-device-a-i.mdx
rename to website/content/partials/builders/aws-common-block-device-a-i.mdx
diff --git a/website/pages/partials/builders/aws-common-block-device-i-v.mdx b/website/content/partials/builders/aws-common-block-device-i-v.mdx
similarity index 100%
rename from website/pages/partials/builders/aws-common-block-device-i-v.mdx
rename to website/content/partials/builders/aws-common-block-device-i-v.mdx
diff --git a/website/pages/partials/builders/aws-common-opional-fields.mdx b/website/content/partials/builders/aws-common-opional-fields.mdx
similarity index 100%
rename from website/pages/partials/builders/aws-common-opional-fields.mdx
rename to website/content/partials/builders/aws-common-opional-fields.mdx
diff --git a/website/pages/partials/builders/aws-session-manager.mdx b/website/content/partials/builders/aws-session-manager.mdx
similarity index 100%
rename from website/pages/partials/builders/aws-session-manager.mdx
rename to website/content/partials/builders/aws-session-manager.mdx
diff --git a/website/pages/partials/builders/aws-spot-docs.mdx b/website/content/partials/builders/aws-spot-docs.mdx
similarity index 100%
rename from website/pages/partials/builders/aws-spot-docs.mdx
rename to website/content/partials/builders/aws-spot-docs.mdx
diff --git a/website/pages/partials/builders/aws-ssh-differentiation-table.mdx b/website/content/partials/builders/aws-ssh-differentiation-table.mdx
similarity index 100%
rename from website/pages/partials/builders/aws-ssh-differentiation-table.mdx
rename to website/content/partials/builders/aws-ssh-differentiation-table.mdx
diff --git a/website/pages/partials/builders/boot-command.mdx b/website/content/partials/builders/boot-command.mdx
similarity index 100%
rename from website/pages/partials/builders/boot-command.mdx
rename to website/content/partials/builders/boot-command.mdx
diff --git a/website/pages/partials/builders/building_on_remote_vsphere_hypervisor.mdx b/website/content/partials/builders/building_on_remote_vsphere_hypervisor.mdx
similarity index 100%
rename from website/pages/partials/builders/building_on_remote_vsphere_hypervisor.mdx
rename to website/content/partials/builders/building_on_remote_vsphere_hypervisor.mdx
diff --git a/website/pages/partials/builders/community_builders.mdx b/website/content/partials/builders/community_builders.mdx
similarity index 100%
rename from website/pages/partials/builders/community_builders.mdx
rename to website/content/partials/builders/community_builders.mdx
diff --git a/website/pages/partials/builders/virtualbox-ssh-key-pair.mdx b/website/content/partials/builders/virtualbox-ssh-key-pair.mdx
similarity index 96%
rename from website/pages/partials/builders/virtualbox-ssh-key-pair.mdx
rename to website/content/partials/builders/virtualbox-ssh-key-pair.mdx
index 9bccd488d..543ab686d 100644
--- a/website/pages/partials/builders/virtualbox-ssh-key-pair.mdx
+++ b/website/content/partials/builders/virtualbox-ssh-key-pair.mdx
@@ -1,7 +1,7 @@
### SSH key pair automation
The VirtualBox builders can inject the current SSH key pair's public key into
-the template using the `SSHPublicKey` template engine. This is the SSH public
+the template using the `SSHPublicKey` template engine. This is the SSH public
key as a line in OpenSSH authorized_keys format.
When a private key is provided using `ssh_private_key_file`, the key's
@@ -17,6 +17,7 @@ For example, the public key can be provided in the boot command as a URL
encoded string by appending `| urlquery` to the variable:
In JSON:
+
```json
"boot_command": [
" text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg PACKER_USER={{ user `username` }} PACKER_AUTHORIZED_KEY={{ .SSHPublicKey | urlquery }}"
@@ -24,6 +25,7 @@ In JSON:
```
In HCL2:
+
```hcl
boot_command = [
" text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg PACKER_USER={{ user `username` }} PACKER_AUTHORIZED_KEY={{ .SSHPublicKey | urlquery }}"
diff --git a/website/pages/partials/commands/except.mdx b/website/content/partials/commands/except.mdx
similarity index 100%
rename from website/pages/partials/commands/except.mdx
rename to website/content/partials/commands/except.mdx
diff --git a/website/pages/partials/commands/only.mdx b/website/content/partials/commands/only.mdx
similarity index 100%
rename from website/pages/partials/commands/only.mdx
rename to website/content/partials/commands/only.mdx
diff --git a/website/pages/partials/from-1.5/beta-hcl2-note.mdx b/website/content/partials/from-1.5/beta-hcl2-note.mdx
similarity index 100%
rename from website/pages/partials/from-1.5/beta-hcl2-note.mdx
rename to website/content/partials/from-1.5/beta-hcl2-note.mdx
diff --git a/website/pages/partials/from-1.5/builds/example-block.mdx b/website/content/partials/from-1.5/builds/example-block.mdx
similarity index 100%
rename from website/pages/partials/from-1.5/builds/example-block.mdx
rename to website/content/partials/from-1.5/builds/example-block.mdx
diff --git a/website/pages/partials/from-1.5/contextual-source-variables.mdx b/website/content/partials/from-1.5/contextual-source-variables.mdx
similarity index 100%
rename from website/pages/partials/from-1.5/contextual-source-variables.mdx
rename to website/content/partials/from-1.5/contextual-source-variables.mdx
diff --git a/website/pages/partials/from-1.5/locals/example-block.mdx b/website/content/partials/from-1.5/locals/example-block.mdx
similarity index 100%
rename from website/pages/partials/from-1.5/locals/example-block.mdx
rename to website/content/partials/from-1.5/locals/example-block.mdx
diff --git a/website/pages/partials/from-1.5/sources/example-block.mdx b/website/content/partials/from-1.5/sources/example-block.mdx
similarity index 100%
rename from website/pages/partials/from-1.5/sources/example-block.mdx
rename to website/content/partials/from-1.5/sources/example-block.mdx
diff --git a/website/pages/partials/from-1.5/variables/assignment.mdx b/website/content/partials/from-1.5/variables/assignment.mdx
similarity index 100%
rename from website/pages/partials/from-1.5/variables/assignment.mdx
rename to website/content/partials/from-1.5/variables/assignment.mdx
diff --git a/website/pages/partials/from-1.5/variables/custom-validation.mdx b/website/content/partials/from-1.5/variables/custom-validation.mdx
similarity index 95%
rename from website/pages/partials/from-1.5/variables/custom-validation.mdx
rename to website/content/partials/from-1.5/variables/custom-validation.mdx
index 42af7e1d7..8a6ef4a09 100644
--- a/website/pages/partials/from-1.5/variables/custom-validation.mdx
+++ b/website/content/partials/from-1.5/variables/custom-validation.mdx
@@ -37,7 +37,7 @@ variable "image_id" {
}
```
-If `condition` evaluates to `false`, an error message including the sentences
+If `condition` evaluates to `false`, an error message including the sentences
given in `error_message` will be produced. The error message string should be
at least one full sentence explaining the constraint that failed, using a
sentence structure similar to the above examples.
@@ -49,7 +49,7 @@ variable "image_metadata" {
default = {
key: "value",
- something: {
+ something: {
foo: "bar",
}
}
diff --git a/website/pages/partials/from-1.5/variables/foo-block.mdx b/website/content/partials/from-1.5/variables/foo-block.mdx
similarity index 100%
rename from website/pages/partials/from-1.5/variables/foo-block.mdx
rename to website/content/partials/from-1.5/variables/foo-block.mdx
diff --git a/website/pages/partials/from-1.5/variables/foo-pkrvar.mdx b/website/content/partials/from-1.5/variables/foo-pkrvar.mdx
similarity index 100%
rename from website/pages/partials/from-1.5/variables/foo-pkrvar.mdx
rename to website/content/partials/from-1.5/variables/foo-pkrvar.mdx
diff --git a/website/pages/partials/from-1.5/variables/must-be-set.mdx b/website/content/partials/from-1.5/variables/must-be-set.mdx
similarity index 100%
rename from website/pages/partials/from-1.5/variables/must-be-set.mdx
rename to website/content/partials/from-1.5/variables/must-be-set.mdx
diff --git a/website/pages/partials/from-1.5/variables/sensitive.mdx b/website/content/partials/from-1.5/variables/sensitive.mdx
similarity index 100%
rename from website/pages/partials/from-1.5/variables/sensitive.mdx
rename to website/content/partials/from-1.5/variables/sensitive.mdx
diff --git a/website/pages/partials/guides/hcl2-beta-note.mdx b/website/content/partials/guides/hcl2-beta-note.mdx
similarity index 100%
rename from website/pages/partials/guides/hcl2-beta-note.mdx
rename to website/content/partials/guides/hcl2-beta-note.mdx
diff --git a/website/pages/partials/helper/communicator/SSH-Agent-Auth-not-required.mdx b/website/content/partials/helper/communicator/SSH-Agent-Auth-not-required.mdx
similarity index 100%
rename from website/pages/partials/helper/communicator/SSH-Agent-Auth-not-required.mdx
rename to website/content/partials/helper/communicator/SSH-Agent-Auth-not-required.mdx
diff --git a/website/pages/partials/helper/communicator/SSH-Key-Pair-Name-not-required.mdx b/website/content/partials/helper/communicator/SSH-Key-Pair-Name-not-required.mdx
similarity index 100%
rename from website/pages/partials/helper/communicator/SSH-Key-Pair-Name-not-required.mdx
rename to website/content/partials/helper/communicator/SSH-Key-Pair-Name-not-required.mdx
diff --git a/website/pages/partials/helper/communicator/SSH-Private-Key-File-not-required.mdx b/website/content/partials/helper/communicator/SSH-Private-Key-File-not-required.mdx
similarity index 100%
rename from website/pages/partials/helper/communicator/SSH-Private-Key-File-not-required.mdx
rename to website/content/partials/helper/communicator/SSH-Private-Key-File-not-required.mdx
diff --git a/website/pages/partials/helper/communicator/SSH-Temporary-Key-Pair-not-required.mdx b/website/content/partials/helper/communicator/SSH-Temporary-Key-Pair-not-required.mdx
similarity index 100%
rename from website/pages/partials/helper/communicator/SSH-Temporary-Key-Pair-not-required.mdx
rename to website/content/partials/helper/communicator/SSH-Temporary-Key-Pair-not-required.mdx
diff --git a/website/pages/partials/packer-plugin-sdk/bootcommand/BootConfig-not-required.mdx b/website/content/partials/packer-plugin-sdk/bootcommand/BootConfig-not-required.mdx
similarity index 100%
rename from website/pages/partials/packer-plugin-sdk/bootcommand/BootConfig-not-required.mdx
rename to website/content/partials/packer-plugin-sdk/bootcommand/BootConfig-not-required.mdx
diff --git a/website/pages/partials/packer-plugin-sdk/bootcommand/BootConfig.mdx b/website/content/partials/packer-plugin-sdk/bootcommand/BootConfig.mdx
similarity index 51%
rename from website/pages/partials/packer-plugin-sdk/bootcommand/BootConfig.mdx
rename to website/content/partials/packer-plugin-sdk/bootcommand/BootConfig.mdx
index 8d41f834f..dc8eda082 100644
--- a/website/pages/partials/packer-plugin-sdk/bootcommand/BootConfig.mdx
+++ b/website/content/partials/packer-plugin-sdk/bootcommand/BootConfig.mdx
@@ -11,62 +11,62 @@ sequence. It is an array only to improve readability within the template.
There are a set of special keys available. If these are in your boot
command, they will be replaced by the proper key:
-- `` - Backspace
+- `` - Backspace
-- `` - Delete
+- `` - Delete
-- ` ` - Simulates an actual "enter" or "return" keypress.
+- ` ` - Simulates an actual "enter" or "return" keypress.
-- `` - Simulates pressing the escape key.
+- `` - Simulates pressing the escape key.
-- `` - Simulates pressing the tab key.
+- `` - Simulates pressing the tab key.
-- ` - ` - Simulates pressing a function key.
+- ` - ` - Simulates pressing a function key.
-- ` ` - Simulates pressing an arrow key.
+- ` ` - Simulates pressing an arrow key.
-- `` - Simulates pressing the spacebar.
+- `` - Simulates pressing the spacebar.
-- `` - Simulates pressing the insert key.
+- `` - Simulates pressing the insert key.
-- ` ` - Simulates pressing the home and end keys.
+- ` ` - Simulates pressing the home and end keys.
-- ` ` - Simulates pressing the page up and page down
- keys.
+- ` ` - Simulates pressing the page up and page down
+ keys.
-- `