This repository contains examples Terraform and Ansible configurations to launch and set up Docker in QEMU Virtual Machine on PVE.
Name | Version |
---|---|
local | n/a |
null | n/a |
proxmox | n/a |
Name | Description | Type | Default | Required |
---|---|---|---|---|
ci_password | Default cloud-init password. | string |
n/a | yes |
ci_user | Default cloud-init username. | string |
n/a | yes |
pm_ip | Proxmox Managment IP address. | string |
n/a | yes |
pm_parallel | Allowed simultaneous Proxmox processes. | number |
1 |
no |
pm_password | Proxmox Managment Password. | string |
n/a | yes |
pm_timeout | Timeout value (seconds) for Proxmox API calls. | number |
400 |
no |
pm_user | Proxmox Managment User. | string |
n/a | yes |
ssh_keys | SSH Public keys. | string |
n/a | yes |
vms_data | List of Qemu Virtual Machine. | list(object({ |
[ |
no |
Terraform VM Qemu Resource: doc
Name | Description |
---|---|
hosts | SSH hosts |
-
Clone this repo.
-
Install Ansible role dependencies.
ansible-galaxy install -r requirements.yml -p ./roles
- Install Terraform Provider Proxmox
go get -v github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provider-proxmox
go get -v github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provisioner-proxmox
go install -v github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provider-proxmox
go install -v github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provisioner-proxmox
cp $GOPATH/bin/terraform-provider-proxmox ~/.terraform.d/plugins
cp $GOPATH/bin/terraform-provisioner-proxmox ~/.terraform.d/plugins
- Run terraform, it will create a QEMU virtual machines, inventory file (example) and deploy environment:
terraform init
terraform plan -var-file=example.tfvars
terraform apply -var-file=example.tfvars