mirror of
https://github.com/letic/terraform-provider-proxmox.git
synced 2024-10-03 01:01:05 +00:00
50 lines
678 B
Markdown
50 lines
678 B
Markdown
# Proxmox 4 Terraform
|
|
|
|
Terraform provider plugin for proxmox
|
|
|
|
|
|
## Work in progress
|
|
|
|
### TODO
|
|
|
|
* document terraform-ubuntu1404-template creation process
|
|
* implement pre-provision phase
|
|
|
|
## Build
|
|
|
|
Requires https://github.com/Telmate/proxmox-api-go
|
|
|
|
```
|
|
go build -o terraform-provider-proxmox
|
|
cp terraform-provider-proxmox $GOPATH/bin
|
|
```
|
|
|
|
## Run
|
|
|
|
```
|
|
terraform apply
|
|
```
|
|
|
|
### Sample file
|
|
|
|
main.tf:
|
|
```
|
|
provider "proxmox" {
|
|
}
|
|
|
|
resource "proxmox_vm_qemu" "test" {
|
|
name = "tftest1.xyz.com"
|
|
desc = "tf description"
|
|
target_node = "proxmox1-xx"
|
|
ssh_forward_ip = "10.0.0.1"
|
|
clone = "terraform-ubuntu1404-template"
|
|
storage = "local"
|
|
cores = 3
|
|
sockets = 1
|
|
memory = 2560
|
|
}
|
|
|
|
```
|
|
|
|
|