Update index.html.md.erb
This commit is contained in:
parent
4c3fa0ef26
commit
1d066082a5
|
@ -54,17 +54,17 @@ EOF
|
|||
## Building blocks can be split in files
|
||||
|
||||
Currently Packer offers the `source` and the `build` root blocks. These two
|
||||
building blocks can be defined in any order an a `build` can import one or more
|
||||
building blocks can be defined in any order and a `build` can import one or more
|
||||
`source`. Usually a `source` defines what we currently call a builder and a
|
||||
`build` can apply multiple provisioning steps to a source. For example:
|
||||
|
||||
```hcl
|
||||
# folder/sources.pkr.hcl
|
||||
sources "amazon-ebs" "example-1" {
|
||||
source "amazon-ebs" "example-1" {
|
||||
ami_name = "example-1-ami"
|
||||
}
|
||||
|
||||
sources "amazon-ebs" "example-2" {
|
||||
source "amazon-ebs" "example-2" {
|
||||
ami_name = "example-2-ami"
|
||||
}
|
||||
```
|
||||
|
@ -73,8 +73,8 @@ sources "amazon-ebs" "example-2" {
|
|||
# folder/build.pkr.hcl
|
||||
build {
|
||||
sources = [
|
||||
"sources.amazon-ebs.example-1",
|
||||
"sources.amazon-ebs.example-2"
|
||||
"source.amazon-ebs.example-1",
|
||||
"source.amazon-ebs.example-2"
|
||||
]
|
||||
|
||||
provisioner "shell" {
|
||||
|
|
Loading…
Reference in New Issue