tor vm
This commit is contained in:
49
tor.tf
Normal file
49
tor.tf
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
resource "proxmox_lxc" "tor" {
|
||||||
|
target_node = "ryuk2"
|
||||||
|
hostname = "tor"
|
||||||
|
vmid = 229
|
||||||
|
ostemplate = "cephfs:vztmpl/debian-13-standard_13.1-2_amd64.tar.zst"
|
||||||
|
password = "terraform"
|
||||||
|
unprivileged = true
|
||||||
|
cores = 3
|
||||||
|
memory = 2048
|
||||||
|
swap = 1024
|
||||||
|
start = true
|
||||||
|
tags = "terraform;deb13"
|
||||||
|
nameserver = "192.168.0.224"
|
||||||
|
ssh_public_keys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFw70PrMsilcsqCrwW1I6PAt3anQbhmVg+t/HUfomug ryan@mxDesktop"
|
||||||
|
|
||||||
|
features {
|
||||||
|
nesting = true
|
||||||
|
}
|
||||||
|
|
||||||
|
rootfs {
|
||||||
|
storage = "local-lvm"
|
||||||
|
size = "64G"
|
||||||
|
}
|
||||||
|
|
||||||
|
#mountpoint{
|
||||||
|
# key = "0"
|
||||||
|
# slot = 0
|
||||||
|
# storage = "Ceph"
|
||||||
|
# mp = "/data"
|
||||||
|
# # 300GB, terraform plugin is setting it to Ms
|
||||||
|
# size = "300000M"
|
||||||
|
#}
|
||||||
|
|
||||||
|
network {
|
||||||
|
name = "eth0"
|
||||||
|
bridge = "vmbr0"
|
||||||
|
ip = "192.168.0.64/24"
|
||||||
|
gw = "192.168.0.1"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
provisioner "local-exec" {
|
||||||
|
command = "./.ansible.d/setup.sh $IP"
|
||||||
|
environment = {
|
||||||
|
IP = "192.168.0.64"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user