ansible-core-mon / deploy (push) Successful in 26s
ansible-rus-central / deploy (push) Successful in 54s
ansible-core-net / deploy (push) Successful in 58s
ansible-core-secrets / deploy (push) Successful in 18s
ansible-ger-nod-02 / deploy (push) Successful in 1m18s
ansible-opnsense / deploy (push) Successful in 8s
Архив homelab-ansible хранится на диске CT, проверка раннера вынесена в отдельную кнопку, cAdvisor смотрит свой порт. Co-authored-by: Cursor <cursoragent@cursor.com>
63 lines
1.6 KiB
Terraform
63 lines
1.6 KiB
Terraform
resource "proxmox_virtual_environment_container" "core_git" {
|
||
description = "Managed by Terraform: core-git (Gitea + Actions Runner)"
|
||
# На этой машине живёт раннер. Actions её не деплоит и не применяет:
|
||
# plan/apply с раннера идут с -exclude этого ресурса.
|
||
# Импорт и apply — только с рабочей станции.
|
||
node_name = var.proxmox_node
|
||
|
||
vm_id = 904
|
||
unprivileged = true
|
||
started = true
|
||
|
||
initialization {
|
||
hostname = "core-git"
|
||
|
||
ip_config {
|
||
ipv4 {
|
||
address = "192.168.1.105/24"
|
||
gateway = "192.168.1.1"
|
||
}
|
||
}
|
||
|
||
user_account {
|
||
keys = var.ssh_public_keys
|
||
}
|
||
}
|
||
|
||
network_interface {
|
||
name = "eth0"
|
||
bridge = "vmbr10"
|
||
}
|
||
|
||
operating_system {
|
||
template_file_id = "local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst"
|
||
type = "debian"
|
||
}
|
||
|
||
cpu {
|
||
cores = 2
|
||
}
|
||
|
||
memory {
|
||
dedicated = 4096
|
||
swap = 2048
|
||
}
|
||
|
||
disk {
|
||
datastore_id = "local-lvm"
|
||
size = 40
|
||
}
|
||
|
||
features {
|
||
nesting = true
|
||
keyctl = true
|
||
}
|
||
|
||
# DinD (Gitea Actions) на unprivileged LXC: без unconfined AppArmor
|
||
# runc падает на net.ipv4.ip_unprivileged_port_start (permission denied).
|
||
# Провайдер bpg/proxmox это поле не умеет — строка в /etc/pve/lxc/904.conf
|
||
# на netcore: lxc.apparmor.profile: unconfined.
|
||
# После apply со станции: scripts/check-core-git-lxc.sh
|
||
# Смена профиля действует после ребута CT.
|
||
}
|