mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-25 09:14:01 -04:00
This adds the new `required_plugins` block to be nested under the packer block.
Example:
```hcl
packer {
required_plugins {
aws = {
version = ">= 2.7.0"
source = "azr/aws"
}
azure = ">= 2.7.0"
}
}
```
For example on darwin_amd64 Packer will install those under :
* "${PACKER_HOME_DIR}/plugin/github.com/azr/amazon/packer-plugin-amazon_2.7.0_x5.0_darwin_amd64"
* "${PACKER_HOME_DIR}/plugin/github.com/hashicorp/azure/packer-plugin-azure_2.7.0_x5.0_darwin_amd64_x5"
+ docs
+ tests
108 lines
2.1 KiB
HCL
108 lines
2.1 KiB
HCL
|
|
source "amazon-ebs" "ubuntu-1604" {
|
|
int = 42
|
|
nested_slice {
|
|
dynamic "tag" {
|
|
for_each = local.standard_tags
|
|
content {
|
|
key = tag.key
|
|
value = tag.value
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
source "virtualbox-iso" "ubuntu-1204" {
|
|
string = "string"
|
|
int = 42
|
|
int64 = 43
|
|
bool = true
|
|
trilean = true
|
|
duration = "10s"
|
|
|
|
map_string_string = {
|
|
a = "b"
|
|
c = "d"
|
|
}
|
|
slice_string = [
|
|
"a",
|
|
"b",
|
|
"c",
|
|
]
|
|
slice_slice_string = [
|
|
["a","b"],
|
|
["c","d"]
|
|
]
|
|
|
|
data_source = data.amazon-ami.test.string
|
|
|
|
nested {
|
|
string = "string"
|
|
int = 42
|
|
int64 = 43
|
|
bool = true
|
|
trilean = true
|
|
duration = "10s"
|
|
map_string_string = {
|
|
a = "b"
|
|
c = "d"
|
|
}
|
|
slice_string = [
|
|
"a",
|
|
"b",
|
|
"c",
|
|
]
|
|
slice_slice_string = [
|
|
["a","b"],
|
|
["c","d"]
|
|
]
|
|
data_source = data.amazon-ami.test.string
|
|
}
|
|
|
|
nested_slice {
|
|
string = "string"
|
|
int = 42
|
|
int64 = 43
|
|
bool = true
|
|
trilean = true
|
|
duration = "10s"
|
|
map_string_string = {
|
|
a = "b"
|
|
c = "d"
|
|
}
|
|
slice_string = [
|
|
"a",
|
|
"b",
|
|
"c",
|
|
]
|
|
slice_slice_string = [
|
|
["a","b"],
|
|
["c","d"]
|
|
]
|
|
data_source = data.amazon-ami.test.string
|
|
}
|
|
|
|
nested_slice {
|
|
string = "string"
|
|
int = 42
|
|
int64 = 43
|
|
bool = true
|
|
trilean = true
|
|
duration = "10s"
|
|
map_string_string = {
|
|
a = "b"
|
|
c = "d"
|
|
}
|
|
slice_string = [
|
|
"a",
|
|
"b",
|
|
"c",
|
|
]
|
|
slice_slice_string = [
|
|
["a","b"],
|
|
["c","d"]
|
|
]
|
|
data_source = data.amazon-ami.test.string
|
|
}
|
|
}
|