-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
1,751 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# incus_certificate | ||
|
||
Manages an Incus certificate. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "incus_certificate" "client1" { | ||
name = "client1" | ||
certificate = file("${path.module}/metrics.crt") | ||
} | ||
``` | ||
|
||
## Project Restriction Example | ||
|
||
```hcl | ||
resource "incus_project" "project1" { | ||
name = "project1" | ||
} | ||
resource "incus_certificate" "prometheus" { | ||
name = "prometheus" | ||
description = "Prometheus Node Exporter Access" | ||
restricted = true | ||
projects = [incus_project.project1.name] | ||
type = "metrics" | ||
certificate = file("${path.module}/metrics.crt") | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
* `name` - **Required** - Name of the certificate. | ||
|
||
* `certificate` - **Required** - The certificate. | ||
|
||
* `description` - *Optional* - Description of the certificate. | ||
|
||
* `type` - *Optional* - The type of certificate to create. Can be one of: client, | ||
or metrics. If no type is specified, a client certificate is created. | ||
|
||
* `projects` - *Optional* - List of projects to restrict the certificate to. | ||
|
||
* `restricted` - *Optional* - Restrict the certificate to one or more projects. | ||
|
||
* `remote` - *Optional* - The remote in which the resource will be created. If | ||
not provided, the provider's default remote will be used. | ||
|
||
## Attribute Reference | ||
|
||
The following attributes are exported: | ||
|
||
* `fingerprint` - The fingerprint of the certificate. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# incus_network_integration | ||
|
||
Manage integrations between the local Incus deployment and remote networks hosted on Incus or other platforms. Currently available only for [OVN networks](https://linuxcontainers.org/incus/docs/main/reference/network_ovn/#network-ovn). | ||
|
||
## Basic Example | ||
|
||
```hcl | ||
resource "incus_network_integration" "this" { | ||
name = "ovn-region" | ||
type = "ovn" | ||
config = { | ||
"ovn.northbound_connection" = "tcp:[192.0.2.12]:6645,tcp:[192.0.3.13]:6645,tcp:[192.0.3.14]:6645" | ||
"ovn.southbound_connection" = "tcp:[192.0.2.12]:6646,tcp:[192.0.3.13]:6646,tcp:[192.0.3.14]:6646" | ||
} | ||
} | ||
``` | ||
|
||
## Peer Example | ||
|
||
```hcl | ||
resource "incus_network" "default" { | ||
name = "default" | ||
type = "ovn" | ||
config = { | ||
"ipv4.address" = "192.168.2.0/24" | ||
"ipv4.nat" = "true" | ||
} | ||
} | ||
resource "incus_network_integration" "this" { | ||
name = "ovn-region" | ||
type = "ovn" | ||
config = { | ||
"ovn.northbound_connection" = "tcp:[192.0.2.12]:6645,tcp:[192.0.3.13]:6645,tcp:[192.0.3.14]:6645" | ||
"ovn.southbound_connection" = "tcp:[192.0.2.12]:6646,tcp:[192.0.3.13]:6646,tcp:[192.0.3.14]:6646" | ||
} | ||
} | ||
resource "incus_network_peer" "this" { | ||
name = "ovn-peer" | ||
network = incus_network.default.name | ||
target_integration = incus_network_integration.this.name | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
* `name` - **Required** - Name of the network integration. | ||
|
||
* `type` **Required** - The type of the network integration. Currently, only supports `ovn` type. | ||
|
||
* `description` *Optional* - Description of the network integration. | ||
|
||
* `project` - *Optional* - Name of the project where the network will be created. | ||
|
||
* `remote` - *Optional* - The remote in which the resource will be created. If | ||
not provided, the provider's default remote will be used. | ||
|
||
* `config` - *Optional* - Map of key/value pairs of [network integration config settings](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.