-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [Docs] update terraform related doc (2261 and new 2957)
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 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
47 changes: 47 additions & 0 deletions
47
docs/content/manual/_incoming/2957-Terraform-Harvester-Provider-for-v1.1.0
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,47 @@ | ||
--- | ||
title: Terraform Harvester Provider for v1.1.0 | ||
--- | ||
|
||
* Related issues: [#2957](https://github.com/harvester/harvester/issues/2957) [BUG] Terraform Harvester Provider for v1.1.0 | ||
|
||
** Harvester Version >= `v1.1.0`** | ||
|
||
## Category: | ||
* Terraform | ||
|
||
## Verification Steps | ||
|
||
|
||
1. Install Harvester with any nodes | ||
1. Install terraform-harvester-provider (using master-head for testing) | ||
1. Execute `terraform init` | ||
1. Create the file network.tf as following snippets: | ||
``` | ||
resource "harvester_clusternetwork" "tf_cnet" { | ||
name = "cnet-003710" | ||
} | ||
resource "harvester_vlanconfig" "tf_vlanconfig" { | ||
name = "cnet-003710-eno50" | ||
|
||
uplink { | ||
nics = ["eno50"] | ||
} | ||
|
||
cluster_network_name = "cnet-003710" | ||
} | ||
resource "harvester_network" "tf_vmnetwork" { | ||
name = "tf_vmnetwork" | ||
|
||
vlan_id = 1 | ||
|
||
cluster_network_name = "cnet-003710" | ||
} | ||
``` | ||
1. execute `terraform apply -auto-approve` | ||
1. Login to dashboard then navigate to Networks/Cluster Networks, cluster network `cnet-003710` should be created, vlanconfig `cnet-003710-eno50` should be the member in the cluster network | ||
1. Navigate to Networks/VM Networks, VM Network `tf_vmnetwork` should be created | ||
1. Execute `terraform apply` again and many more times | ||
|
||
## Expected Results | ||
1. Cluster Network and Configurations should able to be created | ||
1. VM Network should able to be created |