mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
test: trying to get microVMs to work
This commit is contained in:
parent
5fc49f405a
commit
72bb3fbe34
11 changed files with 350 additions and 167 deletions
|
|
@ -286,7 +286,7 @@ in
|
|||
varPath = var;
|
||||
sslPath = "${var}/acme";
|
||||
sopsPath = "${var}/secrets";
|
||||
secretPath = "${var}/secrets";
|
||||
secretPath = "/run/secrets";
|
||||
cachePath = "/var/cache";
|
||||
dummy = "";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,24 +2,25 @@
|
|||
let
|
||||
inherit (moduleFunctions.instancesFunctions)
|
||||
domain0
|
||||
servicePath
|
||||
sslPath
|
||||
sopsPath
|
||||
varPath
|
||||
mntPath
|
||||
secretPath
|
||||
cachePath
|
||||
;
|
||||
label = "Firefly-III";
|
||||
name = "firefly-iii";
|
||||
domain = "${subdomain}.${domain0}";
|
||||
subdomain = "finances";
|
||||
domain = "${subdomain}.${domain0}";
|
||||
secrets = "${secretPath}/${name}";
|
||||
ssl = "${sslPath}/${domain}";
|
||||
in
|
||||
{
|
||||
label = label;
|
||||
name = name;
|
||||
short = label;
|
||||
email = {
|
||||
address0 = "noreply@${domain}";
|
||||
};
|
||||
sops = {
|
||||
path0 = "${sopsPath}/${name}";
|
||||
address0 = "noreply@${domain0}";
|
||||
};
|
||||
domains = {
|
||||
url0 = domain;
|
||||
|
|
@ -30,14 +31,32 @@ in
|
|||
"money"
|
||||
];
|
||||
subdomain = subdomain;
|
||||
paths = {
|
||||
path0 = "${servicePath}/${label}";
|
||||
};
|
||||
ports = {
|
||||
port0 = 8080;
|
||||
port1 = 8081;
|
||||
};
|
||||
interface = {
|
||||
id = "vm-${name}";
|
||||
mac = "02:00:00:00:54:04";
|
||||
idUser = "vmuser-firefly";
|
||||
macUser = "02:00:00:00:00:04";
|
||||
ip = "192.168.50.114";
|
||||
gate = "192.168.50.1";
|
||||
ssh = 2204;
|
||||
};
|
||||
ssl = {
|
||||
cert = "${sslPath}/${domain}/fullchain.pem";
|
||||
key = "${sslPath}/${domain}/key.pem";
|
||||
path = ssl;
|
||||
cert = "${ssl}/fullchain.pem";
|
||||
key = "${ssl}/key.pem";
|
||||
};
|
||||
varPaths = {
|
||||
path0 = "${varPath}/${name}";
|
||||
path1 = "${cachePath}/${name}";
|
||||
};
|
||||
mntPaths = {
|
||||
path0 = "${mntPath}/${name}";
|
||||
};
|
||||
secretPaths = {
|
||||
path0 = secrets;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,12 +37,12 @@ in
|
|||
};
|
||||
interface = {
|
||||
id = "vm-${name}";
|
||||
mac = "02:00:00:00:00:53";
|
||||
mac = "02:00:00:00:53:03";
|
||||
idUser = "vmuser-${name}";
|
||||
macUser = "02:00:00:00:00:05";
|
||||
ip = "192.168.50.153";
|
||||
macUser = "02:00:00:00:00:03";
|
||||
ip = "192.168.50.113";
|
||||
gate = "192.168.50.1";
|
||||
ssh = 2205;
|
||||
ssh = 2203;
|
||||
};
|
||||
|
||||
ssl = {
|
||||
|
|
|
|||
|
|
@ -38,12 +38,12 @@ in
|
|||
};
|
||||
interface = {
|
||||
id = "vm-${name}";
|
||||
mac = "02:00:00:00:00:52";
|
||||
mac = "02:00:00:00:52:02";
|
||||
idUser = "vmuser-${name}";
|
||||
macUser = "03:00:00:00:00:04";
|
||||
ip = "192.168.50.152";
|
||||
macUser = "02:00:00:00:00:02";
|
||||
ip = "192.168.50.112";
|
||||
gate = "192.168.50.1";
|
||||
ssh = 2203;
|
||||
ssh = 2202;
|
||||
};
|
||||
ssl = {
|
||||
path = ssl;
|
||||
|
|
@ -53,6 +53,7 @@ in
|
|||
varPaths = {
|
||||
path0 = "${varPath}/${name}";
|
||||
path1 = "${cachePath}/${name}";
|
||||
path2 = "${varPath}/${name}-media";
|
||||
};
|
||||
mntPaths = {
|
||||
path0 = "${mntPath}/${name}";
|
||||
|
|
|
|||
|
|
@ -36,10 +36,10 @@ in
|
|||
};
|
||||
interface = {
|
||||
id = "vm-${name}";
|
||||
mac = "02:00:00:00:00:51";
|
||||
mac = "02:00:00:00:51:01";
|
||||
idUser = "vmuser-vault";
|
||||
macUser = "02:00:00:00:00:03";
|
||||
ip = "192.168.50.151";
|
||||
macUser = "02:00:00:00:00:01";
|
||||
ip = "192.168.50.111";
|
||||
gate = "192.168.50.1";
|
||||
ssh = 2201;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue