mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
Add our initial Enos integration tests to Vault. The Enos scenario workflow will automatically be run on branches that are created from the `hashicorp/vault` repository. See the README.md in ./enos a full description of how to compose and execute scenarios locally. * Simplify the metadata build workflow jobs * Automatically determine the Go version from go.mod * Add formatting check for Enos integration scenarios * Add Enos smoke and upgrade integration scenarios * Add Consul backend matrix support * Add Ubuntu and RHEL distro support * Add Vault edition support * Add Vault architecture support * Add Vault builder support * Add Vault Shamir and awskms auto-unseal support * Add Raft storage support * Add Raft auto-join voter verification * Add Vault version verification * Add Vault seal verification * Add in-place upgrade support for all variants * Add four scenario variants to CI. These test a maximal distribution of the aforementioned variants with the `linux/amd64` Vault install bundle. Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Rebecca Willett <rwillett@hashicorp.com> Co-authored-by: Jaymala <jaymalasinha@gmail.com>
39 lines
754 B
HCL
39 lines
754 B
HCL
terraform {
|
|
required_providers {
|
|
enos = {
|
|
source = "hashicorp.com/qti/enos"
|
|
}
|
|
}
|
|
}
|
|
|
|
variable "bundle_path" {
|
|
type = string
|
|
default = "/tmp/vault.zip"
|
|
}
|
|
|
|
variable "build_tags" {
|
|
type = list(string)
|
|
description = "The build tags to pass to the Go compiler"
|
|
}
|
|
|
|
variable "goarch" {
|
|
type = string
|
|
description = "The Go architecture target"
|
|
default = "amd64"
|
|
}
|
|
|
|
variable "goos" {
|
|
type = string
|
|
description = "The Go OS target"
|
|
default = "linux"
|
|
}
|
|
|
|
resource "enos_local_exec" "build" {
|
|
content = templatefile("${path.module}/templates/build.sh", {
|
|
bundle_path = var.bundle_path,
|
|
build_tags = join(" ", var.build_tags)
|
|
goarch = var.goarch
|
|
goos = var.goos
|
|
})
|
|
}
|