mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
Remove Leap 15.4 from testing matrices and AMI data sources; remove vestiges of Ubuntu 18.04 testing (#27416)
This commit is contained in:
@@ -49,7 +49,7 @@ globals {
|
||||
sample_attributes = {
|
||||
aws_region = ["us-east-1", "us-west-2"]
|
||||
distro_version_amzn2 = ["2"]
|
||||
distro_version_leap = ["15.4", "15.5"]
|
||||
distro_version_leap = ["15.5"]
|
||||
distro_version_rhel = ["8.9", "9.3"]
|
||||
distro_version_sles = ["v15_sp5_standard"]
|
||||
distro_version_ubuntu = ["20.04", "22.04"]
|
||||
|
||||
@@ -32,7 +32,7 @@ scenario "agent" {
|
||||
edition = ["ce", "ent", "ent.fips1402"]
|
||||
}
|
||||
|
||||
# arm64 AMIs are not offered for Leap 15.4
|
||||
# arm64 AMIs are not offered for Leap
|
||||
exclude {
|
||||
distro = ["leap"]
|
||||
arch = ["arm64"]
|
||||
|
||||
@@ -35,7 +35,7 @@ scenario "autopilot" {
|
||||
edition = ["ce", "ent", "ent.fips1402"]
|
||||
}
|
||||
|
||||
# arm64 AMIs are not offered for Leap 15.4
|
||||
# arm64 AMIs are not offered for Leap
|
||||
exclude {
|
||||
distro = ["leap"]
|
||||
arch = ["arm64"]
|
||||
|
||||
@@ -32,7 +32,7 @@ scenario "proxy" {
|
||||
edition = ["ce", "ent", "ent.fips1402"]
|
||||
}
|
||||
|
||||
# arm64 AMIs are not offered for Leap 15.4
|
||||
# arm64 AMIs are not offered for Leap
|
||||
exclude {
|
||||
distro = ["leap"]
|
||||
arch = ["arm64"]
|
||||
|
||||
@@ -42,7 +42,7 @@ scenario "replication" {
|
||||
edition = ["ce", "ent", "ent.fips1402"]
|
||||
}
|
||||
|
||||
# arm64 AMIs are not offered for Leap 15.4
|
||||
# arm64 AMIs are not offered for Leap
|
||||
exclude {
|
||||
distro = ["leap"]
|
||||
arch = ["arm64"]
|
||||
|
||||
@@ -39,7 +39,7 @@ scenario "seal_ha" {
|
||||
edition = ["ce", "ent", "ent.fips1402"]
|
||||
}
|
||||
|
||||
# arm64 AMIs are not offered for Leap 15.4
|
||||
# arm64 AMIs are not offered for Leap
|
||||
exclude {
|
||||
distro = ["leap"]
|
||||
arch = ["arm64"]
|
||||
|
||||
@@ -32,7 +32,7 @@ scenario "smoke" {
|
||||
edition = ["ce", "ent", "ent.fips1402"]
|
||||
}
|
||||
|
||||
# arm64 AMIs are not offered for Leap 15.4
|
||||
# arm64 AMIs are not offered for Leap
|
||||
exclude {
|
||||
distro = ["leap"]
|
||||
arch = ["arm64"]
|
||||
|
||||
@@ -45,7 +45,7 @@ scenario "upgrade" {
|
||||
edition = ["ce", "ent", "ent.fips1402"]
|
||||
}
|
||||
|
||||
# arm64 AMIs are not offered for Leap 15.4
|
||||
# arm64 AMIs are not offered for Leap
|
||||
exclude {
|
||||
distro = ["leap"]
|
||||
arch = ["arm64"]
|
||||
|
||||
@@ -84,7 +84,7 @@ variable "distro_version_amzn2" {
|
||||
variable "distro_version_leap" {
|
||||
description = "The version of openSUSE leap to use"
|
||||
type = string
|
||||
default = "15.5" // or "15.4"
|
||||
default = "15.5"
|
||||
}
|
||||
|
||||
variable "distro_version_rhel" {
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
# distro_version_amzn2 = "2"
|
||||
|
||||
# distro_version_leap is the version of openSUSE Leap to use for "distro:leap" variants
|
||||
# distro_version_leap = "15.5" // or "15.4"
|
||||
# distro_version_leap = "15.5"
|
||||
|
||||
# distro_version_rhel is the version of RHEL to use for "distro:rhel" variants.
|
||||
# distro_version_rhel = "9.3" // or "8.9"
|
||||
@@ -50,7 +50,7 @@
|
||||
# distro_version_sles = "v15_sp5_standard"
|
||||
|
||||
# distro_version_ubuntu is the version of ubuntu to use for "distro:ubuntu" variants
|
||||
# distro_version_ubuntu = "22.04" // or "20.04", "18.04"
|
||||
# distro_version_ubuntu = "22.04" // or "20.04"
|
||||
|
||||
# tags are a map of tags that will be applied to infrastructure resources that
|
||||
# support tagging.
|
||||
|
||||
@@ -36,7 +36,6 @@ locals {
|
||||
"2" = data.aws_ami.amzn2["x86_64"].id
|
||||
}
|
||||
"leap" = {
|
||||
"15.4" = data.aws_ami.leap_154.id
|
||||
"15.5" = data.aws_ami.leap_155.id
|
||||
}
|
||||
"rhel" = {
|
||||
@@ -47,7 +46,6 @@ locals {
|
||||
"v15_sp5_standard" = data.aws_ami.sles_15_sp5_standard["x86_64"].id
|
||||
}
|
||||
"ubuntu" = {
|
||||
"18.04" = data.aws_ami.ubuntu_1804["x86_64"].id
|
||||
"20.04" = data.aws_ami.ubuntu_2004["x86_64"].id
|
||||
"22.04" = data.aws_ami.ubuntu_2204["x86_64"].id
|
||||
}
|
||||
@@ -55,28 +53,6 @@ locals {
|
||||
}
|
||||
}
|
||||
|
||||
data "aws_ami" "ubuntu_1804" {
|
||||
most_recent = true
|
||||
for_each = local.architectures
|
||||
|
||||
filter {
|
||||
name = "name"
|
||||
values = ["ubuntu/images/hvm-ssd/ubuntu-*-18.04-*-server-*"]
|
||||
}
|
||||
|
||||
filter {
|
||||
name = "virtualization-type"
|
||||
values = ["hvm"]
|
||||
}
|
||||
|
||||
filter {
|
||||
name = "architecture"
|
||||
values = [each.value]
|
||||
}
|
||||
|
||||
owners = [local.canonical_owner_id]
|
||||
}
|
||||
|
||||
data "aws_ami" "ubuntu_2004" {
|
||||
most_recent = true
|
||||
for_each = local.architectures
|
||||
@@ -201,25 +177,6 @@ data "aws_ami" "sles_15_sp5_standard" {
|
||||
owners = [local.sles_owner_id]
|
||||
}
|
||||
|
||||
data "aws_ami" "leap_154" {
|
||||
most_recent = true
|
||||
|
||||
filter {
|
||||
name = "name"
|
||||
values = ["openSUSE-Leap-15.4*"]
|
||||
}
|
||||
|
||||
filter {
|
||||
name = "architecture"
|
||||
# Note: arm64 AMIs are offered for Leap 15.5, but not 15.4. For now we will
|
||||
# only use x86_64 for both in order to not introduce complexity in our matrix
|
||||
# exclusions.
|
||||
values = ["x86_64"]
|
||||
}
|
||||
|
||||
owners = [local.suse_owner_id]
|
||||
}
|
||||
|
||||
data "aws_ami" "leap_155" {
|
||||
most_recent = true
|
||||
|
||||
@@ -230,9 +187,7 @@ data "aws_ami" "leap_155" {
|
||||
|
||||
filter {
|
||||
name = "architecture"
|
||||
# Note: arm64 AMIs are offered for Leap 15.5, but not 15.4. For now we will
|
||||
# only use x86_64 for both in order to not introduce complexity in our matrix
|
||||
# exclusions.
|
||||
# Note: arm64 AMIs are not offered for Leap.
|
||||
values = ["x86_64"]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user