Skip to content

Commit 869102a

Browse files
committed
Add docs related to affinity_strategy
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
1 parent 939aa77 commit 869102a

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

docs/data-sources/node.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "hypercore_node Data Source - hypercore"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# hypercore_node (Data Source)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Optional
19+
20+
- `peer_id` (Number)
21+
22+
### Read-Only
23+
24+
- `nodes` (Attributes List) (see [below for nested schema](#nestedatt--nodes))
25+
26+
<a id="nestedatt--nodes"></a>
27+
### Nested Schema for `nodes`
28+
29+
Read-Only:
30+
31+
- `backplane_ip` (String)
32+
- `lan_ip` (String)
33+
- `peer_id` (Number)
34+
- `uuid` (String)

docs/data-sources/vm.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,23 @@ Optional:
4747

4848
Read-Only:
4949

50+
- `affinity_strategy` (Object) VM node affinity. (see [below for nested schema](#nestedatt--vms--affinity_strategy))
5051
- `description` (String)
5152
- `disks` (Attributes List) List of disks (see [below for nested schema](#nestedatt--vms--disks))
5253
- `name` (String)
5354
- `power_state` (String)
5455
- `uuid` (String)
5556

57+
<a id="nestedatt--vms--affinity_strategy"></a>
58+
### Nested Schema for `vms.affinity_strategy`
59+
60+
Read-Only:
61+
62+
- `backup_node_uuid` (String)
63+
- `preferred_node_uuid` (String)
64+
- `strict_affinity` (Boolean)
65+
66+
5667
<a id="nestedatt--vms--disks"></a>
5768
### Nested Schema for `vms.disks`
5869

docs/resources/vm.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ output "vm_uuid" {
5858

5959
### Optional
6060

61+
- `affinity_strategy` (Object) VM node affinity. (see [below for nested schema](#nestedatt--affinity_strategy))
6162
- `clone` (Object) Clone options if the VM is being created as a clone. The `source_vm_uuid` is the UUID of the VM used for cloning, <br>`user_data` and `meta_data` are used for the cloud init data. (see [below for nested schema](#nestedatt--clone))
6263
- `description` (String) Description of this VM
6364
- `group` (String) Group/tag to create this VM in
@@ -68,6 +69,16 @@ output "vm_uuid" {
6869

6970
- `id` (String) HypercoreVM identifier
7071

72+
<a id="nestedatt--affinity_strategy"></a>
73+
### Nested Schema for `affinity_strategy`
74+
75+
Optional:
76+
77+
- `backup_node_uuid` (String)
78+
- `preferred_node_uuid` (String)
79+
- `strict_affinity` (Boolean)
80+
81+
7182
<a id="nestedatt--clone"></a>
7283
### Nested Schema for `clone`
7384

0 commit comments

Comments
 (0)