mirror of
https://github.com/tolerryan/NewWatari.git
synced 2026-10-12 09:57:42 +00:00
new lxc test
This commit is contained in:
48
lxc/downloader.tf
Normal file
48
lxc/downloader.tf
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
resource "proxmox_lxc" "downloader" {
|
||||||
|
target_node = "ryuk2"
|
||||||
|
hostname = "downloader"
|
||||||
|
vmid = 222
|
||||||
|
ostemplate = "cephfs:vztmpl/debian-13-standard_13.3-sudo_amd64.tar.zst"
|
||||||
|
password = "terraform"
|
||||||
|
unprivileged = true
|
||||||
|
cores = 6
|
||||||
|
memory = 2096
|
||||||
|
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 = "42G"
|
||||||
|
}
|
||||||
|
|
||||||
|
mountpoint{
|
||||||
|
key = "0"
|
||||||
|
slot = 0
|
||||||
|
storage = "local-lvm"
|
||||||
|
mp = "/data"
|
||||||
|
size = "300G"
|
||||||
|
}
|
||||||
|
|
||||||
|
network {
|
||||||
|
name = "eth0"
|
||||||
|
bridge = "vmbr0"
|
||||||
|
ip = "192.168.0.22/24"
|
||||||
|
gw = "192.168.0.1"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
provisioner "local-exec" {
|
||||||
|
command = "./.ansible.d/setup.sh $IP"
|
||||||
|
environment = {
|
||||||
|
IP = "192.168.0.58"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -39,3 +39,8 @@ provider "proxmox" {
|
|||||||
agent = true
|
agent = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module "vm" {
|
||||||
|
source = "./lxc/"
|
||||||
|
# Pass input variables as needed
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user