This commit is contained in:
@@ -16,7 +16,7 @@ steps:
|
|||||||
- name: Terraform syntax check for pull request
|
- name: Terraform syntax check for pull request
|
||||||
image: hashicorp/terraform:1.5
|
image: hashicorp/terraform:1.5
|
||||||
commands:
|
commands:
|
||||||
- terraform -chdir=infrastructure fmt -diff -check
|
- terraform -chdir=infrastructure fmt -write=false -diff -check -recursive
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|||||||
@@ -1,91 +0,0 @@
|
|||||||
resource "proxmox_virtual_environment_vm" "nextcloud_aio" {
|
|
||||||
acpi = true
|
|
||||||
bios = "ovmf"
|
|
||||||
vm_id = 111
|
|
||||||
node_name = "proxmox"
|
|
||||||
scsi_hardware = "virtio-scsi-single"
|
|
||||||
name = "nextcloud-aio"
|
|
||||||
started = true
|
|
||||||
tablet_device = true
|
|
||||||
tags = []
|
|
||||||
template = false
|
|
||||||
|
|
||||||
agent {
|
|
||||||
enabled = true
|
|
||||||
timeout = "15m"
|
|
||||||
trim = false
|
|
||||||
}
|
|
||||||
|
|
||||||
cpu {
|
|
||||||
architecture = "x86_64"
|
|
||||||
cores = 4
|
|
||||||
flags = []
|
|
||||||
hotplugged = 0
|
|
||||||
numa = false
|
|
||||||
sockets = 1
|
|
||||||
type = "host"
|
|
||||||
units = 1024
|
|
||||||
}
|
|
||||||
|
|
||||||
efi_disk {
|
|
||||||
datastore_id = "local"
|
|
||||||
file_format = "qcow2"
|
|
||||||
pre_enrolled_keys = true
|
|
||||||
type = "4m"
|
|
||||||
}
|
|
||||||
|
|
||||||
disk {
|
|
||||||
datastore_id = "local"
|
|
||||||
ssd = true
|
|
||||||
size = 900
|
|
||||||
file_format = "qcow2"
|
|
||||||
interface = "scsi0"
|
|
||||||
}
|
|
||||||
|
|
||||||
initialization {
|
|
||||||
datastore_id = "local"
|
|
||||||
interface = "ide0"
|
|
||||||
|
|
||||||
ip_config {
|
|
||||||
ipv4 {
|
|
||||||
address = "10.20.1.8/16"
|
|
||||||
gateway = "10.20.0.1"
|
|
||||||
}
|
|
||||||
ipv6 {
|
|
||||||
address = "auto"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
user_account {
|
|
||||||
keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHRYu07KxH1k+RvQ0JjDeLslwEgmWNdU5xtgYXCHoG7L tim@matabi",
|
|
||||||
]
|
|
||||||
username = "tim"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
memory {
|
|
||||||
dedicated = 8192
|
|
||||||
floating = 0
|
|
||||||
shared = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
network_device {
|
|
||||||
bridge = "vmbr0"
|
|
||||||
enabled = true
|
|
||||||
firewall = true
|
|
||||||
mac_address = "7A:D1:F3:47:8D:1B"
|
|
||||||
model = "virtio"
|
|
||||||
mtu = 0
|
|
||||||
rate_limit = 0
|
|
||||||
vlan_id = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
operating_system {
|
|
||||||
type = "l26"
|
|
||||||
}
|
|
||||||
|
|
||||||
vga {
|
|
||||||
enabled = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
resource "proxmox_virtual_environment_container" "unifi" {
|
|
||||||
node_name = "proxmox"
|
|
||||||
started = true
|
|
||||||
tags = []
|
|
||||||
template = false
|
|
||||||
vm_id = 103
|
|
||||||
|
|
||||||
console {
|
|
||||||
enabled = true
|
|
||||||
tty_count = 2
|
|
||||||
type = "tty"
|
|
||||||
}
|
|
||||||
|
|
||||||
cpu {
|
|
||||||
architecture = "amd64"
|
|
||||||
cores = 2
|
|
||||||
units = 1024
|
|
||||||
}
|
|
||||||
|
|
||||||
disk {
|
|
||||||
datastore_id = "local"
|
|
||||||
size = 32
|
|
||||||
}
|
|
||||||
|
|
||||||
initialization {
|
|
||||||
hostname = "unifi"
|
|
||||||
|
|
||||||
ip_config {
|
|
||||||
ipv4 {
|
|
||||||
address = "10.20.1.2/16"
|
|
||||||
gateway = "10.20.0.1"
|
|
||||||
}
|
|
||||||
ipv6 {
|
|
||||||
address = "auto"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
memory {
|
|
||||||
dedicated = 2048
|
|
||||||
swap = 512
|
|
||||||
}
|
|
||||||
|
|
||||||
network_interface {
|
|
||||||
bridge = "vmbr0"
|
|
||||||
enabled = true
|
|
||||||
firewall = true
|
|
||||||
mac_address = "CA:B6:50:D7:1E:C2"
|
|
||||||
mtu = 0
|
|
||||||
name = "eth0"
|
|
||||||
rate_limit = 0
|
|
||||||
vlan_id = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
operating_system {
|
|
||||||
template_file_id = proxmox_virtual_environment_file.ubuntu_container_template.id
|
|
||||||
type = "ubuntu"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "proxmox_virtual_environment_file" "ubuntu_container_template" {
|
|
||||||
content_type = "vztmpl"
|
|
||||||
datastore_id = "local"
|
|
||||||
node_name = "proxmox"
|
|
||||||
|
|
||||||
source_file {
|
|
||||||
path = "http://download.proxmox.com/images/system/ubuntu-22.04-standard_22.04-1_amd64.tar.zst"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user