Create TF for highsea deploy.

highsea-config
josiah 4 months ago
parent 1521bb5e1e
commit e45a5b7989

@ -6,6 +6,7 @@ provider "registry.terraform.io/digitalocean/digitalocean" {
constraints = "~> 2.29.0"
hashes = [
"h1:OLSxMaqLOUl6DjQ3vz14odCyMCcLA63ltBNPgrIQHG4=",
"h1:mJrr4YaOsB7bWfCSJZneiXB6JMnVNnFxYRmQ8vKaOSQ=",
"zh:0af0a1a2de818c5dc8ee7ad4dc4731452848e84cfa0c1ce514af1c7aad15c53c",
"zh:27229f3162b4142be48554f56227265982f3b74e4c79fa5d2528c8a3912d1e19",
"zh:31d6e73bfe12231fa0ab3bbeef0e4aa9822a2008ae2a1a8b22557bdada4af7a3",
@ -30,6 +31,7 @@ provider "registry.terraform.io/telmate/proxmox" {
constraints = "2.7.4"
hashes = [
"h1:ivNrl7WU2BJwIKmB1lLr70+GtXBCfzW+K5tvNpYy454=",
"h1:lgfUuXLdyY2Uf5mO7eJNfJC/fsoUDyBsCpxA/rbs3Z4=",
"zh:3c2163b167d1e342e1683015cd08c70838d1c631b8e374ac6f86ca2c41271a8c",
"zh:453596419e07cd0c41f5f58dd7775664fa685de403e9776197b1502e79bf3814",
"zh:492045cf7859bc31a57730b876dcc29d902a24d543a30a67f34b0ee2b4a71a33",

@ -19,15 +19,27 @@ resource "proxmox_vm_qemu" "high-sea" {
memory = 4096
scsihw = "virtio-scsi-pci"
bootdisk = "scsi0"
# This is our OS disk
disk {
slot = 0
# set disk size here. leave it small for testing because expanding the disk takes time.
size = "40G"
# You can't actually set this to anything, it doesn't seem? I'm not sure why. if you clone from a template you ALWAYS get that templates size, and any changes made are not seen on the clone vm.
# Maybe a function of the kind of disk that was created?
size = "32G"
type = "scsi"
storage = "sainthood-cifs"
iothread = 0
}
# This is our data disk; we're just adding the data disk capaccity to LVM, so its maybe dumb? but that's what i'm doing for now.
disk {
slot = 1
size = "240G"
type = "scsi"
storage = "sainthood-cifs"
iothread = 0
}
# if you want two NICs, just copy this whole network section and duplicate it
network {
model = "virtio"
@ -40,11 +52,10 @@ resource "proxmox_vm_qemu" "high-sea" {
]
}
ipconfig0 = "ip=10.10.1.10/24,gw=10.98.1.1"
# sshkeys set using variables. the variable contains the text of the key.
}
# Configure DO DNS after VM is build. A record to point to machine?
# See records_home.jowj.net.tf file in do_domains.

@ -20,8 +20,8 @@ terraform {
# This is actually not needed, but declaring it here helps me remember where its supposed to live.
# You gotta comment these out when initing the terraform backend? for some reason.
shared_credentials_files = ["~/.aws/credentials"]
shared_config_files = ["~/.aws/config"]
#shared_credentials_files = ["~/.aws/credentials"]
#shared_config_files = ["~/.aws/config"]
}
}

@ -213,3 +213,18 @@ resource "digitalocean_record" demiurge-dns {
value = "100.108.60.46"
weight = "0"
}
# this motherfucker is currently set manually.
# TODO: Figure out how to do this programmatically
resource "digitalocean_record" highsea-dns {
domain = "home.jowj.net"
flags = "0"
name = "highsea"
port = "0"
priority = "0"
ttl = "900"
type = "A"
value = "192.168.1.17"
weight = "0"
}

Loading…
Cancel
Save