mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-08 04:02:25 -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>
11 lines
396 B
Plaintext
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}"
|
|
}
|
|
}
|