feat: updates ?
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
{
|
||||
config,
|
||||
tools,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my-lxc;
|
||||
in
|
||||
{
|
||||
proxmox_lxc = lib.mapAttrs (
|
||||
proxmox_lxc = builtins.mapAttrs (
|
||||
name: def:
|
||||
let
|
||||
c = def.container;
|
||||
@@ -25,7 +23,7 @@ in
|
||||
network = {
|
||||
name = "eth0";
|
||||
bridge = "vmbr0";
|
||||
ip = tools.build_ip_cidr name;
|
||||
ip = "192.168.1.${name}";
|
||||
gw = config.globals.gateway;
|
||||
type = "veth";
|
||||
};
|
||||
@@ -37,7 +35,7 @@ in
|
||||
};
|
||||
swap = c.swap;
|
||||
vmid = config.id.${name};
|
||||
tags = lib.strings.join ";" ([ "terraform" ] ++ c.tags);
|
||||
tags = builtins.strings.join ";" ([ "terraform" ] ++ c.tags);
|
||||
}
|
||||
// c.overrides
|
||||
) cfg;
|
||||
|
||||
Reference in New Issue
Block a user