feat: add opentofu basic setup
This commit is contained in:
parent
467de17183
commit
65a98c6f57
5 changed files with 112 additions and 0 deletions
49
opentofu/vms/s3.tf
Normal file
49
opentofu/vms/s3.tf
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
resource "proxmox_virtual_environment_container" "banana-hoard" {
|
||||
vm_id = 160
|
||||
node_name = "pve"
|
||||
description = "S3 data storage manager"
|
||||
unprivileged = true
|
||||
|
||||
start_on_boot = "true"
|
||||
|
||||
disk {
|
||||
datastore_id = "local-lvm"
|
||||
size = 8
|
||||
}
|
||||
|
||||
initialization {
|
||||
hostname = "banana-hoard"
|
||||
|
||||
ip_config {
|
||||
ipv4 {
|
||||
address = "10.0.10.60/24"
|
||||
gateway = "10.0.0.10"
|
||||
}
|
||||
}
|
||||
|
||||
user_account {
|
||||
# keys = [data.localfile.aleidk_key_pub.filename."/home/aleidk/Repos/Private/homelab/"]
|
||||
password = var.root_password
|
||||
}
|
||||
}
|
||||
|
||||
network_interface {
|
||||
name = "eth0"
|
||||
firewall = true
|
||||
bridge = "vnet10"
|
||||
}
|
||||
|
||||
operating_system {
|
||||
template_file_id = "local:vztmpl/alpine-latest-base-2024-12-30.tar.gz"
|
||||
type = "alpine"
|
||||
}
|
||||
|
||||
tags = [
|
||||
"storage",
|
||||
"s3",
|
||||
]
|
||||
|
||||
features {
|
||||
nesting = true
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue