2024-06-29 14:40:10 +01:00
|
|
|
{
|
|
|
|
network = {
|
|
|
|
name = "lxdBrDefault";
|
|
|
|
type = "bridge";
|
|
|
|
|
|
|
|
config = {
|
|
|
|
"ipv4.address" = "10.100.1.1/8";
|
|
|
|
"ipv4.nat" = "true";
|
2024-06-30 12:25:44 +01:00
|
|
|
"ipv4.firewall" = "false";
|
2024-06-29 14:40:10 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-06-29 22:18:42 +01:00
|
|
|
storage_pools = [
|
|
|
|
{
|
|
|
|
name = "postgres";
|
|
|
|
driver = "btrfs";
|
2024-06-30 12:25:44 +01:00
|
|
|
config.source = "/dev/zvol/zspeed/postgres";
|
2024-06-29 22:18:42 +01:00
|
|
|
}
|
|
|
|
{
|
2024-06-30 17:44:48 +01:00
|
|
|
name = "default";
|
2024-06-29 22:18:42 +01:00
|
|
|
driver = "btrfs";
|
2024-06-30 17:44:48 +01:00
|
|
|
config.source = "/dev/zvol/zspeed/default";
|
2024-06-29 22:18:42 +01:00
|
|
|
}
|
|
|
|
];
|
2024-06-29 14:40:10 +01:00
|
|
|
|
|
|
|
profile = {
|
2024-06-30 17:44:48 +01:00
|
|
|
name = "postgres";
|
2024-06-29 14:40:10 +01:00
|
|
|
devices = {
|
|
|
|
"eth0" = {
|
|
|
|
name = "eth0";
|
|
|
|
nictype = "bridged";
|
|
|
|
parent = "lxdBrDefault";
|
|
|
|
type = "nic";
|
|
|
|
};
|
|
|
|
"root" = {
|
|
|
|
path = "/";
|
|
|
|
pool = "default";
|
|
|
|
size = "8GiB";
|
|
|
|
type = "disk";
|
|
|
|
};
|
2024-06-30 17:44:48 +01:00
|
|
|
"db" = {
|
|
|
|
path = "/var/lib/postgresql/16/";
|
|
|
|
pool = "postgres";
|
|
|
|
source = "db";
|
|
|
|
type = "disk";
|
|
|
|
};
|
2024-06-29 14:40:10 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|