packer.io prefix removal, html extension remove for in-code errors
This commit is contained in:
parent
7555536f7a
commit
9165be87da
|
@ -8,8 +8,8 @@ Issues on GitHub are intended to be related to bugs or feature requests, so we
|
||||||
recommend using our other community resources instead of asking here if you
|
recommend using our other community resources instead of asking here if you
|
||||||
have a question.
|
have a question.
|
||||||
|
|
||||||
- Packer Guides: https://www.packer.io/guides/index.html
|
- Packer Guides: https://www.packer.io/guides
|
||||||
- Discussion List: https://groups.google.com/group/packer-tool
|
- Discussion List: https://groups.google.com/group/packer-tool
|
||||||
- Any other questions can be sent to the packer section of the HashiCorp
|
- Any other questions can be sent to the packer section of the HashiCorp
|
||||||
forum: https://discuss.hashicorp.com/c/packer
|
forum: https://discuss.hashicorp.com/c/packer
|
||||||
- Packer community links: https://www.packer.io/community.html
|
- Packer community links: https://www.packer.io/community
|
||||||
|
|
|
@ -6,19 +6,18 @@ labels: communicator-question
|
||||||
|
|
||||||
Got one of the following errors ? See if the related guides can help.
|
Got one of the following errors ? See if the related guides can help.
|
||||||
|
|
||||||
* `Waiting for WinRM to become available` ?
|
- `Waiting for WinRM to become available` ?
|
||||||
|
|
||||||
- See our basic WinRm Packer guide: https://www.packer.io/guides/automatic-operating-system-installs/autounattend_windows.html
|
- See our basic WinRm Packer guide: https://www.packer.io/guides/automatic-operating-system-installs/autounattend_windows
|
||||||
|
|
||||||
* `Waiting for SSH to become available` ?
|
- `Waiting for SSH to become available` ?
|
||||||
|
|
||||||
- See our basic SSH Packer guide: https://www.packer.io/guides/automatic-operating-system-installs/preseed_ubuntu.html
|
|
||||||
|
|
||||||
|
- See our basic SSH Packer guide: https://www.packer.io/guides/automatic-operating-system-installs/preseed_ubuntu
|
||||||
|
|
||||||
Issues on GitHub are intended to be related to bugs or feature requests, so we recommend using our other community resources instead of asking here if you have a question.
|
Issues on GitHub are intended to be related to bugs or feature requests, so we recommend using our other community resources instead of asking here if you have a question.
|
||||||
|
|
||||||
- Packer Guides: https://www.packer.io/guides/index.html
|
- Packer Guides: https://www.packer.io/guides
|
||||||
- Discussion List: https://groups.google.com/group/packer-tool
|
- Discussion List: https://groups.google.com/group/packer-tool
|
||||||
- Any other questions can be sent to the packer section of the HashiCorp
|
- Any other questions can be sent to the packer section of the HashiCorp
|
||||||
forum: https://discuss.hashicorp.com/c/packer
|
forum: https://discuss.hashicorp.com/c/packer
|
||||||
- Packer community links: https://www.packer.io/community.html
|
- Packer community links: https://www.packer.io/community
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -118,7 +118,7 @@ fmt-examples:
|
||||||
# source files.
|
# source files.
|
||||||
generate: install-gen-deps ## Generate dynamically generated code
|
generate: install-gen-deps ## Generate dynamically generated code
|
||||||
@echo "==> removing autogenerated markdown..."
|
@echo "==> removing autogenerated markdown..."
|
||||||
@find website/source/ -type f | xargs grep -l '^<!-- Code generated' | xargs rm
|
@find website/pages/ -type f | xargs grep -l '^<!-- Code generated' | xargs rm
|
||||||
@echo "==> removing autogenerated code..."
|
@echo "==> removing autogenerated code..."
|
||||||
@find post-processor common helper template builder provisioner -type f | xargs grep -l '^// Code generated' | xargs rm
|
@find post-processor common helper template builder provisioner -type f | xargs grep -l '^// Code generated' | xargs rm
|
||||||
go generate ./...
|
go generate ./...
|
||||||
|
|
|
@ -171,13 +171,13 @@ type AlicloudImageConfig struct {
|
||||||
// images and then create the target images, otherwise, the creation will
|
// images and then create the target images, otherwise, the creation will
|
||||||
// fail. The default value is false. Check `image_name` and
|
// fail. The default value is false. Check `image_name` and
|
||||||
// `image_copy_names` options for names of target images. If
|
// `image_copy_names` options for names of target images. If
|
||||||
// [-force](https://packer.io/docs/commands/build#force) option is
|
// [-force](/docs/commands/build#force) option is
|
||||||
// provided in `build` command, this option can be omitted and taken as
|
// provided in `build` command, this option can be omitted and taken as
|
||||||
// true.
|
// true.
|
||||||
AlicloudImageForceDelete bool `mapstructure:"image_force_delete" required:"false"`
|
AlicloudImageForceDelete bool `mapstructure:"image_force_delete" required:"false"`
|
||||||
// If this value is true, when delete the duplicated existing images, the
|
// If this value is true, when delete the duplicated existing images, the
|
||||||
// source snapshots of those images will be delete either. If
|
// source snapshots of those images will be delete either. If
|
||||||
// [-force](https://packer.io/docs/commands/build#force) option is
|
// [-force](/docs/commands/build#force) option is
|
||||||
// provided in `build` command, this option can be omitted and taken as
|
// provided in `build` command, this option can be omitted and taken as
|
||||||
// true.
|
// true.
|
||||||
AlicloudImageForceDeleteSnapshots bool `mapstructure:"image_force_delete_snapshots" required:"false"`
|
AlicloudImageForceDeleteSnapshots bool `mapstructure:"image_force_delete_snapshots" required:"false"`
|
||||||
|
@ -194,7 +194,7 @@ type AlicloudImageConfig struct {
|
||||||
AlicloudImageTags map[string]string `mapstructure:"tags" required:"false"`
|
AlicloudImageTags map[string]string `mapstructure:"tags" required:"false"`
|
||||||
// Same as [`tags`](#tags) but defined as a singular repeatable block
|
// Same as [`tags`](#tags) but defined as a singular repeatable block
|
||||||
// containing a `name` and a `value` field. In HCL2 mode the
|
// containing a `name` and a `value` field. In HCL2 mode the
|
||||||
// [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
// [`dynamic_block`](/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
||||||
// will allow you to create those programatically.
|
// will allow you to create those programatically.
|
||||||
AlicloudImageTag hcl2template.NameValues `mapstructure:"tag" required:"false"`
|
AlicloudImageTag hcl2template.NameValues `mapstructure:"tag" required:"false"`
|
||||||
AlicloudDiskDevices `mapstructure:",squash"`
|
AlicloudDiskDevices `mapstructure:",squash"`
|
||||||
|
|
|
@ -161,12 +161,12 @@ type Config struct {
|
||||||
//filter, but will cause Packer to fail if the `source_ami` does not exist.
|
//filter, but will cause Packer to fail if the `source_ami` does not exist.
|
||||||
SourceAmiFilter awscommon.AmiFilterOptions `mapstructure:"source_ami_filter" required:"false"`
|
SourceAmiFilter awscommon.AmiFilterOptions `mapstructure:"source_ami_filter" required:"false"`
|
||||||
// Tags to apply to the volumes that are *launched*. This is a [template
|
// Tags to apply to the volumes that are *launched*. This is a [template
|
||||||
// engine](https://packer.io/docs/templates/engine), see [Build template
|
// engine](/docs/templates/engine), see [Build template
|
||||||
// data](#build-template-data) for more information.
|
// data](#build-template-data) for more information.
|
||||||
RootVolumeTags map[string]string `mapstructure:"root_volume_tags" required:"false"`
|
RootVolumeTags map[string]string `mapstructure:"root_volume_tags" required:"false"`
|
||||||
// Same as [`root_volume_tags`](#root_volume_tags) but defined as a
|
// Same as [`root_volume_tags`](#root_volume_tags) but defined as a
|
||||||
// singular block containing a `name` and a `value` field. In HCL2 mode the
|
// singular block containing a `name` and a `value` field. In HCL2 mode the
|
||||||
// [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
// [`dynamic_block`](/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
||||||
// will allow you to create those programatically.
|
// will allow you to create those programatically.
|
||||||
RootVolumeTag hcl2template.NameValues `mapstructure:"root_volume_tag" required:"false"`
|
RootVolumeTag hcl2template.NameValues `mapstructure:"root_volume_tag" required:"false"`
|
||||||
// what architecture to use when registering the final AMI; valid options
|
// what architecture to use when registering the final AMI; valid options
|
||||||
|
|
|
@ -44,7 +44,7 @@ func (v *VaultAWSEngineOptions) Empty() bool {
|
||||||
// AccessConfig is for common configuration related to AWS access
|
// AccessConfig is for common configuration related to AWS access
|
||||||
type AccessConfig struct {
|
type AccessConfig struct {
|
||||||
// The access key used to communicate with AWS. [Learn how to set this]
|
// The access key used to communicate with AWS. [Learn how to set this]
|
||||||
// (https://packer.io/docs/builders/amazon#specifying-amazon-credentials). On EBS, this
|
// (/docs/builders/amazon#specifying-amazon-credentials). On EBS, this
|
||||||
// is not required if you are using `use_vault_aws_engine` for
|
// is not required if you are using `use_vault_aws_engine` for
|
||||||
// authentication instead.
|
// authentication instead.
|
||||||
AccessKey string `mapstructure:"access_key" required:"true"`
|
AccessKey string `mapstructure:"access_key" required:"true"`
|
||||||
|
@ -79,7 +79,7 @@ type AccessConfig struct {
|
||||||
// When chroot building, this value is guessed from environment.
|
// When chroot building, this value is guessed from environment.
|
||||||
RawRegion string `mapstructure:"region" required:"true"`
|
RawRegion string `mapstructure:"region" required:"true"`
|
||||||
// The secret key used to communicate with AWS. [Learn how to set
|
// The secret key used to communicate with AWS. [Learn how to set
|
||||||
// this](https://packer.io/docs/builders/amazon#specifying-amazon-credentials). This is not required
|
// this](/docs/builders/amazon#specifying-amazon-credentials). This is not required
|
||||||
// if you are using `use_vault_aws_engine` for authentication instead.
|
// if you are using `use_vault_aws_engine` for authentication instead.
|
||||||
SecretKey string `mapstructure:"secret_key" required:"true"`
|
SecretKey string `mapstructure:"secret_key" required:"true"`
|
||||||
// Set to true if you want to skip
|
// Set to true if you want to skip
|
||||||
|
|
|
@ -17,11 +17,11 @@ type AMIConfig struct {
|
||||||
// The name of the resulting AMI that will appear when managing AMIs in the
|
// The name of the resulting AMI that will appear when managing AMIs in the
|
||||||
// AWS console or via APIs. This must be unique. To help make this unique,
|
// AWS console or via APIs. This must be unique. To help make this unique,
|
||||||
// use a function like timestamp (see [template
|
// use a function like timestamp (see [template
|
||||||
// engine](https://packer.io/docs/templates/engine) for more info).
|
// engine](/docs/templates/engine) for more info).
|
||||||
AMIName string `mapstructure:"ami_name" required:"true"`
|
AMIName string `mapstructure:"ami_name" required:"true"`
|
||||||
// The description to set for the resulting
|
// 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](https://packer.io/docs/templates/engine), see [Build template
|
// [template engine](/docs/templates/engine), see [Build template
|
||||||
// data](#build-template-data) for more information.
|
// data](#build-template-data) for more information.
|
||||||
AMIDescription string `mapstructure:"ami_description" required:"false"`
|
AMIDescription string `mapstructure:"ami_description" required:"false"`
|
||||||
// The type of virtualization for the AMI
|
// The type of virtualization for the AMI
|
||||||
|
@ -48,12 +48,12 @@ type AMIConfig struct {
|
||||||
// validation of the ami_regions configuration option. Default false.
|
// validation of the ami_regions configuration option. Default false.
|
||||||
AMISkipRegionValidation bool `mapstructure:"skip_region_validation" required:"false"`
|
AMISkipRegionValidation bool `mapstructure:"skip_region_validation" required:"false"`
|
||||||
// Tags applied to the AMI. This is a
|
// Tags applied to the AMI. This is a
|
||||||
// [template engine](https://packer.io/docs/templates/engine), see [Build template
|
// [template engine](/docs/templates/engine), see [Build template
|
||||||
// data](#build-template-data) for more information.
|
// data](#build-template-data) for more information.
|
||||||
AMITags map[string]string `mapstructure:"tags" required:"false"`
|
AMITags map[string]string `mapstructure:"tags" required:"false"`
|
||||||
// Same as [`tags`](#tags) but defined as a singular repeatable block
|
// Same as [`tags`](#tags) but defined as a singular repeatable block
|
||||||
// containing a `name` and a `value` field. In HCL2 mode the
|
// containing a `name` and a `value` field. In HCL2 mode the
|
||||||
// [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
// [`dynamic_block`](/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
||||||
// will allow you to create those programatically.
|
// will allow you to create those programatically.
|
||||||
AMITag hcl2template.NameValues `mapstructure:"tag" required:"false"`
|
AMITag hcl2template.NameValues `mapstructure:"tag" required:"false"`
|
||||||
// Enable enhanced networking (ENA but not SriovNetSupport) on
|
// Enable enhanced networking (ENA but not SriovNetSupport) on
|
||||||
|
@ -119,12 +119,12 @@ type AMIConfig struct {
|
||||||
AMISkipBuildRegion bool `mapstructure:"skip_save_build_region"`
|
AMISkipBuildRegion bool `mapstructure:"skip_save_build_region"`
|
||||||
// Tags to apply to snapshot.
|
// Tags to apply to snapshot.
|
||||||
// They will override AMI tags if already applied to snapshot. This is a
|
// They will override AMI tags if already applied to snapshot. This is a
|
||||||
// [template engine](https://packer.io/docs/templates/engine), see [Build template
|
// [template engine](/docs/templates/engine), see [Build template
|
||||||
// data](#build-template-data) for more information.
|
// data](#build-template-data) for more information.
|
||||||
SnapshotTags map[string]string `mapstructure:"snapshot_tags" required:"false"`
|
SnapshotTags map[string]string `mapstructure:"snapshot_tags" required:"false"`
|
||||||
// Same as [`snapshot_tags`](#snapshot_tags) but defined as a singular
|
// Same as [`snapshot_tags`](#snapshot_tags) but defined as a singular
|
||||||
// repeatable block containing a `name` and a `value` field. In HCL2 mode the
|
// repeatable block containing a `name` and a `value` field. In HCL2 mode the
|
||||||
// [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
// [`dynamic_block`](/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
||||||
// will allow you to create those programatically.
|
// will allow you to create those programatically.
|
||||||
SnapshotTag hcl2template.NameValues `mapstructure:"snapshot_tag" required:"false"`
|
SnapshotTag hcl2template.NameValues `mapstructure:"snapshot_tag" required:"false"`
|
||||||
// A list of account IDs that have
|
// A list of account IDs that have
|
||||||
|
|
|
@ -90,7 +90,7 @@ type RunConfig struct {
|
||||||
// *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
|
// signal yourself through your final provisioner. You can do this with a
|
||||||
// [windows-shell
|
// [windows-shell
|
||||||
// provisioner](https://www.packer.io/docs/provisioners/windows-shell).
|
// provisioner](/docs/provisioners/windows-shell).
|
||||||
// Note that Packer will still wait for the instance to be stopped, and
|
// 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
|
// failing to send the stop signal yourself, when you have set this flag to
|
||||||
// `true`, will cause a timeout.
|
// `true`, will cause a timeout.
|
||||||
|
@ -184,12 +184,12 @@ type RunConfig struct {
|
||||||
// `security_group_ids` take precedence over this.
|
// `security_group_ids` take precedence over this.
|
||||||
SecurityGroupFilter SecurityGroupFilterOptions `mapstructure:"security_group_filter" required:"false"`
|
SecurityGroupFilter SecurityGroupFilterOptions `mapstructure:"security_group_filter" required:"false"`
|
||||||
// Tags to apply to the instance that is that is *launched* to create the
|
// Tags to apply to the instance that is that is *launched* to create the
|
||||||
// EBS volumes. This is a [template engine](https://packer.io/docs/templates/engine),
|
// EBS volumes. This is a [template engine](/docs/templates/engine),
|
||||||
// see [Build template data](#build-template-data) for more information.
|
// see [Build template data](#build-template-data) for more information.
|
||||||
RunTags map[string]string `mapstructure:"run_tags" required:"false"`
|
RunTags map[string]string `mapstructure:"run_tags" required:"false"`
|
||||||
// Same as [`run_tags`](#run_tags) but defined as a singular repeatable
|
// Same as [`run_tags`](#run_tags) but defined as a singular repeatable
|
||||||
// block containing a `name` and a `value` field. In HCL2 mode the
|
// block containing a `name` and a `value` field. In HCL2 mode the
|
||||||
// [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
// [`dynamic_block`](/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
||||||
// will allow you to create those programatically.
|
// will allow you to create those programatically.
|
||||||
RunTag hcl2template.NameValues `mapstructure:"run_tag" required:"false"`
|
RunTag hcl2template.NameValues `mapstructure:"run_tag" required:"false"`
|
||||||
// The ID (not the name) of the security
|
// The ID (not the name) of the security
|
||||||
|
@ -286,7 +286,7 @@ type RunConfig struct {
|
||||||
SpotTags map[string]string `mapstructure:"spot_tags" required:"false"`
|
SpotTags map[string]string `mapstructure:"spot_tags" required:"false"`
|
||||||
// Same as [`spot_tags`](#spot_tags) but defined as a singular repeatable block
|
// Same as [`spot_tags`](#spot_tags) but defined as a singular repeatable block
|
||||||
// containing a `name` and a `value` field. In HCL2 mode the
|
// containing a `name` and a `value` field. In HCL2 mode the
|
||||||
// [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
// [`dynamic_block`](/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
||||||
// will allow you to create those programatically.
|
// will allow you to create those programatically.
|
||||||
SpotTag hcl2template.NameValues `mapstructure:"spot_tag" required:"false"`
|
SpotTag hcl2template.NameValues `mapstructure:"spot_tag" required:"false"`
|
||||||
// Filters used to populate the `subnet_id` field.
|
// Filters used to populate the `subnet_id` field.
|
||||||
|
|
|
@ -52,7 +52,7 @@ type Config struct {
|
||||||
// Tags to apply to the volumes that are *launched* to create the AMI.
|
// 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
|
// These tags are *not* applied to the resulting AMI unless they're
|
||||||
// duplicated in `tags`. This is a [template
|
// duplicated in `tags`. This is a [template
|
||||||
// engine](https://packer.io/docs/templates/engine), see [Build template
|
// engine](/docs/templates/engine), see [Build template
|
||||||
// data](#build-template-data) for more information.
|
// data](#build-template-data) for more information.
|
||||||
VolumeRunTags awscommon.TagMap `mapstructure:"run_volume_tags"`
|
VolumeRunTags awscommon.TagMap `mapstructure:"run_volume_tags"`
|
||||||
// Relevant only to Windows guests: If you set this flag, we'll add clauses
|
// Relevant only to Windows guests: If you set this flag, we'll add clauses
|
||||||
|
|
|
@ -58,7 +58,7 @@ type Config struct {
|
||||||
// Tags to apply to the volumes that are *launched* to create the AMI.
|
// 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
|
// These tags are *not* applied to the resulting AMI unless they're
|
||||||
// duplicated in `tags`. This is a [template
|
// duplicated in `tags`. This is a [template
|
||||||
// engine](https://packer.io/docs/templates/engine), see [Build template
|
// engine](/docs/templates/engine), see [Build template
|
||||||
// data](#build-template-data) for more information.
|
// data](#build-template-data) for more information.
|
||||||
VolumeRunTags awscommon.TagMap `mapstructure:"run_volume_tags"`
|
VolumeRunTags awscommon.TagMap `mapstructure:"run_volume_tags"`
|
||||||
// what architecture to use when registering the
|
// what architecture to use when registering the
|
||||||
|
|
|
@ -12,12 +12,12 @@ import (
|
||||||
type BlockDevice struct {
|
type BlockDevice struct {
|
||||||
awscommon.BlockDevice `mapstructure:",squash"`
|
awscommon.BlockDevice `mapstructure:",squash"`
|
||||||
// Tags to apply to the volume. These are retained after the builder
|
// Tags to apply to the volume. These are retained after the builder
|
||||||
// completes. This is a [template engine](https://packer.io/docs/templates/engine), see
|
// completes. This is a [template engine](/docs/templates/engine), see
|
||||||
// [Build template data](#build-template-data) for more information.
|
// [Build template data](#build-template-data) for more information.
|
||||||
Tags map[string]string `mapstructure:"tags" required:"false"`
|
Tags map[string]string `mapstructure:"tags" required:"false"`
|
||||||
// Same as [`tags`](#tags) but defined as a singular repeatable block
|
// Same as [`tags`](#tags) but defined as a singular repeatable block
|
||||||
// containing a `name` and a `value` field. In HCL2 mode the
|
// containing a `name` and a `value` field. In HCL2 mode the
|
||||||
// [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
// [`dynamic_block`](/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
||||||
// will allow you to create those programatically.
|
// will allow you to create those programatically.
|
||||||
Tag hcl2template.NameValues `mapstructure:"tag" required:"false"`
|
Tag hcl2template.NameValues `mapstructure:"tag" required:"false"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ type Config struct {
|
||||||
// create EBS Volumes. These tags will *not* appear in the tags of the
|
// create EBS Volumes. These tags will *not* appear in the tags of the
|
||||||
// resulting EBS volumes unless they're duplicated under `tags` in the
|
// resulting EBS volumes unless they're duplicated under `tags` in the
|
||||||
// `ebs_volumes` setting. This is a [template
|
// `ebs_volumes` setting. This is a [template
|
||||||
// engine](https://packer.io/docs/templates/engine), see [Build template
|
// engine](/docs/templates/engine), see [Build template
|
||||||
// data](#build-template-data) for more information.
|
// 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
|
||||||
|
@ -69,7 +69,7 @@ type Config struct {
|
||||||
// Same as [`run_volume_tags`](#run_volume_tags) but defined as a singular
|
// Same as [`run_volume_tags`](#run_volume_tags) but defined as a singular
|
||||||
// repeatable block containing a `name` and a `value` field. In HCL2 mode
|
// repeatable block containing a `name` and a `value` field. In HCL2 mode
|
||||||
// the
|
// the
|
||||||
// [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
// [`dynamic_block`](/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
||||||
// will allow you to create those programatically.
|
// will allow you to create those programatically.
|
||||||
VolumeRunTag hcl2template.NameValues `mapstructure:"run_volume_tag"`
|
VolumeRunTag hcl2template.NameValues `mapstructure:"run_volume_tag"`
|
||||||
|
|
||||||
|
|
|
@ -245,7 +245,7 @@ type Config struct {
|
||||||
AzureTags map[string]*string `mapstructure:"azure_tags" required:"false"`
|
AzureTags map[string]*string `mapstructure:"azure_tags" required:"false"`
|
||||||
// Same as [`azure_tags`](#azure_tags) but defined as a singular repeatable block
|
// Same as [`azure_tags`](#azure_tags) but defined as a singular repeatable block
|
||||||
// containing a `name` and a `value` field. In HCL2 mode the
|
// containing a `name` and a `value` field. In HCL2 mode the
|
||||||
// [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
// [`dynamic_block`](/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
||||||
// will allow you to create those programatically.
|
// will allow you to create those programatically.
|
||||||
AzureTag hcl2template.NameValues `mapstructure:"azure_tag" required:"false"`
|
AzureTag hcl2template.NameValues `mapstructure:"azure_tag" required:"false"`
|
||||||
// Resource group under which the final artifact will be stored.
|
// Resource group under which the final artifact will be stored.
|
||||||
|
|
|
@ -36,12 +36,12 @@ type Config struct {
|
||||||
Commit bool `mapstructure:"commit" required:"true"`
|
Commit bool `mapstructure:"commit" required:"true"`
|
||||||
|
|
||||||
// The directory inside container to mount temp directory from host server
|
// The directory inside container to mount temp directory from host server
|
||||||
// for work [file provisioner](https://packer.io/docs/provisioners/file). This defaults
|
// for work [file provisioner](/docs/provisioners/file). This defaults
|
||||||
// to c:/packer-files on windows and /packer-files on other systems.
|
// to c:/packer-files on windows and /packer-files on other systems.
|
||||||
ContainerDir string `mapstructure:"container_dir" required:"false"`
|
ContainerDir string `mapstructure:"container_dir" required:"false"`
|
||||||
// Throw away the container when the build is complete. This is useful for
|
// Throw away the container when the build is complete. This is useful for
|
||||||
// the [artifice
|
// the [artifice
|
||||||
// post-processor](https://www.packer.io/docs/post-processors/artifice).
|
// post-processor](/docs/post-processors/artifice).
|
||||||
Discard bool `mapstructure:"discard" required:"true"`
|
Discard bool `mapstructure:"discard" required:"true"`
|
||||||
// Username (UID) to run remote commands with. You can also set the group
|
// Username (UID) to run remote commands with. You can also set the group
|
||||||
// name/ID if you want: (UID or UID:GID). You may need this if you get
|
// name/ID if you want: (UID or UID:GID). You may need this if you get
|
||||||
|
|
|
@ -65,7 +65,7 @@ type Config struct {
|
||||||
ImageTags map[string]string `mapstructure:"image_tags" required:"false"`
|
ImageTags map[string]string `mapstructure:"image_tags" required:"false"`
|
||||||
// Same as [`image_tags`](#image_tags) but defined as a singular repeatable
|
// Same as [`image_tags`](#image_tags) but defined as a singular repeatable
|
||||||
// block containing a `name` and a `value` field. In HCL2 mode the
|
// block containing a `name` and a `value` field. In HCL2 mode the
|
||||||
// [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
// [`dynamic_block`](/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
||||||
// will allow you to create those programatically.
|
// will allow you to create those programatically.
|
||||||
ImageTag hcl2template.NameValues `mapstructure:"image_tag" required:"false"`
|
ImageTag hcl2template.NameValues `mapstructure:"image_tag" required:"false"`
|
||||||
// The service of the resulting image.
|
// The service of the resulting image.
|
||||||
|
@ -79,7 +79,7 @@ type Config struct {
|
||||||
VmTags map[string]string `mapstructure:"vm_tags" required:"false"`
|
VmTags map[string]string `mapstructure:"vm_tags" required:"false"`
|
||||||
// Same as [`vm_tags`](#vm_tags) but defined as a singular repeatable block
|
// Same as [`vm_tags`](#vm_tags) but defined as a singular repeatable block
|
||||||
// containing a `name` and a `value` field. In HCL2 mode the
|
// containing a `name` and a `value` field. In HCL2 mode the
|
||||||
// [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
// [`dynamic_block`](/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
||||||
// will allow you to create those programatically.
|
// will allow you to create those programatically.
|
||||||
VmTag hcl2template.NameValues `mapstructure:"vm_tag" required:"false"`
|
VmTag hcl2template.NameValues `mapstructure:"vm_tag" required:"false"`
|
||||||
// The name of the created disk.
|
// The name of the created disk.
|
||||||
|
|
|
@ -86,7 +86,7 @@ type TencentCloudRunConfig struct {
|
||||||
RunTags map[string]string `mapstructure:"run_tags" required:"false"`
|
RunTags map[string]string `mapstructure:"run_tags" required:"false"`
|
||||||
// Same as [`run_tags`](#run_tags) but defined as a singular repeatable
|
// Same as [`run_tags`](#run_tags) but defined as a singular repeatable
|
||||||
// block containing a `name` and a `value` field. In HCL2 mode the
|
// block containing a `name` and a `value` field. In HCL2 mode the
|
||||||
// [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
// [`dynamic_block`](/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
||||||
// will allow you to create those programatically.
|
// will allow you to create those programatically.
|
||||||
RunTag hcl2template.NameValues `mapstructure:"run_tag" required:"false"`
|
RunTag hcl2template.NameValues `mapstructure:"run_tag" required:"false"`
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ type SourceMachineConfig struct {
|
||||||
MachineTags map[string]string `mapstructure:"source_machine_tags" required:"false"`
|
MachineTags map[string]string `mapstructure:"source_machine_tags" required:"false"`
|
||||||
// Same as [`source_machine_tags`](#source_machine_tags) but defined as a
|
// Same as [`source_machine_tags`](#source_machine_tags) but defined as a
|
||||||
// singular block containing a `name` and a `value` field. In HCL2 mode the
|
// singular block containing a `name` and a `value` field. In HCL2 mode the
|
||||||
// [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
// [`dynamic_block`](/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
||||||
// will allow you to create those programatically.
|
// will allow you to create those programatically.
|
||||||
MachineTag hcl2template.NameValues `mapstructure:"source_machine_tag" required:"false"`
|
MachineTag hcl2template.NameValues `mapstructure:"source_machine_tag" required:"false"`
|
||||||
// Whether or not the firewall
|
// Whether or not the firewall
|
||||||
|
|
|
@ -39,7 +39,7 @@ type TargetImageConfig struct {
|
||||||
ImageTags map[string]string `mapstructure:"image_tags" required:"false"`
|
ImageTags map[string]string `mapstructure:"image_tags" required:"false"`
|
||||||
// Same as [`image_tags`](#image_tags) but defined as a singular repeatable
|
// Same as [`image_tags`](#image_tags) but defined as a singular repeatable
|
||||||
// block containing a `name` and a `value` field. In HCL2 mode the
|
// block containing a `name` and a `value` field. In HCL2 mode the
|
||||||
// [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
// [`dynamic_block`](/docs/configuration/from-1.5/expressions#dynamic-blocks)
|
||||||
// will allow you to create those programatically.
|
// will allow you to create those programatically.
|
||||||
ImageTag hcl2template.NameValues `mapstructure:"image_tag" required:"false"`
|
ImageTag hcl2template.NameValues `mapstructure:"image_tag" required:"false"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ type VBoxManageConfig struct {
|
||||||
// array of strings, where each string represents a single argument on the
|
// array of strings, where each string represents a single argument on the
|
||||||
// command-line to `VBoxManage` (but excluding `VBoxManage` itself). Each
|
// command-line to `VBoxManage` (but excluding `VBoxManage` itself). Each
|
||||||
// arg is treated as a [configuration
|
// arg is treated as a [configuration
|
||||||
// template](https://packer.io/docs/templates/engine), where the `Name` variable is
|
// template](/docs/templates/engine), where the `Name` variable is
|
||||||
// replaced with the VM name. More details on how to use `VBoxManage` are
|
// replaced with the VM name. More details on how to use `VBoxManage` are
|
||||||
// below.
|
// below.
|
||||||
VBoxManage [][]string `mapstructure:"vboxmanage" required:"false"`
|
VBoxManage [][]string `mapstructure:"vboxmanage" required:"false"`
|
||||||
|
|
|
@ -22,7 +22,7 @@ type ExportConfig struct {
|
||||||
// argument. Currently, exporting the build VM (with ovftool) is only
|
// argument. Currently, exporting the build VM (with ovftool) is only
|
||||||
// supported when building on ESXi e.g. when `remote_type` is set to
|
// supported when building on ESXi e.g. when `remote_type` is set to
|
||||||
// `esx5`. See the [Building on a Remote vSphere
|
// `esx5`. See the [Building on a Remote vSphere
|
||||||
// Hypervisor](https://packer.io/docs/builders/vmware-iso#building-on-a-remote-vsphere-hypervisor)
|
// Hypervisor](/docs/builders/vmware-iso#building-on-a-remote-vsphere-hypervisor)
|
||||||
// section below for more info.
|
// section below for more info.
|
||||||
OVFToolOptions []string `mapstructure:"ovftool_options" required:"false"`
|
OVFToolOptions []string `mapstructure:"ovftool_options" required:"false"`
|
||||||
// Defaults to `false`. When enabled, Packer will not export the VM. Useful
|
// Defaults to `false`. When enabled, Packer will not export the VM. Useful
|
||||||
|
@ -30,7 +30,7 @@ type ExportConfig struct {
|
||||||
// VM. Currently, exporting the build VM is only supported when building on
|
// VM. Currently, exporting the build VM is only supported when building on
|
||||||
// ESXi e.g. when `remote_type` is set to `esx5`. See the [Building on a
|
// ESXi e.g. when `remote_type` is set to `esx5`. See the [Building on a
|
||||||
// Remote vSphere
|
// Remote vSphere
|
||||||
// Hypervisor](https://packer.io/docs/builders/vmware-iso#building-on-a-remote-vsphere-hypervisor)
|
// Hypervisor](/docs/builders/vmware-iso#building-on-a-remote-vsphere-hypervisor)
|
||||||
// section below for more info.
|
// section below for more info.
|
||||||
SkipExport bool `mapstructure:"skip_export" required:"false"`
|
SkipExport bool `mapstructure:"skip_export" required:"false"`
|
||||||
// Set this to true if you would like to keep
|
// Set this to true if you would like to keep
|
||||||
|
|
|
@ -13,7 +13,7 @@ type ToolsConfig struct {
|
||||||
ToolsUploadFlavor string `mapstructure:"tools_upload_flavor" required:"false"`
|
ToolsUploadFlavor string `mapstructure:"tools_upload_flavor" required:"false"`
|
||||||
// The path in the VM to upload the VMware tools. This only takes effect if
|
// The path in the VM to upload the VMware tools. This only takes effect if
|
||||||
// `tools_upload_flavor` is non-empty. This is a [configuration
|
// `tools_upload_flavor` is non-empty. This is a [configuration
|
||||||
// template](https://packer.io/docs/templates/engine) that has a single valid variable:
|
// template](/docs/templates/engine) that has a single valid variable:
|
||||||
// `Flavor`, which will be the value of `tools_upload_flavor`. By default
|
// `Flavor`, which will be the value of `tools_upload_flavor`. By default
|
||||||
// the upload path is set to `{{.Flavor}}.iso`. This setting is not used
|
// the upload path is set to `{{.Flavor}}.iso`. This setting is not used
|
||||||
// when `remote_type` is `esx5`.
|
// when `remote_type` is `esx5`.
|
||||||
|
|
|
@ -107,7 +107,7 @@ type Config struct {
|
||||||
VMName string `mapstructure:"vm_name" required:"false"`
|
VMName string `mapstructure:"vm_name" required:"false"`
|
||||||
|
|
||||||
VMXDiskTemplatePath string `mapstructure:"vmx_disk_template_path"`
|
VMXDiskTemplatePath string `mapstructure:"vmx_disk_template_path"`
|
||||||
// Path to a [configuration template](https://packer.io/docs/templates/engine) that
|
// Path to a [configuration template](/docs/templates/engine) that
|
||||||
// defines the contents of the virtual machine VMX file for VMware. The
|
// defines the contents of the virtual machine VMX file for VMware. The
|
||||||
// engine has access to the template variables `{{ .DiskNumber }}` and
|
// engine has access to the template variables `{{ .DiskNumber }}` and
|
||||||
// `{{ .DiskName }}`.
|
// `{{ .DiskName }}`.
|
||||||
|
|
|
@ -50,7 +50,7 @@ func (c *VersionCommand) Run(args []string) int {
|
||||||
if info.Outdated {
|
if info.Outdated {
|
||||||
c.Ui.Say(fmt.Sprintf(
|
c.Ui.Say(fmt.Sprintf(
|
||||||
"\nYour version of Packer is out of date! The latest version\n"+
|
"\nYour version of Packer is out of date! The latest version\n"+
|
||||||
"is %s. You can update by downloading from www.packer.io/downloads.html",
|
"is %s. You can update by downloading from www.packer.io/downloads",
|
||||||
info.Latest))
|
info.Latest))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,7 @@ import (
|
||||||
// ]
|
// ]
|
||||||
// ```
|
// ```
|
||||||
// For more examples of various boot commands, see the sample projects from our
|
// For more examples of various boot commands, see the sample projects from our
|
||||||
// [community templates page](https://packer.io/community-tools#templates).
|
// [community templates page](/community-tools#templates).
|
||||||
type BootConfig struct {
|
type BootConfig struct {
|
||||||
// Time to wait after sending a group of key pressses. The value of this
|
// Time to wait after sending a group of key pressses. The value of this
|
||||||
// should be a duration. Examples are `5s` and `1m30s` which will cause
|
// should be a duration. Examples are `5s` and `1m30s` which will cause
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
// is attached as the first floppy device. The summary size of the listed files
|
// is attached as the first floppy device. The summary size of the listed files
|
||||||
// must not exceed 1.44 MB. The supported ways to move large files into the OS
|
// must not exceed 1.44 MB. The supported ways to move large files into the OS
|
||||||
// are using `http_directory` or [the file
|
// are using `http_directory` or [the file
|
||||||
// provisioner](https://packer.io/docs/provisioners/file).
|
// provisioner](/docs/provisioners/file).
|
||||||
type FloppyConfig struct {
|
type FloppyConfig struct {
|
||||||
// A list of files to place onto a floppy disk that is attached when the VM
|
// A list of files to place onto a floppy disk that is attached when the VM
|
||||||
// is booted. Currently, no support exists for creating sub-directories on
|
// is booted. Currently, no support exists for creating sub-directories on
|
||||||
|
|
|
@ -894,7 +894,7 @@ func scpUploadFile(dst string, src io.Reader, w io.Writer, r *bufio.Reader, fi *
|
||||||
if _, err := io.Copy(tf, src); err != nil {
|
if _, err := io.Copy(tf, src); err != nil {
|
||||||
return fmt.Errorf("Error copying input data into local temporary "+
|
return fmt.Errorf("Error copying input data into local temporary "+
|
||||||
"file. Check that TEMPDIR has enough space. Please see "+
|
"file. Check that TEMPDIR has enough space. Please see "+
|
||||||
"https://www.packer.io/docs/other/environment-variables.html#tmpdir"+
|
"https://www.packer.io/docs/other/environment-variables#tmpdir"+
|
||||||
"for more info. Error: %s", err)
|
"for more info. Error: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ func (v *Variable) Value() (cty.Value, *hcl.Diagnostic) {
|
||||||
Severity: hcl.DiagError,
|
Severity: hcl.DiagError,
|
||||||
Summary: fmt.Sprintf("Unset variable %q", v.Name),
|
Summary: fmt.Sprintf("Unset variable %q", v.Name),
|
||||||
Detail: "A used variable must be set or have a default value; see " +
|
Detail: "A used variable must be set or have a default value; see " +
|
||||||
"https://packer.io/docs/configuration/from-1.5/syntax.html for " +
|
"https://packer.io/docs/configuration/from-1.5/syntax for " +
|
||||||
"details.",
|
"details.",
|
||||||
Context: v.Range.Ptr(),
|
Context: v.Range.Ptr(),
|
||||||
}
|
}
|
||||||
|
|
|
@ -328,7 +328,7 @@ func funcGenSed(ctx *Context) interface{} {
|
||||||
return func(expression string, inputString string) (string, error) {
|
return func(expression string, inputString string) (string, error) {
|
||||||
return "", errors.New("template function `sed` is deprecated " +
|
return "", errors.New("template function `sed` is deprecated " +
|
||||||
"use `replace` or `replace_all` instead." +
|
"use `replace` or `replace_all` instead." +
|
||||||
"Documentation: https://www.packer.io/docs/templates/engine.html")
|
"Documentation: https://www.packer.io/docs/templates/engine")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue