mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-23 08:21:43 -04:00
Merge pull request #6334 from rickard-von-essen/di-docs
digitalocean: artifact should include build region and fixed docs
This commit is contained in:
@@ -111,6 +111,7 @@ func (s *stepSnapshot) Run(_ context.Context, state multistep.StateBag) multiste
|
||||
ui.Error(err.Error())
|
||||
return multistep.ActionHalt
|
||||
}
|
||||
snapshotRegions = append(snapshotRegions, c.Region)
|
||||
|
||||
log.Printf("Snapshot image ID: %d", imageId)
|
||||
state.Put("snapshot_image_id", imageId)
|
||||
|
||||
@@ -73,9 +73,8 @@ builder.
|
||||
for the droplet being created. This defaults to `false`, or not enabled.
|
||||
|
||||
- `snapshot_name` (string) - The name of the resulting snapshot that will
|
||||
appear in your account. This must be unique. To help make this unique, use a
|
||||
function like `timestamp` (see [configuration
|
||||
templates](/docs/templates/engine.html) for more info)
|
||||
appear in your account. Defaults to "packer-{{timestamp}}" (see
|
||||
[configuration templates](/docs/templates/engine.html) for more info).
|
||||
|
||||
- `snapshot_regions` (array of strings) - The regions of the resulting snapshot that will
|
||||
appear in your account.
|
||||
@@ -98,7 +97,7 @@ access tokens:
|
||||
{
|
||||
"type": "digitalocean",
|
||||
"api_token": "YOUR API KEY",
|
||||
"image": "ubuntu-14-04-x64",
|
||||
"image": "ubuntu-16-04-x64",
|
||||
"region": "nyc3",
|
||||
"size": "512mb",
|
||||
"ssh_username": "root"
|
||||
|
||||
Reference in New Issue
Block a user