828120eb13
Add terraform resources and configs for: - artifactapi_local_pypi (pypi-internal) - artifactapi_local_rpm (rpm-internal) - artifactapi_local_terraform (terraform-unkin, was missing from module) - artifactapi_remote_pypi (pypi.org upstream) - artifactapi_virtual pypi merging pypi-internal + pypi remote Wire up config.hcl, variables, and terragrunt inputs for all new types.
67 lines
2.2 KiB
HCL
67 lines
2.2 KiB
HCL
locals {
|
|
config_files = fileset(".", "**/*.yaml")
|
|
|
|
all_configs = {
|
|
for file_path in local.config_files :
|
|
file_path => yamldecode(file(file_path))
|
|
}
|
|
|
|
config = {
|
|
remote_alpine = {
|
|
for file_path, content in local.all_configs :
|
|
trimsuffix(basename(file_path), ".yaml") => content
|
|
if startswith(file_path, "remote_alpine/")
|
|
}
|
|
remote_docker = {
|
|
for file_path, content in local.all_configs :
|
|
trimsuffix(basename(file_path), ".yaml") => content
|
|
if startswith(file_path, "remote_docker/")
|
|
}
|
|
remote_generic = {
|
|
for file_path, content in local.all_configs :
|
|
trimsuffix(basename(file_path), ".yaml") => content
|
|
if startswith(file_path, "remote_generic/")
|
|
}
|
|
remote_goproxy = {
|
|
for file_path, content in local.all_configs :
|
|
trimsuffix(basename(file_path), ".yaml") => content
|
|
if startswith(file_path, "remote_goproxy/")
|
|
}
|
|
remote_helm = {
|
|
for file_path, content in local.all_configs :
|
|
trimsuffix(basename(file_path), ".yaml") => content
|
|
if startswith(file_path, "remote_helm/")
|
|
}
|
|
remote_pypi = {
|
|
for file_path, content in local.all_configs :
|
|
trimsuffix(basename(file_path), ".yaml") => content
|
|
if startswith(file_path, "remote_pypi/")
|
|
}
|
|
remote_rpm = {
|
|
for file_path, content in local.all_configs :
|
|
trimsuffix(basename(file_path), ".yaml") => content
|
|
if startswith(file_path, "remote_rpm/")
|
|
}
|
|
local_terraform = {
|
|
for file_path, content in local.all_configs :
|
|
trimsuffix(basename(file_path), ".yaml") => content
|
|
if startswith(file_path, "local_terraform/")
|
|
}
|
|
local_pypi = {
|
|
for file_path, content in local.all_configs :
|
|
trimsuffix(basename(file_path), ".yaml") => content
|
|
if startswith(file_path, "local_pypi/")
|
|
}
|
|
local_rpm = {
|
|
for file_path, content in local.all_configs :
|
|
trimsuffix(basename(file_path), ".yaml") => content
|
|
if startswith(file_path, "local_rpm/")
|
|
}
|
|
virtual = {
|
|
for file_path, content in local.all_configs :
|
|
trimsuffix(basename(file_path), ".yaml") => content
|
|
if startswith(file_path, "virtual/")
|
|
}
|
|
}
|
|
}
|