Rename DigitalOcean image variable to os_image

* Rename variable `image` to `os_image` to match the naming
used for the same purpose on other supported platforms (e.g.
AWS, Azure, GCP)
This commit is contained in:
Dalton Hubble
2020-03-24 23:45:31 -07:00
parent e556bc2167
commit 9f702c72d2
5 changed files with 12 additions and 8 deletions

View File

@ -1,6 +1,6 @@
locals {
official_images = ["coreos-stable", "coreos-beta", "coreos-alpha"]
is_official_image = contains(local.official_images, var.image)
is_official_image = contains(local.official_images, var.os_image)
}
# Controller Instance DNS records
@ -42,7 +42,7 @@ resource "digitalocean_droplet" "controllers" {
name = "${var.cluster_name}-controller-${count.index}"
region = var.region
image = var.image
image = var.os_image
size = var.controller_type
# network