mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-05-25 10:02:16 -04:00
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>
21 lines
754 B
JSON
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"]
|
|
}
|
|
]
|
|
}
|
|
} |