refactor(terraform): structure directories by hypervisor (netcore/ and pve/)

This commit is contained in:
karpenok committed 2026-11-09 20:11:28 +07:00
1 parent 2b23809bc3
commit 2bc77b50f4
11 files changed
+105 -7

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
terraform {
required_version = ">= 1.5.0"
required_providers {
proxmox = {
source = "bpg/proxmox"
version = "~> 0.70.0"
}
}
backend "http" {}
}
provider "proxmox" {
endpoint = var.proxmox_endpoint
api_token = var.proxmox_api_token
insecure = var.proxmox_insecure
ssh {
agent = true
}
}
+1
View File
@@ -0,0 +1 @@
# Выходные параметры для узла pve
+4
View File
@@ -0,0 +1,4 @@
proxmox_endpoint = "https://192.168.1.2:8006/"
proxmox_api_token = "root@pam!automation-stack=00000000-0000-0000-0000-000000000000"
proxmox_insecure = true
proxmox_node = "pve"
+32
View File
@@ -0,0 +1,32 @@
variable "proxmox_endpoint" {
description = "URL Proxmox API для узла pve"
type = string
default = "https://192.168.1.2:8006/"
}
variable "proxmox_api_token" {
description = "API Token Proxmox в формате USER@REALM!TOKENID=UUID_SECRET"
type = string
sensitive = true
}
variable "proxmox_insecure" {
description = "Разрешить самоподписанные SSL-сертификаты Proxmox"
type = bool
default = true
}
variable "proxmox_node" {
description = "Имя ноды Proxmox"
type = string
default = "pve"
}
variable "ssh_public_keys" {
description = "Список публичных SSH-ключей для доступа к создаваемым контейнерам"
type = list(string)
default = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF/yxhAs022l/8FlPlhyi7NeF3CvVGsev3B1HtKICO7M root_from_windows",
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEpwqB40k8QQq3k8160gfMKDaCJCX9qzvmuijfe3mO4I gitea-runner"
]
}