Rerun terraform fmt for recent variables
This commit is contained in:
parent
5e4f5de271
commit
9f94ab6bcc
|
@ -47,7 +47,7 @@ variable "os_stream" {
|
||||||
default = "stable"
|
default = "stable"
|
||||||
|
|
||||||
validation {
|
validation {
|
||||||
condition = contains(["stable", "testing", "next"], var.os_stream)
|
condition = contains(["stable", "testing", "next"], var.os_stream)
|
||||||
error_message = "The os_stream must be stable, testing, or next."
|
error_message = "The os_stream must be stable, testing, or next."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -166,7 +166,7 @@ variable "arch" {
|
||||||
default = "amd64"
|
default = "amd64"
|
||||||
|
|
||||||
validation {
|
validation {
|
||||||
condition = var.arch == "amd64" || var.arch == "arm64"
|
condition = var.arch == "amd64" || var.arch == "arm64"
|
||||||
error_message = "The arch must be amd64 or arm64."
|
error_message = "The arch must be amd64 or arm64."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@ variable "os_stream" {
|
||||||
default = "stable"
|
default = "stable"
|
||||||
|
|
||||||
validation {
|
validation {
|
||||||
condition = contains(["stable", "testing", "next"], var.os_stream)
|
condition = contains(["stable", "testing", "next"], var.os_stream)
|
||||||
error_message = "The os_stream must be stable, testing, or next."
|
error_message = "The os_stream must be stable, testing, or next."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,7 @@ variable "arch" {
|
||||||
default = "amd64"
|
default = "amd64"
|
||||||
|
|
||||||
validation {
|
validation {
|
||||||
condition = var.arch == "amd64" || var.arch == "arm64"
|
condition = var.arch == "amd64" || var.arch == "arm64"
|
||||||
error_message = "The arch must be amd64 or arm64."
|
error_message = "The arch must be amd64 or arm64."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
locals {
|
locals {
|
||||||
# Pick a Flatcar Linux AMI
|
# Pick a Flatcar Linux AMI
|
||||||
# flatcar-stable -> Flatcar Linux AMI
|
# flatcar-stable -> Flatcar Linux AMI
|
||||||
ami_id = data.aws_ami.flatcar.image_id
|
ami_id = data.aws_ami.flatcar.image_id
|
||||||
channel = split("-", var.os_image)[1]
|
channel = split("-", var.os_image)[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ variable "os_image" {
|
||||||
default = "flatcar-stable"
|
default = "flatcar-stable"
|
||||||
|
|
||||||
validation {
|
validation {
|
||||||
condition = contains(["flatcar-stable", "flatcar-beta", "flatcar-alpha", "flatcar-edge"], var.os_image)
|
condition = contains(["flatcar-stable", "flatcar-beta", "flatcar-alpha", "flatcar-edge"], var.os_image)
|
||||||
error_message = "The os_image must be flatcar-stable, flatcar-beta, flatcar-alpha, or flatcar-edge."
|
error_message = "The os_image must be flatcar-stable, flatcar-beta, flatcar-alpha, or flatcar-edge."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
locals {
|
locals {
|
||||||
# Pick a Flatcar Linux AMI
|
# Pick a Flatcar Linux AMI
|
||||||
# flatcar-stable -> Flatcar Linux AMI
|
# flatcar-stable -> Flatcar Linux AMI
|
||||||
ami_id = data.aws_ami.flatcar.image_id
|
ami_id = data.aws_ami.flatcar.image_id
|
||||||
channel = split("-", var.os_image)[1]
|
channel = split("-", var.os_image)[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ variable "os_image" {
|
||||||
default = "flatcar-stable"
|
default = "flatcar-stable"
|
||||||
|
|
||||||
validation {
|
validation {
|
||||||
condition = contains(["flatcar-stable", "flatcar-beta", "flatcar-alpha", "flatcar-edge"], var.os_image)
|
condition = contains(["flatcar-stable", "flatcar-beta", "flatcar-alpha", "flatcar-edge"], var.os_image)
|
||||||
error_message = "The os_image must be flatcar-stable, flatcar-beta, flatcar-alpha, or flatcar-edge."
|
error_message = "The os_image must be flatcar-stable, flatcar-beta, flatcar-alpha, or flatcar-edge."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ variable "os_image" {
|
||||||
default = "flatcar-stable"
|
default = "flatcar-stable"
|
||||||
|
|
||||||
validation {
|
validation {
|
||||||
condition = contains(["flatcar-stable", "flatcar-beta", "flatcar-alpha", "flatcar-edge"], var.os_image)
|
condition = contains(["flatcar-stable", "flatcar-beta", "flatcar-alpha", "flatcar-edge"], var.os_image)
|
||||||
error_message = "The os_image must be flatcar-stable, flatcar-beta, flatcar-alpha, or flatcar-edge."
|
error_message = "The os_image must be flatcar-stable, flatcar-beta, flatcar-alpha, or flatcar-edge."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ variable "os_image" {
|
||||||
default = "flatcar-stable"
|
default = "flatcar-stable"
|
||||||
|
|
||||||
validation {
|
validation {
|
||||||
condition = contains(["flatcar-stable", "flatcar-beta", "flatcar-alpha", "flatcar-edge"], var.os_image)
|
condition = contains(["flatcar-stable", "flatcar-beta", "flatcar-alpha", "flatcar-edge"], var.os_image)
|
||||||
error_message = "The os_image must be flatcar-stable, flatcar-beta, flatcar-alpha, or flatcar-edge."
|
error_message = "The os_image must be flatcar-stable, flatcar-beta, flatcar-alpha, or flatcar-edge."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ variable "os_stream" {
|
||||||
default = "stable"
|
default = "stable"
|
||||||
|
|
||||||
validation {
|
validation {
|
||||||
condition = contains(["stable", "testing", "next"], var.os_stream)
|
condition = contains(["stable", "testing", "next"], var.os_stream)
|
||||||
error_message = "The os_stream must be stable, testing, or next."
|
error_message = "The os_stream must be stable, testing, or next."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ variable "os_channel" {
|
||||||
description = "Channel for a Flatcar Linux (flatcar-stable, flatcar-beta, flatcar-alpha, flatcar-edge)"
|
description = "Channel for a Flatcar Linux (flatcar-stable, flatcar-beta, flatcar-alpha, flatcar-edge)"
|
||||||
|
|
||||||
validation {
|
validation {
|
||||||
condition = contains(["flatcar-stable", "flatcar-beta", "flatcar-alpha", "flatcar-edge"], var.os_channel)
|
condition = contains(["flatcar-stable", "flatcar-beta", "flatcar-alpha", "flatcar-edge"], var.os_channel)
|
||||||
error_message = "The os_channel must be flatcar-stable, flatcar-beta, flatcar-alpha, or flatcar-edge."
|
error_message = "The os_channel must be flatcar-stable, flatcar-beta, flatcar-alpha, or flatcar-edge."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ variable "os_stream" {
|
||||||
default = "stable"
|
default = "stable"
|
||||||
|
|
||||||
validation {
|
validation {
|
||||||
condition = contains(["stable", "testing", "next"], var.os_stream)
|
condition = contains(["stable", "testing", "next"], var.os_stream)
|
||||||
error_message = "The os_stream must be stable, testing, or next."
|
error_message = "The os_stream must be stable, testing, or next."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@ variable "os_stream" {
|
||||||
default = "stable"
|
default = "stable"
|
||||||
|
|
||||||
validation {
|
validation {
|
||||||
condition = contains(["stable", "testing", "next"], var.os_stream)
|
condition = contains(["stable", "testing", "next"], var.os_stream)
|
||||||
error_message = "The os_stream must be stable, testing, or next."
|
error_message = "The os_stream must be stable, testing, or next."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue