mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-07 05:51:17 +07:00
Move limits to seperate block
This commit is contained in:
parent
d9cadb36bb
commit
c8bb547c49
@ -15,8 +15,6 @@ resource "lxd_container" "vpn" {
|
||||
ephemeral = false
|
||||
|
||||
config = {
|
||||
"limits.cpu" = 1
|
||||
"limits.memory" = "256MiB"
|
||||
"user.user-data" = templatefile(
|
||||
"${path.module}/cloud-init.yaml.tpl",
|
||||
{
|
||||
@ -25,13 +23,18 @@ resource "lxd_container" "vpn" {
|
||||
)
|
||||
}
|
||||
|
||||
limits = {
|
||||
cpu = "1"
|
||||
memory = "256MiB"
|
||||
}
|
||||
|
||||
device {
|
||||
name = "eth0"
|
||||
type = "nic"
|
||||
|
||||
properties = {
|
||||
nictype = "macvlan"
|
||||
parent = "eno1"
|
||||
parent = "eno1" # TODO make parent interface a variable
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user