This commit is contained in:
cătălin 2024-02-12 17:24:17 +01:00
commit b9d8cd04d4
Signed by untrusted user: catalin
GPG key ID: 0178DF42F43E5FD2
11 changed files with 230 additions and 0 deletions

48
tofu/proxmox/main.tf Normal file
View file

@ -0,0 +1,48 @@
terraform {
backend "s3" {
bucket = "fuku-terraform"
key = "vm-foundation/terraform"
region = "us-east-1"
}
required_providers {
proxmox = {
source = "thegameprofi/proxmox"
version = "2.9.15"
}
}
}
provider "proxmox" {
pm_debug = true
}
module "master1" {
source = "../modules/proxmox-vm"
vm_id = 3001
vm_name = "master1.ramiel.fuku"
node_name = "ramiel"
ipconfig0 = "ip=192.168.1.31/24,gw=192.168.1.1"
memory = 4096
core_count = 2
}
module "master2" {
source = "../modules/proxmox-vm"
vm_id = 3002
vm_name = "master2.ireul.fuku"
node_name = "ireul"
ipconfig0 = "ip=192.168.1.32/24,gw=192.168.1.1"
memory = 4096
core_count = 2
}
module "master3" {
source = "../modules/proxmox-vm"
vm_id = 3003
vm_name = "master3.ireul.fuku"
node_name = "ireul"
ipconfig0 = "ip=192.168.1.33/24,gw=192.168.1.1"
disk_storage_name = "local-lvm"
memory = 4096
core_count = 2
}