Skip to content

Commit c8d1bba

Browse files
committed
provider: Support multiple remote URLS
Signed-off-by: Fabian Mettler <fabian@mettler.cc>
1 parent 83d67f1 commit c8d1bba

35 files changed

Lines changed: 371 additions & 158 deletions

docs/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ provider "incus" {
3939
default_remote = "local"
4040
4141
remote {
42-
name = "local"
43-
address = "unix://"
42+
name = "local"
43+
addresses = ["unix://"]
4444
}
4545
4646
remote {
47-
name = "incus-server-2"
48-
address = "https://10.1.2.8"
49-
token = "token"
47+
name = "incus-server-2"
48+
addresses = ["https://10.1.2.8"]
49+
token = "token"
5050
}
5151
}
5252
```
@@ -77,10 +77,10 @@ The following arguments are supported:
7777

7878
The `remote` block supports:
7979

80-
* `address` - *Optional* - The address of the Incus remote.
81-
8280
* `name` - *Required* - The name of the Incus remote.
8381

82+
* `addresses` - *Optional* - The addresses of the Incus remote. Multiple addresses can be provided for clustered remotes. If omitted, the provider uses the remote definition from the local Incus config.
83+
8484
* `protocol` - *Optional* - The server protocol to use. Valid values are `incus`, `oci`, or `simplestreams`. Defaults to `incus`.
8585

8686
* `credentials_helper` - *Optional* - Credential helper executable used for OCI registry authentication. Only valid when `protocol` is set to `oci`.
@@ -103,7 +103,7 @@ It is possible to define a single `remote` through environment variables.
103103
The required variables are:
104104

105105
* `INCUS_REMOTE` - The name of the remote.
106-
* `INCUS_ADDR` - The address of the Incus remote.
106+
* `INCUS_ADDR` - The address of the Incus remote. Multiple addresses can be provided as a comma-separated string.
107107
* `INCUS_PROTOCOL` - The server protocol to use.
108108
* `INCUS_AUTHENTICATION_TYPE` - Server authentication type.
109109
* `INCUS_TOKEN` - The trust token of the Incus remote.

go.mod

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)