diff --git a/CHANGELOG.md b/CHANGELOG.md index cad724715..9d17f7d99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ IMPROVEMENTS: * builder/amazon-instance: EBS AMIs can be used as a source. [GH-1453] * builder/digitalocean: Can set API URL endpoint. [GH-1448] + * builder/digitalocean: Region supports variables. [GH-1452] * builder/parallels/all Path to tools ISO is calculated automatically. [GH-1455] * builder/qemu: Can specify "none" acceleration type. [GH-1395] * builder/qemu: Can specify "tcg" acceleration type. [GH-1395] diff --git a/builder/digitalocean/builder.go b/builder/digitalocean/builder.go index 282681636..73a72252d 100644 --- a/builder/digitalocean/builder.go +++ b/builder/digitalocean/builder.go @@ -158,6 +158,9 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) { } templates := map[string]*string{ + "region": &b.config.Region, + "size": &b.config.Size, + "image": &b.config.Image, "client_id": &b.config.ClientID, "api_key": &b.config.APIKey, "api_url": &b.config.APIURL,