Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] update terraform related doc (2261 and new 2957) #1744

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this step necessary and what is the expected result?


## Expected Results
1. Cluster Network and Configurations should able to be created
1. VM Network should able to be created
Loading