Add first module : Gitea app

This commit is contained in:
2026-01-11 16:43:06 +01:00
parent 53a1e15866
commit 14dc3fdefd
20 changed files with 890 additions and 0 deletions

60
main.tf Normal file
View File

@@ -0,0 +1,60 @@
terraform {
required_providers {
proxmox = {
source = "bpg/proxmox"
version = "0.42.0"
}
}
}
provider "proxmox" {
endpoint = var.proxmox_endpoint
api_token = var.proxmox_api_token
insecure = true
ssh {
agent = true
username = "root"
}
}
# module "bookshelf" {
# source = "./modules/vm"
# providers = {}
# name = "bookshelf"
# hostname = "bookshelf"
# domain = "aldon.fr"
# vm_id = 210
# node_name = "mop"
# template_id = 103
# cores = 1
# memory = 1024
# disk_size = 16
# ssh_public_key = var.ssh_public_key
# proxmox_host_ip = var.proxmox_host_ip
# }
module "gitea" {
source = "./modules/apps/gitea"
providers = {}
name = "gitea"
hostname = "gitea"
domain = "aldon.fr"
vm_id = 212
node_name = "mop"
template_id = 103
cores = 2
memory = 2048
disk_size = 16
ssh_public_key = var.ssh_public_key
proxmox_host_ip = var.proxmox_host_ip
}