Files
opentf/internal/command/cliconfig/testdata/provider-installation-oci.json
Martin Atkins 6dab83e3bc cliconfig+main: Allow oci_mirror as a new provider installation method
It's now valid to include an oci_mirror block in the provider_installation
block in the CLI configuration, specifying that OpenTofu should try to
install providers from OCI repositories based on a template that maps
from OpenTofu-style provider source addresses into OCI repository
addresses.

The getproviders.Source implementation for this was added in a previous
commit, so this is mainly just wiring it up to the cliconfig layer and
the dependency wiring code in package main.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-03-26 09:52:07 -07:00

21 lines
754 B
JSON

{
"provider_installation": {
"oci_mirror": [
{
"repository_template": "example.com/${hostname}/${namespace}/${type}"
},
{
"repository_template": "example.net/opentofu-registry/${namespace}/${type}",
"include": ["registry.opentofu.org/*/*"]
},
{
"repository_template": "example.net/opentofu-registry/opentofu-namespace/${type}",
"include": ["registry.opentofu.org/opentofu/*"]
},
{
"repository_template": "example.net/opentofu-registry/opentofu-namespace/foo-type",
"include": ["registry.opentofu.org/opentofu/foo"]
}
]
}
}