Files
opentf/internal/command/cliconfig/testdata/provider-installation-oci-valueerror
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

11 lines
396 B
Plaintext

provider_installation {
oci_mirror {
# The following is invalid in a way that we can only detect
# with known values, because strings containing only digits
# can convert to numbers automatically for addition, but
# the real hostname we use for detecting this does not
# meet that criteria.
repository_template = "example.com/${hostname + 1}/${namespace}/${type}"
}
}