fix(ci): Configure CI/CD workflow triggers
Some checks failed
CD - Deploy Infrastructure / Terraform Validation (push) Successful in 16s
CD - Deploy Infrastructure / Deploy on pve1 (push) Failing after 1m5s
CD - Deploy Infrastructure / Deploy on pve2 (push) Failing after 2m25s
CD - Deploy Infrastructure / Deploy on pve3 (push) Failing after 2m12s
CD - Deploy Infrastructure / Validate K3s Cluster (push) Has been skipped
CD - Deploy Infrastructure / Deployment Notification (push) Failing after 1s
Some checks failed
CD - Deploy Infrastructure / Terraform Validation (push) Successful in 16s
CD - Deploy Infrastructure / Deploy on pve1 (push) Failing after 1m5s
CD - Deploy Infrastructure / Deploy on pve2 (push) Failing after 2m25s
CD - Deploy Infrastructure / Deploy on pve3 (push) Failing after 2m12s
CD - Deploy Infrastructure / Validate K3s Cluster (push) Has been skipped
CD - Deploy Infrastructure / Deployment Notification (push) Failing after 1s
This commit is contained in:
parent
801e130679
commit
c70d3e3c03
8 changed files with 181 additions and 74 deletions
|
|
@ -4,7 +4,7 @@ terraform {
|
|||
required_providers {
|
||||
proxmox = {
|
||||
source = "telmate/proxmox"
|
||||
version = "~> 2.9"
|
||||
version = "3.0.2-rc05"
|
||||
}
|
||||
local = {
|
||||
source = "hashicorp/local"
|
||||
|
|
@ -20,32 +20,37 @@ provider "proxmox" {
|
|||
pm_tls_insecure = var.proxmox_tls_insecure
|
||||
}
|
||||
|
||||
# etcd Witness VM on pve3
|
||||
# etcd Witness VM on thinkpad
|
||||
resource "proxmox_vm_qemu" "etcd_witness" {
|
||||
name = "etcd-witness"
|
||||
target_node = "pve3"
|
||||
target_node = "thinkpad"
|
||||
clone = var.ubuntu_template
|
||||
full_clone = true
|
||||
|
||||
cores = var.etcd_witness_config.cores
|
||||
sockets = 1
|
||||
memory = var.etcd_witness_config.memory
|
||||
agent = 1
|
||||
cpu {
|
||||
cores = var.etcd_witness_config.cores
|
||||
sockets = 1
|
||||
}
|
||||
|
||||
memory = var.etcd_witness_config.memory
|
||||
agent = 1
|
||||
|
||||
boot = "order=scsi0"
|
||||
scsihw = "virtio-scsi-single"
|
||||
onboot = true
|
||||
|
||||
network {
|
||||
id = 0
|
||||
model = "virtio"
|
||||
bridge = var.k3s_network_bridge
|
||||
}
|
||||
|
||||
disk {
|
||||
slot = 0
|
||||
slot = "scsi0"
|
||||
size = var.etcd_witness_config.disk_size
|
||||
type = "scsi"
|
||||
storage = var.storage_pool
|
||||
iothread = 1
|
||||
type = "disk"
|
||||
storage = var.etcd_witness_storage_pool
|
||||
iothread = true
|
||||
}
|
||||
|
||||
ipconfig0 = "ip=${var.etcd_witness_config.ip},gw=${var.k3s_gateway}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue