Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qjoly/terraform-module-proxmox
Module Terraform pour créer des machines virtuelles sous proxmox
https://github.com/qjoly/terraform-module-proxmox
Last synced: 4 days ago
JSON representation
Module Terraform pour créer des machines virtuelles sous proxmox
- Host: GitHub
- URL: https://github.com/qjoly/terraform-module-proxmox
- Owner: qjoly
- Created: 2022-09-09T09:17:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-30T19:00:33.000Z (10 months ago)
- Last Synced: 2025-01-11T11:53:51.746Z (5 days ago)
- Language: HCL
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Module Terraform
Ce projet est un module terraform spécifique à Proxmox permettant de déployer des machines virtuelles.
# Usage
```hcl
module "machinetest" {
count = 1
source = "QJoly/proxmox/module"
version = "1.0.0"
node_name = "master-${count.index}-tf"
node_target = var.node
node_qemuga = 1
node_pool = "customer01"
node_size_disk = "32G"
node_bootauto = true
node_template = "debian-11-tf"
node_storage_disk = "local"
node_network_host = "vmbr0"
node_notes = "Super-VM for the customer No 01"
node_cpu = 3
node_memory = 3072
}
```
Il est possible de récupérer la/les adresse.s des machines déployées avec ce module via l'output : `node_ip`.Ex:
```hcl
resource "null_resource" "playbooks" {
provisioner "local-exec" {
when = create
command = "ANSIBLE_FORCE_COLOR=true ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook i \"module.machinetest[0].node_ip\" test-playbook.yml"
}
}
```