Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iagor1/terraform-vsphere
This repo is a terraform code that creates vm in vcenter
https://github.com/iagor1/terraform-vsphere
Last synced: 9 days ago
JSON representation
This repo is a terraform code that creates vm in vcenter
- Host: GitHub
- URL: https://github.com/iagor1/terraform-vsphere
- Owner: iagor1
- Created: 2023-04-05T14:06:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-20T01:43:36.000Z (7 months ago)
- Last Synced: 2024-04-20T02:34:16.951Z (7 months ago)
- Language: HCL
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# terraform-vsphere
If you use vcenter as a cloud, and need to create several vms, you can use this terraform as a template, this code can create several clones.
The branch clone_ovf use an image from content library.
Some "data" blocks are mandatory to use otherwise terraform will throw an error. For further details read terraform docs. Wish you luck!
# Steps to run
- Install terraform
- Change the variables to your setup environment
- Clone this repo and inside the folder run the commands```
terraform init
``````
terraform plan
``````
terraform apply
``````
terraform destroy
```## That is just one way, the another way is :
```
terraform init
``````
terraform plan -out tfplan
``````
terraform apply "tfplan"
``````
terraform plan -destroy -out tfplan
``````
terraform apply "tfplan"
```
this last way, terraform will create the tfplan file, and will follow this plan to do changes applys deletes etc