Files
Juana De La Cuesta 4a75d2de63 Adjust the servers to be always linux instances (#25172)
* func: add possibility of having different binaries for server and clients

* style: rename binaries modules

* docs: update comments

* fix: correct the token input variable for fetch binaries
2025-02-24 13:09:57 +01:00

34 lines
771 B
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
terraform {
required_providers {
enos = {
source = "registry.terraform.io/hashicorp-forge/enos"
}
}
}
module fetch_artifact {
for_each = toset(distinct(var.oss))
source = "../fetch_artifactory"
artifactory_credentials = {
username = var.artifactory_username
token = var.artifactory_token
}
artifactory_host = var.artifactory_host
artifactory_repo = var.artifactory_repo
binary_config = {
edition = var.edition
os = each.value
product_version = var.product_version
arch = var.arch
}
download_binary = var.download_binaries
download_binary_path = "${var.download_binaries_path}/${each.value}"
}