Skip to content

Commit

Permalink
* [Docs] update terraform related doc (2261 and new 2957)
Browse files Browse the repository at this point in the history
  • Loading branch information
lanfon72 committed Dec 24, 2024
1 parent 0edf843 commit 4633e49
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: Terraform import VLAN

* Related issues: [#2261](https://github.com/harvester/harvester/issues/2261) [FEATURE] enhance terraform network to not pruge route_cidr and route_gateway

** Harvester Version <= `v1.0.3`**

## Category:
* Terraform
Expand Down
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

0 comments on commit 4633e49

Please sign in to comment.