https://github.com/Telmate/terraform-provider-proxmox
https://github.com/Telmate/terraform-provider-proxmox/blob/master/docs/index.md
-
instalacion de GO en tu equipo https://golang.org/doc/install#install
-
instalar terraform en tu equipo https://www.terraform.io/downloads.html
go get github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provider-proxmox
go get github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provisioner-proxmox
go install github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provider-proxmox
go install github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provisioner-proxmox
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/telmate/proxmox/0.13/linux_amd64
cp $GOPATH/bin/terraform-provider-proxmox ~/.terraform.d/plugins/registry.terraform.io/telmate/proxmox/0.13/linux_amd64
cp $GOPATH/bin/terraform-provisioner-proxmox ~/.terraform.d/plugins/registry.terraform.io/telmate/proxmox/0.13/linux_amd64
provider "proxmox" {
pm_api_url = "https://dominio:8006/api2/json"
pm_user = "root@pve"
pm_password ="*xxxxxx"
pm_tls_insecure = true
pm_parallel = 2
}
terraform {
required_providers {
proxmox = {
source = "registry.terraform.io/telmate/proxmox"
}
}
required_version = ">= 0.13"
}
terraform init