refactor: restructure repository into layered IaC architecture (ansible, terraform, kubernetes)
This commit is contained in:
1 parent
d5dfc02889
commit
3c300c0cde
29 files changed
+227
-1
No files matched your search
@@ -0,0 +1,50 @@
|
||||
# Пример базового непривилегированного LXC контейнера
|
||||
# Измените параметры (vm_id, hostname, ip, storage) под свою сеть
|
||||
|
||||
resource "proxmox_virtual_environment_container" "basic_app" {
|
||||
description = "Managed by Terraform: basic unprivileged LXC"
|
||||
node_name = var.proxmox_node
|
||||
|
||||
vm_id = 200
|
||||
unprivileged = true
|
||||
|
||||
initialization {
|
||||
hostname = "app-01"
|
||||
|
||||
ip_config {
|
||||
ipv4 {
|
||||
address = "192.168.1.200/24"
|
||||
gateway = "192.168.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
user_account {
|
||||
keys = [var.ssh_public_key]
|
||||
}
|
||||
}
|
||||
|
||||
network_interface {
|
||||
name = "eth0"
|
||||
bridge = "vmbr0"
|
||||
}
|
||||
|
||||
operating_system {
|
||||
# Путь к загруженному шаблону на ноде Proxmox
|
||||
template_file_id = "local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst"
|
||||
type = "debian"
|
||||
}
|
||||
|
||||
cpu {
|
||||
cores = 1
|
||||
}
|
||||
|
||||
memory {
|
||||
dedicated = 1024
|
||||
swap = 512
|
||||
}
|
||||
|
||||
disk {
|
||||
datastore_id = "local-zfs"
|
||||
size = 10
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user