mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-28 20:41:21 -05:00
Merge pull request #9455 from hashicorp/fix_9393
docs/builder/google: Add note about boolean values for compute instance metadata
This commit is contained in:
commit
aa91ef7edf
2 changed files with 6 additions and 0 deletions
|
|
@ -128,6 +128,9 @@ type Config struct {
|
|||
// The machine type. Defaults to "n1-standard-1".
|
||||
MachineType string `mapstructure:"machine_type" required:"false"`
|
||||
// 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"`).
|
||||
Metadata map[string]string `mapstructure:"metadata" required:"false"`
|
||||
// Metadata applied to the launched instance. Values are files.
|
||||
MetadataFiles map[string]string `mapstructure:"metadata_files"`
|
||||
|
|
|
|||
|
|
@ -93,6 +93,9 @@
|
|||
- `machine_type` (string) - The machine type. Defaults to "n1-standard-1".
|
||||
|
||||
- `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"`).
|
||||
|
||||
- `metadata_files` (map[string]string) - Metadata applied to the launched instance. Values are files.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue