terraform: add victoriametrics
This commit is contained in:
parent
48f27dcba2
commit
05e84cf6fa
4 changed files with 36 additions and 4 deletions
|
@ -82,6 +82,11 @@
|
|||
ip = "10.42.42.17";
|
||||
mac = "0A:06:5E:E7:9A:0C";
|
||||
}
|
||||
{
|
||||
hostname = "victoriametrics";
|
||||
ip = "10.42.42.18";
|
||||
mac = "A9:E4:AA:7C:7E:EB";
|
||||
}
|
||||
{
|
||||
hostname = "nuc";
|
||||
ip = "10.42.42.42";
|
||||
|
|
|
@ -47,6 +47,9 @@
|
|||
},
|
||||
"vault": {
|
||||
"mac": "16:2B:87:55:0C:0C"
|
||||
},
|
||||
"victoriametrics": {
|
||||
"mac": "A9:E4:AA:7C:7E:EB"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,9 +66,10 @@ resource "proxmox_lxc" "vault" {
|
|||
unprivileged = false # needed for mlock
|
||||
vmid = 102
|
||||
clone = "101"
|
||||
memory = 1024
|
||||
onboot = true
|
||||
|
||||
memory = 1024
|
||||
|
||||
rootfs {
|
||||
storage = "local-zfs"
|
||||
size = "8G"
|
||||
|
@ -110,7 +111,6 @@ resource "proxmox_lxc" "mosquitto" {
|
|||
|
||||
resource "proxmox_lxc" "nginx" {
|
||||
target_node = "nuc"
|
||||
description = "nginx reverse proxy"
|
||||
hostname = "nginx"
|
||||
vmid = 106
|
||||
clone = 101
|
||||
|
@ -252,3 +252,26 @@ resource "proxmox_lxc" "dhcp" {
|
|||
hwaddr = var.hosts.dhcp.mac
|
||||
}
|
||||
}
|
||||
|
||||
resource "proxmox_lxc" "victoriametrics" {
|
||||
target_node = "nuc"
|
||||
hostname = "victoriametrics"
|
||||
vmid = 113
|
||||
clone = 108
|
||||
unprivileged = true
|
||||
onboot = true
|
||||
cores = 1
|
||||
|
||||
memory = 512
|
||||
|
||||
rootfs {
|
||||
storage = "local-zfs"
|
||||
size = "25G"
|
||||
}
|
||||
|
||||
network {
|
||||
name = "eth0"
|
||||
bridge = "vmbr0"
|
||||
hwaddr = var.hosts.victoriametrics.mac
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@ resource "proxmox_vm_qemu" "k3s-node1" {
|
|||
vmid = 103
|
||||
clone = "bastion"
|
||||
tablet = false
|
||||
onboot = true
|
||||
|
||||
memory = 8192
|
||||
cores = 4
|
||||
|
|
Loading…
Reference in a new issue