9da2fc4b8b
Rather than assuming a short sleep will work, we instead wait until netcat is listening of the socket. We've also configured the netcat listener to persist after the first connection, which allows Vault and us to check the connection without the process closing. As we implemented this we also ran into AWS issues in us-east-1 and us-west-2, so we've changed our deploy regions until those issues are resolved. Signed-off-by: Ryan Cragun <me@ryan.ec>
26 lines
683 B
HCL
26 lines
683 B
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
terraform {
|
|
required_providers {
|
|
enos = {
|
|
source = "app.terraform.io/hashicorp-qti/enos"
|
|
version = ">= 0.2.3"
|
|
}
|
|
}
|
|
}
|
|
|
|
data "enos_artifactory_item" "vault" {
|
|
username = var.artifactory_username
|
|
token = var.artifactory_token
|
|
name = local.artifact_name
|
|
host = var.artifactory_host
|
|
repo = var.artifactory_repo
|
|
path = var.edition == "oss" ? "vault/*" : "vault-enterprise/*"
|
|
properties = tomap({
|
|
"commit" = var.revision
|
|
"product-name" = var.edition == "oss" ? "vault" : "vault-enterprise"
|
|
"product-version" = local.artifact_version
|
|
})
|
|
}
|