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/_temp_remove_sidebar_current.js b/website/_temp_remove_sidebar_current.js
new file mode 100644
index 000000000..aa10ef820
--- /dev/null
+++ b/website/_temp_remove_sidebar_current.js
@@ -0,0 +1,13 @@
+// This script removes the "sidebar_current" key from frontmatter, as it is
+// no longer needed.
+
+const glob = require('glob')
+const path = require('path')
+const fs = require('fs')
+const matter = require('gray-matter')
+
+glob.sync(path.join(__dirname, './content/**/*.mdx')).map((fullPath) => {
+ let { content, data } = matter.read(fullPath)
+ delete data.layout
+ fs.writeFileSync(fullPath, matter.stringify(content, data))
+})
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/components/_temporary-markdown-page/README.md b/website/components/_temporary-markdown-page/README.md
new file mode 100644
index 000000000..6496183f0
--- /dev/null
+++ b/website/components/_temporary-markdown-page/README.md
@@ -0,0 +1,22 @@
+# ``
+
+This component renders a single page built from a separate markdown file.
+
+## Usage
+
+```jsx
+import MarkdownPage from '@hashicorp/react-markdown-page'
+import generateStaticProps from '@hashicorp/react-markdown-page/server'
+
+export default function MyPage({ staticProps }) {
+ return
+}
+
+export function getStaticProps() {
+ return generateStaticProps({
+ pagePath: 'content/test-page.mdx', // resolved from project root
+ })
+}
+```
+
+If the specified page contains front matter, the `page_title` and `description` keys will be added as the title and description the the `
` of the page.
diff --git a/website/components/_temporary-markdown-page/index.jsx b/website/components/_temporary-markdown-page/index.jsx
new file mode 100644
index 000000000..0eac2ce4b
--- /dev/null
+++ b/website/components/_temporary-markdown-page/index.jsx
@@ -0,0 +1,17 @@
+import s from './style.module.css'
+import hydrate from 'next-mdx-remote/hydrate'
+import Head from 'next/head'
+import HashiHead from '@hashicorp/react-head'
+import Content from '@hashicorp/react-content'
+
+export default function MarkdownPage({ head, mdxSource }) {
+ const content = hydrate(mdxSource)
+ return (
+ <>
+
+
+
+
+ >
+ )
+}
diff --git a/website/components/_temporary-markdown-page/server.jsx b/website/components/_temporary-markdown-page/server.jsx
new file mode 100644
index 000000000..f1b99c886
--- /dev/null
+++ b/website/components/_temporary-markdown-page/server.jsx
@@ -0,0 +1,27 @@
+import fs from 'fs'
+import path from 'path'
+import renderToString from 'next-mdx-remote/render-to-string'
+import markdownDefaults from '@hashicorp/nextjs-scripts/markdown'
+import matter from 'gray-matter'
+
+export default function generateGetStaticProps({
+ pagePath,
+ includesRoot = path.join(process.cwd(), 'content/partials'),
+}) {
+ return async function getStaticProps() {
+ const filePath = path.join(process.cwd(), pagePath)
+ const fileContent = fs.readFileSync(filePath, 'utf8')
+ const { data, content } = matter(fileContent)
+ const mdxSource = await renderToString(content, {
+ mdxOptions: markdownDefaults({ resolveIncludes: includesRoot }),
+ })
+ return {
+ props: {
+ staticProps: {
+ mdxSource,
+ head: { title: data.page_title, description: data.description },
+ },
+ },
+ }
+ }
+}
diff --git a/website/components/_temporary-markdown-page/style.module.css b/website/components/_temporary-markdown-page/style.module.css
new file mode 100644
index 000000000..5d7f818de
--- /dev/null
+++ b/website/components/_temporary-markdown-page/style.module.css
@@ -0,0 +1,11 @@
+.root {
+ composes: g-grid-container from global;
+ margin-top: 75px;
+ margin-bottom: 75px;
+
+ & article {
+ padding-left: 0;
+ max-width: 875px;
+ margin-left: 0;
+ }
+}
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..51aaf21bd 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..790f5b960 100644
--- a/website/pages/docs/builders/alicloud-ecs.mdx
+++ b/website/content/docs/builders/alicloud-ecs.mdx
@@ -48,6 +48,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..6bd6d8bd5 100644
--- a/website/pages/docs/builders/amazon/chroot.mdx
+++ b/website/content/docs/builders/amazon/chroot.mdx
@@ -256,7 +256,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..72fbc757b 100644
--- a/website/pages/docs/builders/amazon/ebs.mdx
+++ b/website/content/docs/builders/amazon/ebs.mdx
@@ -226,7 +226,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 +593,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 +626,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 100%
rename from website/pages/docs/builders/amazon/ebssurrogate.mdx
rename to website/content/docs/builders/amazon/ebssurrogate.mdx
diff --git a/website/pages/docs/builders/amazon/ebsvolume.mdx b/website/content/docs/builders/amazon/ebsvolume.mdx
similarity index 100%
rename from website/pages/docs/builders/amazon/ebsvolume.mdx
rename to website/content/docs/builders/amazon/ebsvolume.mdx
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..2f1346c61 100644
--- a/website/pages/docs/builders/amazon/index.mdx
+++ b/website/content/docs/builders/amazon/index.mdx
@@ -161,7 +161,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 100%
rename from website/pages/docs/builders/amazon/instance.mdx
rename to website/content/docs/builders/amazon/instance.mdx
diff --git a/website/pages/docs/builders/azure/arm.mdx b/website/content/docs/builders/azure/arm.mdx
similarity index 100%
rename from website/pages/docs/builders/azure/arm.mdx
rename to website/content/docs/builders/azure/arm.mdx
diff --git a/website/pages/docs/builders/azure/chroot.mdx b/website/content/docs/builders/azure/chroot.mdx
similarity index 100%
rename from website/pages/docs/builders/azure/chroot.mdx
rename to website/content/docs/builders/azure/chroot.mdx
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..c4cc2a426 100644
--- a/website/pages/docs/builders/azure/index.mdx
+++ b/website/content/docs/builders/azure/index.mdx
@@ -111,6 +111,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 100%
rename from website/pages/docs/builders/cloudstack.mdx
rename to website/content/docs/builders/cloudstack.mdx
diff --git a/website/pages/docs/builders/community-supported.mdx b/website/content/docs/builders/community-supported.mdx
similarity index 100%
rename from website/pages/docs/builders/community-supported.mdx
rename to website/content/docs/builders/community-supported.mdx
diff --git a/website/pages/docs/builders/custom.mdx b/website/content/docs/builders/custom.mdx
similarity index 100%
rename from website/pages/docs/builders/custom.mdx
rename to website/content/docs/builders/custom.mdx
diff --git a/website/pages/docs/builders/digitalocean.mdx b/website/content/docs/builders/digitalocean.mdx
similarity index 100%
rename from website/pages/docs/builders/digitalocean.mdx
rename to website/content/docs/builders/digitalocean.mdx
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..132ab9bfc 100644
--- a/website/pages/docs/builders/docker.mdx
+++ b/website/content/docs/builders/docker.mdx
@@ -223,7 +223,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 100%
rename from website/pages/docs/builders/file.mdx
rename to website/content/docs/builders/file.mdx
diff --git a/website/pages/docs/builders/googlecompute.mdx b/website/content/docs/builders/googlecompute.mdx
similarity index 99%
rename from website/pages/docs/builders/googlecompute.mdx
rename to website/content/docs/builders/googlecompute.mdx
index f2c2946c7..48e003edd 100644
--- a/website/pages/docs/builders/googlecompute.mdx
+++ b/website/content/docs/builders/googlecompute.mdx
@@ -40,7 +40,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 +49,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 +98,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 +401,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..b5dc76293 100644
--- a/website/pages/docs/builders/hetzner-cloud.mdx
+++ b/website/content/docs/builders/hetzner-cloud.mdx
@@ -58,9 +58,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 100%
rename from website/pages/docs/builders/hyperone.mdx
rename to website/content/docs/builders/hyperone.mdx
diff --git a/website/pages/docs/builders/hyperv/index.mdx b/website/content/docs/builders/hyperv/index.mdx
similarity index 100%
rename from website/pages/docs/builders/hyperv/index.mdx
rename to website/content/docs/builders/hyperv/index.mdx
diff --git a/website/pages/docs/builders/hyperv/iso.mdx b/website/content/docs/builders/hyperv/iso.mdx
similarity index 100%
rename from website/pages/docs/builders/hyperv/iso.mdx
rename to website/content/docs/builders/hyperv/iso.mdx
diff --git a/website/pages/docs/builders/hyperv/vmcx.mdx b/website/content/docs/builders/hyperv/vmcx.mdx
similarity index 100%
rename from website/pages/docs/builders/hyperv/vmcx.mdx
rename to website/content/docs/builders/hyperv/vmcx.mdx
diff --git a/website/pages/docs/builders/index.mdx b/website/content/docs/builders/index.mdx
similarity index 100%
rename from website/pages/docs/builders/index.mdx
rename to website/content/docs/builders/index.mdx
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..92221ad0a 100644
--- a/website/pages/docs/builders/jdcloud.mdx
+++ b/website/content/docs/builders/jdcloud.mdx
@@ -37,6 +37,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 100%
rename from website/pages/docs/builders/linode.mdx
rename to website/content/docs/builders/linode.mdx
diff --git a/website/pages/docs/builders/lxc.mdx b/website/content/docs/builders/lxc.mdx
similarity index 100%
rename from website/pages/docs/builders/lxc.mdx
rename to website/content/docs/builders/lxc.mdx
diff --git a/website/pages/docs/builders/lxd.mdx b/website/content/docs/builders/lxd.mdx
similarity index 100%
rename from website/pages/docs/builders/lxd.mdx
rename to website/content/docs/builders/lxd.mdx
diff --git a/website/pages/docs/builders/ncloud.mdx b/website/content/docs/builders/ncloud.mdx
similarity index 100%
rename from website/pages/docs/builders/ncloud.mdx
rename to website/content/docs/builders/ncloud.mdx
diff --git a/website/pages/docs/builders/null.mdx b/website/content/docs/builders/null.mdx
similarity index 100%
rename from website/pages/docs/builders/null.mdx
rename to website/content/docs/builders/null.mdx
diff --git a/website/pages/docs/builders/oneandone.mdx b/website/content/docs/builders/oneandone.mdx
similarity index 100%
rename from website/pages/docs/builders/oneandone.mdx
rename to website/content/docs/builders/oneandone.mdx
diff --git a/website/pages/docs/builders/openstack.mdx b/website/content/docs/builders/openstack.mdx
similarity index 100%
rename from website/pages/docs/builders/openstack.mdx
rename to website/content/docs/builders/openstack.mdx
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..505d08da5 100644
--- a/website/pages/docs/builders/oracle/classic.mdx
+++ b/website/content/docs/builders/oracle/classic.mdx
@@ -183,7 +183,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 100%
rename from website/pages/docs/builders/oracle/index.mdx
rename to website/content/docs/builders/oracle/index.mdx
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..967e24be6 100644
--- a/website/pages/docs/builders/oracle/oci.mdx
+++ b/website/content/docs/builders/oracle/oci.mdx
@@ -74,17 +74,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 +290,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 +300,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 +326,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 +350,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 100%
rename from website/pages/docs/builders/outscale/bsu.mdx
rename to website/content/docs/builders/outscale/bsu.mdx
diff --git a/website/pages/docs/builders/outscale/bsusurrogate.mdx b/website/content/docs/builders/outscale/bsusurrogate.mdx
similarity index 100%
rename from website/pages/docs/builders/outscale/bsusurrogate.mdx
rename to website/content/docs/builders/outscale/bsusurrogate.mdx
diff --git a/website/pages/docs/builders/outscale/bsuvolume.mdx b/website/content/docs/builders/outscale/bsuvolume.mdx
similarity index 100%
rename from website/pages/docs/builders/outscale/bsuvolume.mdx
rename to website/content/docs/builders/outscale/bsuvolume.mdx
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..bacabe209 100644
--- a/website/pages/docs/builders/outscale/chroot.mdx
+++ b/website/content/docs/builders/outscale/chroot.mdx
@@ -331,8 +331,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..3bfe6f9ae 100644
--- a/website/pages/docs/builders/outscale/index.mdx
+++ b/website/content/docs/builders/outscale/index.mdx
@@ -85,7 +85,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 +99,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 100%
rename from website/pages/docs/builders/parallels/index.mdx
rename to website/content/docs/builders/parallels/index.mdx
diff --git a/website/pages/docs/builders/parallels/iso.mdx b/website/content/docs/builders/parallels/iso.mdx
similarity index 100%
rename from website/pages/docs/builders/parallels/iso.mdx
rename to website/content/docs/builders/parallels/iso.mdx
diff --git a/website/pages/docs/builders/parallels/pvm.mdx b/website/content/docs/builders/parallels/pvm.mdx
similarity index 100%
rename from website/pages/docs/builders/parallels/pvm.mdx
rename to website/content/docs/builders/parallels/pvm.mdx
diff --git a/website/pages/docs/builders/profitbricks.mdx b/website/content/docs/builders/profitbricks.mdx
similarity index 100%
rename from website/pages/docs/builders/profitbricks.mdx
rename to website/content/docs/builders/profitbricks.mdx
diff --git a/website/pages/docs/builders/proxmox/clone.mdx b/website/content/docs/builders/proxmox/clone.mdx
similarity index 99%
rename from website/pages/docs/builders/proxmox/clone.mdx
rename to website/content/docs/builders/proxmox/clone.mdx
index 892c5e739..05eb0954b 100644
--- a/website/pages/docs/builders/proxmox/clone.mdx
+++ b/website/content/docs/builders/proxmox/clone.mdx
@@ -191,7 +191,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 +233,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 100%
rename from website/pages/docs/builders/proxmox/index.mdx
rename to website/content/docs/builders/proxmox/index.mdx
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..48755233d 100644
--- a/website/pages/docs/builders/proxmox/iso.mdx
+++ b/website/content/docs/builders/proxmox/iso.mdx
@@ -230,22 +230,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 +258,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 99%
rename from website/pages/docs/builders/qemu.mdx
rename to website/content/docs/builders/qemu.mdx
index 971915f58..0de34136a 100644
--- a/website/pages/docs/builders/qemu.mdx
+++ b/website/content/docs/builders/qemu.mdx
@@ -217,4 +217,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 100%
rename from website/pages/docs/builders/scaleway.mdx
rename to website/content/docs/builders/scaleway.mdx
diff --git a/website/pages/docs/builders/tencentcloud-cvm.mdx b/website/content/docs/builders/tencentcloud-cvm.mdx
similarity index 100%
rename from website/pages/docs/builders/tencentcloud-cvm.mdx
rename to website/content/docs/builders/tencentcloud-cvm.mdx
diff --git a/website/pages/docs/builders/triton.mdx b/website/content/docs/builders/triton.mdx
similarity index 100%
rename from website/pages/docs/builders/triton.mdx
rename to website/content/docs/builders/triton.mdx
diff --git a/website/pages/docs/builders/ucloud-uhost.mdx b/website/content/docs/builders/ucloud-uhost.mdx
similarity index 100%
rename from website/pages/docs/builders/ucloud-uhost.mdx
rename to website/content/docs/builders/ucloud-uhost.mdx
diff --git a/website/pages/docs/builders/vagrant.mdx b/website/content/docs/builders/vagrant.mdx
similarity index 100%
rename from website/pages/docs/builders/vagrant.mdx
rename to website/content/docs/builders/vagrant.mdx
diff --git a/website/pages/docs/builders/virtualbox/index.mdx b/website/content/docs/builders/virtualbox/index.mdx
similarity index 100%
rename from website/pages/docs/builders/virtualbox/index.mdx
rename to website/content/docs/builders/virtualbox/index.mdx
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..df3979159 100644
--- a/website/pages/docs/builders/virtualbox/iso.mdx
+++ b/website/content/docs/builders/virtualbox/iso.mdx
@@ -202,7 +202,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..d41d4015b 100644
--- a/website/pages/docs/builders/virtualbox/ovf.mdx
+++ b/website/content/docs/builders/virtualbox/ovf.mdx
@@ -248,4 +248,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 100%
rename from website/pages/docs/builders/virtualbox/vm.mdx
rename to website/content/docs/builders/virtualbox/vm.mdx
diff --git a/website/pages/docs/builders/vmware/index.mdx b/website/content/docs/builders/vmware/index.mdx
similarity index 100%
rename from website/pages/docs/builders/vmware/index.mdx
rename to website/content/docs/builders/vmware/index.mdx
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..04ef24709 100644
--- a/website/pages/docs/builders/vmware/iso.mdx
+++ b/website/content/docs/builders/vmware/iso.mdx
@@ -131,6 +131,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 100%
rename from website/pages/docs/builders/vmware/vmx.mdx
rename to website/content/docs/builders/vmware/vmx.mdx
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..14e69f508 100644
--- a/website/pages/docs/builders/vmware/vsphere-clone.mdx
+++ b/website/content/docs/builders/vmware/vsphere-clone.mdx
@@ -18,8 +18,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..e79397089 100644
--- a/website/pages/docs/builders/vmware/vsphere-iso.mdx
+++ b/website/content/docs/builders/vmware/vsphere-iso.mdx
@@ -19,8 +19,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..f5dc3d43b 100644
--- a/website/pages/docs/builders/yandex.mdx
+++ b/website/content/docs/builders/yandex.mdx
@@ -130,7 +130,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 100%
rename from website/pages/docs/commands/build.mdx
rename to website/content/docs/commands/build.mdx
diff --git a/website/pages/docs/commands/console.mdx b/website/content/docs/commands/console.mdx
similarity index 100%
rename from website/pages/docs/commands/console.mdx
rename to website/content/docs/commands/console.mdx
diff --git a/website/pages/docs/commands/fix.mdx b/website/content/docs/commands/fix.mdx
similarity index 100%
rename from website/pages/docs/commands/fix.mdx
rename to website/content/docs/commands/fix.mdx
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..b02a88538 100644
--- a/website/pages/docs/commands/fmt.mdx
+++ b/website/content/docs/commands/fmt.mdx
@@ -38,9 +38,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 83%
rename from website/pages/docs/commands/hcl2_upgrade.mdx
rename to website/content/docs/commands/hcl2_upgrade.mdx
index f02083671..42eff38f0 100644
--- a/website/pages/docs/commands/hcl2_upgrade.mdx
+++ b/website/content/docs/commands/hcl2_upgrade.mdx
@@ -56,14 +56,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 100%
rename from website/pages/docs/commands/index.mdx
rename to website/content/docs/commands/index.mdx
diff --git a/website/pages/docs/commands/inspect.mdx b/website/content/docs/commands/inspect.mdx
similarity index 100%
rename from website/pages/docs/commands/inspect.mdx
rename to website/content/docs/commands/inspect.mdx
diff --git a/website/pages/docs/commands/validate.mdx b/website/content/docs/commands/validate.mdx
similarity index 100%
rename from website/pages/docs/commands/validate.mdx
rename to website/content/docs/commands/validate.mdx
diff --git a/website/pages/docs/communicators/index.mdx b/website/content/docs/communicators/index.mdx
similarity index 100%
rename from website/pages/docs/communicators/index.mdx
rename to website/content/docs/communicators/index.mdx
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..ea269dbbb 100644
--- a/website/pages/docs/communicators/ssh.mdx
+++ b/website/content/docs/communicators/ssh.mdx
@@ -61,10 +61,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 100%
rename from website/pages/docs/communicators/winrm.mdx
rename to website/content/docs/communicators/winrm.mdx
diff --git a/website/pages/docs/core-configuration.mdx b/website/content/docs/core-configuration.mdx
similarity index 100%
rename from website/pages/docs/core-configuration.mdx
rename to website/content/docs/core-configuration.mdx
diff --git a/website/pages/docs/debugging.mdx b/website/content/docs/debugging.mdx
similarity index 100%
rename from website/pages/docs/debugging.mdx
rename to website/content/docs/debugging.mdx
diff --git a/website/pages/docs/environment-variables.mdx b/website/content/docs/environment-variables.mdx
similarity index 100%
rename from website/pages/docs/environment-variables.mdx
rename to website/content/docs/environment-variables.mdx
diff --git a/website/pages/docs/extending/custom-builders.mdx b/website/content/docs/extending/custom-builders.mdx
similarity index 100%
rename from website/pages/docs/extending/custom-builders.mdx
rename to website/content/docs/extending/custom-builders.mdx
diff --git a/website/pages/docs/extending/custom-post-processors.mdx b/website/content/docs/extending/custom-post-processors.mdx
similarity index 100%
rename from website/pages/docs/extending/custom-post-processors.mdx
rename to website/content/docs/extending/custom-post-processors.mdx
diff --git a/website/pages/docs/extending/custom-provisioners.mdx b/website/content/docs/extending/custom-provisioners.mdx
similarity index 100%
rename from website/pages/docs/extending/custom-provisioners.mdx
rename to website/content/docs/extending/custom-provisioners.mdx
diff --git a/website/pages/docs/extending/index.mdx b/website/content/docs/extending/index.mdx
similarity index 100%
rename from website/pages/docs/extending/index.mdx
rename to website/content/docs/extending/index.mdx
diff --git a/website/pages/docs/extending/plugins.mdx b/website/content/docs/extending/plugins.mdx
similarity index 100%
rename from website/pages/docs/extending/plugins.mdx
rename to website/content/docs/extending/plugins.mdx
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 100%
rename from website/pages/docs/from-1.5/blocks/build/index.mdx
rename to website/content/docs/from-1.5/blocks/build/index.mdx
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 97%
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..9530ebfda 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
@@ -90,6 +90,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..2323fe14d 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
@@ -31,7 +31,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 100%
rename from website/pages/docs/from-1.5/blocks/build/provisioner.mdx
rename to website/content/docs/from-1.5/blocks/build/provisioner.mdx
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 100%
rename from website/pages/docs/from-1.5/blocks/build/source.mdx
rename to website/content/docs/from-1.5/blocks/build/source.mdx
diff --git a/website/pages/docs/from-1.5/blocks/index.mdx b/website/content/docs/from-1.5/blocks/index.mdx
similarity index 100%
rename from website/pages/docs/from-1.5/blocks/index.mdx
rename to website/content/docs/from-1.5/blocks/index.mdx
diff --git a/website/pages/docs/from-1.5/blocks/locals.mdx b/website/content/docs/from-1.5/blocks/locals.mdx
similarity index 100%
rename from website/pages/docs/from-1.5/blocks/locals.mdx
rename to website/content/docs/from-1.5/blocks/locals.mdx
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..3349e1e68 100644
--- a/website/pages/docs/from-1.5/blocks/packer.mdx
+++ b/website/content/docs/from-1.5/blocks/packer.mdx
@@ -14,7 +14,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 +48,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 100%
rename from website/pages/docs/from-1.5/blocks/source.mdx
rename to website/content/docs/from-1.5/blocks/source.mdx
diff --git a/website/pages/docs/from-1.5/blocks/variable.mdx b/website/content/docs/from-1.5/blocks/variable.mdx
similarity index 100%
rename from website/pages/docs/from-1.5/blocks/variable.mdx
rename to website/content/docs/from-1.5/blocks/variable.mdx
diff --git a/website/pages/docs/from-1.5/contextual-variables.mdx b/website/content/docs/from-1.5/contextual-variables.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/contextual-variables.mdx
rename to website/content/docs/from-1.5/contextual-variables.mdx
index ce707de65..12a951758 100644
--- a/website/pages/docs/from-1.5/contextual-variables.mdx
+++ b/website/content/docs/from-1.5/contextual-variables.mdx
@@ -86,7 +86,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 100%
rename from website/pages/docs/from-1.5/expressions.mdx
rename to website/content/docs/from-1.5/expressions.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/chunklist.mdx
rename to website/content/docs/from-1.5/functions/collection/chunklist.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/coalesce.mdx
rename to website/content/docs/from-1.5/functions/collection/coalesce.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/coalescelist.mdx
rename to website/content/docs/from-1.5/functions/collection/coalescelist.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/compact.mdx
rename to website/content/docs/from-1.5/functions/collection/compact.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/concat.mdx
rename to website/content/docs/from-1.5/functions/collection/concat.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/contains.mdx
rename to website/content/docs/from-1.5/functions/collection/contains.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/distinct.mdx
rename to website/content/docs/from-1.5/functions/collection/distinct.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/element.mdx
rename to website/content/docs/from-1.5/functions/collection/element.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/flatten.mdx
rename to website/content/docs/from-1.5/functions/collection/flatten.mdx
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 100%
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
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 100%
rename from website/pages/docs/from-1.5/functions/collection/index.mdx
rename to website/content/docs/from-1.5/functions/collection/index.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/keys.mdx
rename to website/content/docs/from-1.5/functions/collection/keys.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/length.mdx
rename to website/content/docs/from-1.5/functions/collection/length.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/lookup.mdx
rename to website/content/docs/from-1.5/functions/collection/lookup.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/merge.mdx
rename to website/content/docs/from-1.5/functions/collection/merge.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/range.mdx
rename to website/content/docs/from-1.5/functions/collection/range.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/reverse.mdx
rename to website/content/docs/from-1.5/functions/collection/reverse.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/setintersection.mdx
rename to website/content/docs/from-1.5/functions/collection/setintersection.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/setproduct.mdx
rename to website/content/docs/from-1.5/functions/collection/setproduct.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/setunion.mdx
rename to website/content/docs/from-1.5/functions/collection/setunion.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/slice.mdx
rename to website/content/docs/from-1.5/functions/collection/slice.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/sort.mdx
rename to website/content/docs/from-1.5/functions/collection/sort.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/values.mdx
rename to website/content/docs/from-1.5/functions/collection/values.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/collection/zipmap.mdx
rename to website/content/docs/from-1.5/functions/collection/zipmap.mdx
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 98%
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..c5b71f73c 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
@@ -5,7 +5,6 @@ sidebar_title: aws_secretsmanager
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 +49,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 +82,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 99%
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..e767a68c6 100644
--- a/website/pages/docs/from-1.5/functions/contextual/consul.mdx
+++ b/website/content/docs/from-1.5/functions/contextual/consul.mdx
@@ -5,7 +5,6 @@ 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..f16d40775 100644
--- a/website/pages/docs/from-1.5/functions/contextual/env.mdx
+++ b/website/content/docs/from-1.5/functions/contextual/env.mdx
@@ -22,7 +22,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 100%
rename from website/pages/docs/from-1.5/functions/contextual/index.mdx
rename to website/content/docs/from-1.5/functions/contextual/index.mdx
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 99%
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..823d3f9f4 100644
--- a/website/pages/docs/from-1.5/functions/contextual/vault.mdx
+++ b/website/content/docs/from-1.5/functions/contextual/vault.mdx
@@ -73,4 +73,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 100%
rename from website/pages/docs/from-1.5/functions/conversion/can.mdx
rename to website/content/docs/from-1.5/functions/conversion/can.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/conversion/convert.mdx
rename to website/content/docs/from-1.5/functions/conversion/convert.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/conversion/index.mdx
rename to website/content/docs/from-1.5/functions/conversion/index.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/conversion/try.mdx
rename to website/content/docs/from-1.5/functions/conversion/try.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/crypto/bcrypt.mdx
rename to website/content/docs/from-1.5/functions/crypto/bcrypt.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/crypto/index.mdx
rename to website/content/docs/from-1.5/functions/crypto/index.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/crypto/md5.mdx
rename to website/content/docs/from-1.5/functions/crypto/md5.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/crypto/rsadecrypt.mdx
rename to website/content/docs/from-1.5/functions/crypto/rsadecrypt.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/crypto/sha1.mdx
rename to website/content/docs/from-1.5/functions/crypto/sha1.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/crypto/sha256.mdx
rename to website/content/docs/from-1.5/functions/crypto/sha256.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/crypto/sha512.mdx
rename to website/content/docs/from-1.5/functions/crypto/sha512.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/datetime/formatdate.mdx
rename to website/content/docs/from-1.5/functions/datetime/formatdate.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/datetime/index.mdx
rename to website/content/docs/from-1.5/functions/datetime/index.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/datetime/timeadd.mdx
rename to website/content/docs/from-1.5/functions/datetime/timeadd.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/datetime/timestamp.mdx
rename to website/content/docs/from-1.5/functions/datetime/timestamp.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/encoding/base64decode.mdx
rename to website/content/docs/from-1.5/functions/encoding/base64decode.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/encoding/base64encode.mdx
rename to website/content/docs/from-1.5/functions/encoding/base64encode.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/encoding/csvdecode.mdx
rename to website/content/docs/from-1.5/functions/encoding/csvdecode.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/encoding/index.mdx
rename to website/content/docs/from-1.5/functions/encoding/index.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/encoding/jsondecode.mdx
rename to website/content/docs/from-1.5/functions/encoding/jsondecode.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/encoding/jsonencode.mdx
rename to website/content/docs/from-1.5/functions/encoding/jsonencode.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/encoding/urlencode.mdx
rename to website/content/docs/from-1.5/functions/encoding/urlencode.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/encoding/yamldecode.mdx
rename to website/content/docs/from-1.5/functions/encoding/yamldecode.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/encoding/yamlencode.mdx
rename to website/content/docs/from-1.5/functions/encoding/yamlencode.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/file/abspath.mdx
rename to website/content/docs/from-1.5/functions/file/abspath.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/file/basename.mdx
rename to website/content/docs/from-1.5/functions/file/basename.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/file/dirname.mdx
rename to website/content/docs/from-1.5/functions/file/dirname.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/file/file.mdx
rename to website/content/docs/from-1.5/functions/file/file.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/file/fileexists.mdx
rename to website/content/docs/from-1.5/functions/file/fileexists.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/file/fileset.mdx
rename to website/content/docs/from-1.5/functions/file/fileset.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/file/index.mdx
rename to website/content/docs/from-1.5/functions/file/index.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/file/pathexpand.mdx
rename to website/content/docs/from-1.5/functions/file/pathexpand.mdx
diff --git a/website/pages/docs/from-1.5/functions/index.mdx b/website/content/docs/from-1.5/functions/index.mdx
similarity index 100%
rename from website/pages/docs/from-1.5/functions/index.mdx
rename to website/content/docs/from-1.5/functions/index.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/ipnet/cidrhost.mdx
rename to website/content/docs/from-1.5/functions/ipnet/cidrhost.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/ipnet/cidrnetmask.mdx
rename to website/content/docs/from-1.5/functions/ipnet/cidrnetmask.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/ipnet/cidrsubnet.mdx
rename to website/content/docs/from-1.5/functions/ipnet/cidrsubnet.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/ipnet/cidrsubnets.mdx
rename to website/content/docs/from-1.5/functions/ipnet/cidrsubnets.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/ipnet/index.mdx
rename to website/content/docs/from-1.5/functions/ipnet/index.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/numeric/abs.mdx
rename to website/content/docs/from-1.5/functions/numeric/abs.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/numeric/ceil.mdx
rename to website/content/docs/from-1.5/functions/numeric/ceil.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/numeric/floor.mdx
rename to website/content/docs/from-1.5/functions/numeric/floor.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/numeric/index.mdx
rename to website/content/docs/from-1.5/functions/numeric/index.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/numeric/log.mdx
rename to website/content/docs/from-1.5/functions/numeric/log.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/numeric/max.mdx
rename to website/content/docs/from-1.5/functions/numeric/max.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/numeric/min.mdx
rename to website/content/docs/from-1.5/functions/numeric/min.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/numeric/parseint.mdx
rename to website/content/docs/from-1.5/functions/numeric/parseint.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/numeric/pow.mdx
rename to website/content/docs/from-1.5/functions/numeric/pow.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/numeric/signum.mdx
rename to website/content/docs/from-1.5/functions/numeric/signum.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/chomp.mdx
rename to website/content/docs/from-1.5/functions/string/chomp.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/format.mdx
rename to website/content/docs/from-1.5/functions/string/format.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/formatlist.mdx
rename to website/content/docs/from-1.5/functions/string/formatlist.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/indent.mdx
rename to website/content/docs/from-1.5/functions/string/indent.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/index.mdx
rename to website/content/docs/from-1.5/functions/string/index.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/join.mdx
rename to website/content/docs/from-1.5/functions/string/join.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/lower.mdx
rename to website/content/docs/from-1.5/functions/string/lower.mdx
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 100%
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
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 100%
rename from website/pages/docs/from-1.5/functions/string/replace.mdx
rename to website/content/docs/from-1.5/functions/string/replace.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/split.mdx
rename to website/content/docs/from-1.5/functions/string/split.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/strrev.mdx
rename to website/content/docs/from-1.5/functions/string/strrev.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/substr.mdx
rename to website/content/docs/from-1.5/functions/string/substr.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/title.mdx
rename to website/content/docs/from-1.5/functions/string/title.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/trim.mdx
rename to website/content/docs/from-1.5/functions/string/trim.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/trimprefix.mdx
rename to website/content/docs/from-1.5/functions/string/trimprefix.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/trimspace.mdx
rename to website/content/docs/from-1.5/functions/string/trimspace.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/trimsuffix.mdx
rename to website/content/docs/from-1.5/functions/string/trimsuffix.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/string/upper.mdx
rename to website/content/docs/from-1.5/functions/string/upper.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/uuid/index.mdx
rename to website/content/docs/from-1.5/functions/uuid/index.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/uuid/uuidv4.mdx
rename to website/content/docs/from-1.5/functions/uuid/uuidv4.mdx
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 100%
rename from website/pages/docs/from-1.5/functions/uuid/uuidv5.mdx
rename to website/content/docs/from-1.5/functions/uuid/uuidv5.mdx
diff --git a/website/pages/docs/from-1.5/index.mdx b/website/content/docs/from-1.5/index.mdx
similarity index 100%
rename from website/pages/docs/from-1.5/index.mdx
rename to website/content/docs/from-1.5/index.mdx
diff --git a/website/pages/docs/from-1.5/locals.mdx b/website/content/docs/from-1.5/locals.mdx
similarity index 100%
rename from website/pages/docs/from-1.5/locals.mdx
rename to website/content/docs/from-1.5/locals.mdx
diff --git a/website/pages/docs/from-1.5/onlyexcept.mdx b/website/content/docs/from-1.5/onlyexcept.mdx
similarity index 100%
rename from website/pages/docs/from-1.5/onlyexcept.mdx
rename to website/content/docs/from-1.5/onlyexcept.mdx
diff --git a/website/pages/docs/from-1.5/path-variables.mdx b/website/content/docs/from-1.5/path-variables.mdx
similarity index 99%
rename from website/pages/docs/from-1.5/path-variables.mdx
rename to website/content/docs/from-1.5/path-variables.mdx
index d95e468de..920c4db6b 100644
--- a/website/pages/docs/from-1.5/path-variables.mdx
+++ b/website/content/docs/from-1.5/path-variables.mdx
@@ -13,7 +13,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 100%
rename from website/pages/docs/from-1.5/syntax-json.mdx
rename to website/content/docs/from-1.5/syntax-json.mdx
diff --git a/website/pages/docs/from-1.5/syntax.mdx b/website/content/docs/from-1.5/syntax.mdx
similarity index 100%
rename from website/pages/docs/from-1.5/syntax.mdx
rename to website/content/docs/from-1.5/syntax.mdx
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..850b9bac8 100644
--- a/website/pages/docs/from-1.5/variables.mdx
+++ b/website/content/docs/from-1.5/variables.mdx
@@ -134,7 +134,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 100%
rename from website/pages/docs/index.mdx
rename to website/content/docs/index.mdx
diff --git a/website/pages/docs/install.mdx b/website/content/docs/install.mdx
similarity index 100%
rename from website/pages/docs/install.mdx
rename to website/content/docs/install.mdx
diff --git a/website/pages/docs/post-processors/alicloud-import.mdx b/website/content/docs/post-processors/alicloud-import.mdx
similarity index 100%
rename from website/pages/docs/post-processors/alicloud-import.mdx
rename to website/content/docs/post-processors/alicloud-import.mdx
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..d2f3fd8cb 100644
--- a/website/pages/docs/post-processors/amazon-import.mdx
+++ b/website/content/docs/post-processors/amazon-import.mdx
@@ -216,14 +216,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 100%
rename from website/pages/docs/post-processors/artifice.mdx
rename to website/content/docs/post-processors/artifice.mdx
diff --git a/website/pages/docs/post-processors/checksum.mdx b/website/content/docs/post-processors/checksum.mdx
similarity index 97%
rename from website/pages/docs/post-processors/checksum.mdx
rename to website/content/docs/post-processors/checksum.mdx
index 1bb216336..a1a40d56e 100644
--- a/website/pages/docs/post-processors/checksum.mdx
+++ b/website/content/docs/post-processors/checksum.mdx
@@ -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 100%
rename from website/pages/docs/post-processors/community-supported.mdx
rename to website/content/docs/post-processors/community-supported.mdx
diff --git a/website/pages/docs/post-processors/compress.mdx b/website/content/docs/post-processors/compress.mdx
similarity index 100%
rename from website/pages/docs/post-processors/compress.mdx
rename to website/content/docs/post-processors/compress.mdx
diff --git a/website/pages/docs/post-processors/digitalocean-import.mdx b/website/content/docs/post-processors/digitalocean-import.mdx
similarity index 100%
rename from website/pages/docs/post-processors/digitalocean-import.mdx
rename to website/content/docs/post-processors/digitalocean-import.mdx
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..66adf5084 100644
--- a/website/pages/docs/post-processors/docker-import.mdx
+++ b/website/content/docs/post-processors/docker-import.mdx
@@ -27,21 +27,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 100%
rename from website/pages/docs/post-processors/docker-push.mdx
rename to website/content/docs/post-processors/docker-push.mdx
diff --git a/website/pages/docs/post-processors/docker-save.mdx b/website/content/docs/post-processors/docker-save.mdx
similarity index 100%
rename from website/pages/docs/post-processors/docker-save.mdx
rename to website/content/docs/post-processors/docker-save.mdx
diff --git a/website/pages/docs/post-processors/docker-tag.mdx b/website/content/docs/post-processors/docker-tag.mdx
similarity index 100%
rename from website/pages/docs/post-processors/docker-tag.mdx
rename to website/content/docs/post-processors/docker-tag.mdx
diff --git a/website/pages/docs/post-processors/exoscale-import.mdx b/website/content/docs/post-processors/exoscale-import.mdx
similarity index 100%
rename from website/pages/docs/post-processors/exoscale-import.mdx
rename to website/content/docs/post-processors/exoscale-import.mdx
diff --git a/website/pages/docs/post-processors/googlecompute-export.mdx b/website/content/docs/post-processors/googlecompute-export.mdx
similarity index 100%
rename from website/pages/docs/post-processors/googlecompute-export.mdx
rename to website/content/docs/post-processors/googlecompute-export.mdx
diff --git a/website/pages/docs/post-processors/googlecompute-import.mdx b/website/content/docs/post-processors/googlecompute-import.mdx
similarity index 100%
rename from website/pages/docs/post-processors/googlecompute-import.mdx
rename to website/content/docs/post-processors/googlecompute-import.mdx
diff --git a/website/pages/docs/post-processors/index.mdx b/website/content/docs/post-processors/index.mdx
similarity index 100%
rename from website/pages/docs/post-processors/index.mdx
rename to website/content/docs/post-processors/index.mdx
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..2dcb5db1d 100644
--- a/website/pages/docs/post-processors/manifest.mdx
+++ b/website/content/docs/post-processors/manifest.mdx
@@ -36,9 +36,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..a456433dd 100644
--- a/website/pages/docs/post-processors/shell-local.mdx
+++ b/website/content/docs/post-processors/shell-local.mdx
@@ -210,7 +210,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 +408,6 @@ post-processor "shell-local" {
-
Contents of "test_cmd.cmd":
echo %SHELLLOCALTEST%
@@ -417,7 +415,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 100%
rename from website/pages/docs/post-processors/ucloud-import.mdx
rename to website/content/docs/post-processors/ucloud-import.mdx
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..3a6e46e97 100644
--- a/website/pages/docs/post-processors/vagrant-cloud.mdx
+++ b/website/content/docs/post-processors/vagrant-cloud.mdx
@@ -111,6 +111,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..f86f4832b 100644
--- a/website/pages/docs/post-processors/vagrant.mdx
+++ b/website/content/docs/post-processors/vagrant.mdx
@@ -125,22 +125,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..be925ad43 100644
--- a/website/pages/docs/post-processors/vsphere-template.mdx
+++ b/website/content/docs/post-processors/vsphere-template.mdx
@@ -166,4 +166,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 91%
rename from website/pages/docs/post-processors/vsphere.mdx
rename to website/content/docs/post-processors/vsphere.mdx
index 4662c7fdb..8677132b4 100644
--- a/website/pages/docs/post-processors/vsphere.mdx
+++ b/website/content/docs/post-processors/vsphere.mdx
@@ -83,7 +83,7 @@ You can also use this post-processor with the vmx artifact from a vmware build.
-``` json
+```json
{
"builders": [
{
@@ -95,19 +95,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 100%
rename from website/pages/docs/post-processors/yandex-export.mdx
rename to website/content/docs/post-processors/yandex-export.mdx
diff --git a/website/pages/docs/post-processors/yandex-import.mdx b/website/content/docs/post-processors/yandex-import.mdx
similarity index 100%
rename from website/pages/docs/post-processors/yandex-import.mdx
rename to website/content/docs/post-processors/yandex-import.mdx
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..51b928a2d 100644
--- a/website/pages/docs/provisioners/ansible-local.mdx
+++ b/website/content/docs/provisioners/ansible-local.mdx
@@ -37,25 +37,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..925161bba 100644
--- a/website/pages/docs/provisioners/ansible.mdx
+++ b/website/content/docs/provisioners/ansible.mdx
@@ -25,7 +25,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 +346,7 @@ explicitly not use any proxying; you can do this by setting the template option
```json
"ansible_env_vars": ["no_proxy=\"*\""],
```
+
@@ -525,6 +525,7 @@ The ansible provisioner template remains very simple. For example:
"playbook_file": "./playbook.yml"
}
```
+
@@ -565,26 +566,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 +692,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 +708,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 100%
rename from website/pages/docs/provisioners/breakpoint.mdx
rename to website/content/docs/provisioners/breakpoint.mdx
diff --git a/website/pages/docs/provisioners/chef-client.mdx b/website/content/docs/provisioners/chef-client.mdx
similarity index 100%
rename from website/pages/docs/provisioners/chef-client.mdx
rename to website/content/docs/provisioners/chef-client.mdx
diff --git a/website/pages/docs/provisioners/chef-solo.mdx b/website/content/docs/provisioners/chef-solo.mdx
similarity index 100%
rename from website/pages/docs/provisioners/chef-solo.mdx
rename to website/content/docs/provisioners/chef-solo.mdx
diff --git a/website/pages/docs/provisioners/community-supported.mdx b/website/content/docs/provisioners/community-supported.mdx
similarity index 100%
rename from website/pages/docs/provisioners/community-supported.mdx
rename to website/content/docs/provisioners/community-supported.mdx
diff --git a/website/pages/docs/provisioners/converge.mdx b/website/content/docs/provisioners/converge.mdx
similarity index 100%
rename from website/pages/docs/provisioners/converge.mdx
rename to website/content/docs/provisioners/converge.mdx
diff --git a/website/pages/docs/provisioners/custom.mdx b/website/content/docs/provisioners/custom.mdx
similarity index 100%
rename from website/pages/docs/provisioners/custom.mdx
rename to website/content/docs/provisioners/custom.mdx
diff --git a/website/pages/docs/provisioners/file.mdx b/website/content/docs/provisioners/file.mdx
similarity index 100%
rename from website/pages/docs/provisioners/file.mdx
rename to website/content/docs/provisioners/file.mdx
diff --git a/website/pages/docs/provisioners/index.mdx b/website/content/docs/provisioners/index.mdx
similarity index 100%
rename from website/pages/docs/provisioners/index.mdx
rename to website/content/docs/provisioners/index.mdx
diff --git a/website/pages/docs/provisioners/inspec.mdx b/website/content/docs/provisioners/inspec.mdx
similarity index 97%
rename from website/pages/docs/provisioners/inspec.mdx
rename to website/content/docs/provisioners/inspec.mdx
index 3ff2470b1..3262930c5 100644
--- a/website/pages/docs/provisioners/inspec.mdx
+++ b/website/content/docs/provisioners/inspec.mdx
@@ -16,8 +16,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
@@ -83,21 +83,21 @@ Optional Parameters:
running InSpec. Usage example:
-
+
```json
"inspec_env_vars": [ "FOO=bar" ]
```
-
+
```hcl
inspec_env_vars = [ "FOO=bar" ]
```
-
+
- `command` (string) - The command to invoke InSpec. Defaults to `inspec`.
@@ -106,20 +106,21 @@ Optional Parameters:
not be quoted. Usage example:
-
+
```json
"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..fd7aac131 100644
--- a/website/pages/docs/provisioners/powershell.mdx
+++ b/website/content/docs/provisioners/powershell.mdx
@@ -166,8 +166,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 100%
rename from website/pages/docs/provisioners/puppet-masterless.mdx
rename to website/content/docs/provisioners/puppet-masterless.mdx
diff --git a/website/pages/docs/provisioners/puppet-server.mdx b/website/content/docs/provisioners/puppet-server.mdx
similarity index 100%
rename from website/pages/docs/provisioners/puppet-server.mdx
rename to website/content/docs/provisioners/puppet-server.mdx
diff --git a/website/pages/docs/provisioners/salt-masterless.mdx b/website/content/docs/provisioners/salt-masterless.mdx
similarity index 100%
rename from website/pages/docs/provisioners/salt-masterless.mdx
rename to website/content/docs/provisioners/salt-masterless.mdx
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..0cae525a2 100644
--- a/website/pages/docs/provisioners/shell-local.mdx
+++ b/website/content/docs/provisioners/shell-local.mdx
@@ -69,7 +69,6 @@ build {
-
## Configuration Reference
The reference of available configuration options is listed below. The only
@@ -308,8 +307,6 @@ _must_ be extra careful to `exit 0` when necessary.
## Usage Examples:
-
-
### Windows Host
Example of running a .cmd file on windows:
@@ -338,7 +335,6 @@ provisioner "shell-local" {
-
Contents of "test_cmd.cmd":
echo %SHELLLOCALTEST%
@@ -346,7 +342,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 100%
rename from website/pages/docs/provisioners/shell.mdx
rename to website/content/docs/provisioners/shell.mdx
diff --git a/website/pages/docs/provisioners/windows-restart.mdx b/website/content/docs/provisioners/windows-restart.mdx
similarity index 100%
rename from website/pages/docs/provisioners/windows-restart.mdx
rename to website/content/docs/provisioners/windows-restart.mdx
diff --git a/website/pages/docs/provisioners/windows-shell.mdx b/website/content/docs/provisioners/windows-shell.mdx
similarity index 100%
rename from website/pages/docs/provisioners/windows-shell.mdx
rename to website/content/docs/provisioners/windows-shell.mdx
diff --git a/website/pages/docs/templates/builders.mdx b/website/content/docs/templates/builders.mdx
similarity index 100%
rename from website/pages/docs/templates/builders.mdx
rename to website/content/docs/templates/builders.mdx
diff --git a/website/pages/docs/templates/communicator.mdx b/website/content/docs/templates/communicator.mdx
similarity index 100%
rename from website/pages/docs/templates/communicator.mdx
rename to website/content/docs/templates/communicator.mdx
diff --git a/website/pages/docs/templates/engine.mdx b/website/content/docs/templates/engine.mdx
similarity index 100%
rename from website/pages/docs/templates/engine.mdx
rename to website/content/docs/templates/engine.mdx
diff --git a/website/pages/docs/templates/index.mdx b/website/content/docs/templates/index.mdx
similarity index 100%
rename from website/pages/docs/templates/index.mdx
rename to website/content/docs/templates/index.mdx
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..c30bc283e 100644
--- a/website/pages/docs/templates/post-processors.mdx
+++ b/website/content/docs/templates/post-processors.mdx
@@ -151,23 +151,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 100%
rename from website/pages/docs/templates/provisioners.mdx
rename to website/content/docs/templates/provisioners.mdx
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..ba44a91d1 100644
--- a/website/pages/docs/templates/user-variables.mdx
+++ b/website/content/docs/templates/user-variables.mdx
@@ -195,8 +195,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 +206,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 +220,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 100%
rename from website/pages/docs/terminology.mdx
rename to website/content/docs/terminology.mdx
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 100%
rename from website/pages/guides/automatic-operating-system-installs/autounattend_windows.mdx
rename to website/content/guides/automatic-operating-system-installs/autounattend_windows.mdx
diff --git a/website/pages/guides/automatic-operating-system-installs/index.mdx b/website/content/guides/automatic-operating-system-installs/index.mdx
similarity index 100%
rename from website/pages/guides/automatic-operating-system-installs/index.mdx
rename to website/content/guides/automatic-operating-system-installs/index.mdx
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 100%
rename from website/pages/guides/automatic-operating-system-installs/preseed_ubuntu.mdx
rename to website/content/guides/automatic-operating-system-installs/preseed_ubuntu.mdx
diff --git a/website/pages/guides/hcl/component-object-spec.mdx b/website/content/guides/hcl/component-object-spec.mdx
similarity index 100%
rename from website/pages/guides/hcl/component-object-spec.mdx
rename to website/content/guides/hcl/component-object-spec.mdx
diff --git a/website/pages/guides/hcl/from-json-v1.mdx b/website/content/guides/hcl/from-json-v1.mdx
similarity index 100%
rename from website/pages/guides/hcl/from-json-v1.mdx
rename to website/content/guides/hcl/from-json-v1.mdx
diff --git a/website/pages/guides/hcl/index.mdx b/website/content/guides/hcl/index.mdx
similarity index 100%
rename from website/pages/guides/hcl/index.mdx
rename to website/content/guides/hcl/index.mdx
diff --git a/website/pages/guides/hcl/variables.mdx b/website/content/guides/hcl/variables.mdx
similarity index 99%
rename from website/pages/guides/hcl/variables.mdx
rename to website/content/guides/hcl/variables.mdx
index ada556c12..70e37d11b 100644
--- a/website/pages/guides/hcl/variables.mdx
+++ b/website/content/guides/hcl/variables.mdx
@@ -23,8 +23,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 +207,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 100%
rename from website/pages/guides/index.mdx
rename to website/content/guides/index.mdx
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 100%
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
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 100%
rename from website/pages/guides/packer-on-cicd/build-virtualbox-image.mdx
rename to website/content/guides/packer-on-cicd/build-virtualbox-image.mdx
diff --git a/website/pages/guides/packer-on-cicd/index.mdx b/website/content/guides/packer-on-cicd/index.mdx
similarity index 100%
rename from website/pages/guides/packer-on-cicd/index.mdx
rename to website/content/guides/packer-on-cicd/index.mdx
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..5c5d4769d 100644
--- a/website/pages/guides/packer-on-cicd/pipelineing-builds.mdx
+++ b/website/content/guides/packer-on-cicd/pipelineing-builds.mdx
@@ -280,6 +280,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 +294,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 +344,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 100%
rename from website/pages/guides/packer-on-cicd/trigger-tfe.mdx
rename to website/content/guides/packer-on-cicd/trigger-tfe.mdx
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 100%
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
diff --git a/website/pages/guides/workflow-tips-and-tricks/index.mdx b/website/content/guides/workflow-tips-and-tricks/index.mdx
similarity index 100%
rename from website/pages/guides/workflow-tips-and-tricks/index.mdx
rename to website/content/guides/workflow-tips-and-tricks/index.mdx
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 100%
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
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 100%
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
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 100%
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
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/content/partials/builder/yandex/Config-not-required.mdx b/website/content/partials/builder/yandex/Config-not-required.mdx
new file mode 100644
index 000000000..4482c4745
--- /dev/null
+++ b/website/content/partials/builder/yandex/Config-not-required.mdx
@@ -0,0 +1,32 @@
+
+
+- `service_account_id` (string) - Service account identifier to assign to instance.
+
+- `source_image_folder_id` (string) - The ID of the folder containing the source image.
+
+- `source_image_id` (string) - The source image ID to use to create the new image from.
+
+- `source_image_name` (string) - The source image name to use to create the new image
+ from. Name will be looked up in `source_image_folder_id`.
+
+- `target_image_folder_id` (string) - The ID of the folder to save built image in.
+ This defaults to value of 'folder_id'.
+<<<<<<< HEAD:website/pages/partials/builder/yandex/Config-not-required.mdx
+=======
+
+- `use_ipv4_nat` (bool) - If set to true, then launched instance will have external internet
+ access.
+
+- `use_ipv6` (bool) - Set to true to enable IPv6 for the instance being
+ created. This defaults to `false`, or not enabled.
+
+ -> **Note**: Usage of IPv6 will be available in the future.
+
+- `use_internal_ip` (bool) - If true, use the instance's internal IP address
+ instead of its external IP during building.
+
+- `zone` (string) - The name of the zone to launch the instance. This defaults to `ru-central1-a`.
+
+- `state_timeout` (duration string | ex: "1h5m2s") - The time to wait for instance state changes.
+ Defaults to `5m`.
+>>>>>>> ce92f0ec7 (refactor to mdx remote):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.
-- `