2021-01-11 14:10:47 -05:00
|
|
|
module.exports = [
|
|
|
|
{
|
|
|
|
source: '/docs/installation',
|
|
|
|
destination: '/docs/install',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/command-line/machine-readable',
|
|
|
|
destination: '/docs/commands',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/command-line/introduction',
|
|
|
|
destination: '/docs/commands',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/templates/introduction',
|
|
|
|
destination: '/docs/templates',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/builders/azure-setup',
|
|
|
|
destination: '/docs/builders/azure',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/templates/veewee-to-packer',
|
|
|
|
destination: '/guides/veewee-to-packer',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/extend/developing-plugins',
|
|
|
|
destination: '/docs/extending/plugins',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/extending/developing-plugins',
|
|
|
|
destination: '/docs/extending/plugins',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/extend/builder',
|
|
|
|
destination: '/docs/extending/custom-builders',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/getting-started/setup',
|
|
|
|
destination: '/docs/getting-started/install',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/other/community',
|
|
|
|
destination: '/community-tools',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/downloads-community',
|
|
|
|
destination: '/community-tools',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/platforms',
|
|
|
|
destination: '/docs/builders',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/intro/platforms',
|
|
|
|
destination: '/docs/builders',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/templates/configuration-templates',
|
2021-01-27 09:08:59 -05:00
|
|
|
destination: '/docs/templates/legacy_json_templates/engine',
|
2021-01-11 14:10:47 -05:00
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/machine-readable/:path*',
|
|
|
|
destination: '/docs/commands',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/command-line/:path*',
|
|
|
|
destination: '/docs/commands/:path*',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/extend/:path*',
|
|
|
|
destination: '/docs/extending/:path*',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/intro/getting-started',
|
|
|
|
destination: 'https://learn.hashicorp.com/packer/getting-started/install',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/intro/getting-started/install',
|
|
|
|
destination: 'https://learn.hashicorp.com/packer/getting-started/install',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/intro/getting-started/build-image',
|
|
|
|
destination:
|
|
|
|
'https://learn.hashicorp.com/packer/getting-started/build-image',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/intro/getting-started/provision',
|
|
|
|
destination: 'https://learn.hashicorp.com/packer/getting-started/provision',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/intro/getting-started/parallel-builds',
|
|
|
|
destination:
|
|
|
|
'https://learn.hashicorp.com/packer/getting-started/parallel-builds',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/intro/getting-started/vagrant',
|
|
|
|
destination: 'https://learn.hashicorp.com/packer/getting-started/vagrant',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/intro/getting-started/next',
|
|
|
|
destination: 'https://learn.hashicorp.com/packer/getting-started/next ',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/basics/terminology',
|
|
|
|
destination: '/docs/terminology',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/docs/other/:path*',
|
|
|
|
destination: '/docs/:path*',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
2021-01-15 12:18:39 -05:00
|
|
|
source: '/docs/configuration/from-1.5/:path*/overview',
|
|
|
|
destination: '/docs/templates/hcl_templates/:path*',
|
2021-01-11 14:10:47 -05:00
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
2021-01-15 12:18:39 -05:00
|
|
|
source: '/docs/from-1.5/:path*',
|
|
|
|
destination: '/docs/templates/hcl_templates/:path*',
|
|
|
|
permanent: true,
|
|
|
|
},
|
2021-01-11 14:10:47 -05:00
|
|
|
{
|
2021-01-14 17:38:28 -05:00
|
|
|
source: '/docs/templates/hcl_templates/:path*/overview',
|
2021-01-15 12:18:39 -05:00
|
|
|
destination: '/docs/templates/hcl_templates/:path*',
|
2021-01-11 14:10:47 -05:00
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
2021-01-15 15:46:24 -05:00
|
|
|
source: '/docs/builders/amazon-:path',
|
2021-01-11 14:10:47 -05:00
|
|
|
destination: '/docs/builders/amazon/:path*',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
2021-01-15 15:46:24 -05:00
|
|
|
source: '/docs/builders/azure-:path',
|
2021-01-11 14:10:47 -05:00
|
|
|
destination: '/docs/builders/azure/:path*',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
2021-01-15 15:46:24 -05:00
|
|
|
source: '/docs/builders/hyperv-:path',
|
2021-01-11 14:10:47 -05:00
|
|
|
destination: '/docs/builders/hyperv/:path*',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
2021-01-15 15:46:24 -05:00
|
|
|
source: '/docs/builders/oracle-:path',
|
2021-01-11 14:10:47 -05:00
|
|
|
destination: '/docs/builders/oracle/:path*',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
2021-01-15 15:46:24 -05:00
|
|
|
source: '/docs/builders/osc-:path',
|
2021-01-11 14:10:47 -05:00
|
|
|
destination: '/docs/builders/outscale/:path*',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
2021-01-15 15:46:24 -05:00
|
|
|
source: '/docs/builders/parallels-:path',
|
2021-01-11 14:10:47 -05:00
|
|
|
destination: '/docs/builders/parallels/:path*',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
2021-01-15 15:46:24 -05:00
|
|
|
source: '/docs/builders/virtualbox-:path',
|
2021-01-11 14:10:47 -05:00
|
|
|
destination: '/docs/builders/virtualbox/:path*',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
2021-01-15 15:46:24 -05:00
|
|
|
source: '/docs/builders/vmware-:path',
|
2021-01-11 14:10:47 -05:00
|
|
|
destination: '/docs/builders/vmware/:path*',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
2021-01-15 15:46:24 -05:00
|
|
|
source: '/docs/builders/vsphere-:path',
|
2021-01-11 14:10:47 -05:00
|
|
|
destination: '/docs/builders/vmware/vsphere-:path*',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
// disallow '.html' or '/index.html' in favor of cleaner, simpler paths
|
|
|
|
{ source: '/:path*/index', destination: '/:path*', permanent: true },
|
|
|
|
{ source: '/:path*.html', destination: '/:path*', permanent: true },
|
|
|
|
]
|