mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
refactor(dnsmasq): system host info
This commit is contained in:
parent
86ac38cf2c
commit
6c88d99ae6
30 changed files with 841 additions and 288 deletions
|
|
@ -5,6 +5,7 @@ for node in reisen; do
|
|||
nix eval --json "${NF_CONFIG_ROOT}#lib.generate.$node.users" | jq -M . > "$NF_CONFIG_ROOT/systems/$node/users.json"
|
||||
nix eval --json "${NF_CONFIG_ROOT}#lib.generate.$node.systems" | jq -M . > "$NF_CONFIG_ROOT/systems/$node/systems.json"
|
||||
done
|
||||
nix eval --json "${NF_CONFIG_ROOT}#lib.generate.systems" | jq -M . > "$NF_CONFIG_ROOT/ci/systems.json"
|
||||
|
||||
for ciconfig in "${NF_CONFIG_FILES[@]}"; do
|
||||
echo "processing ${ciconfig}..." >&2
|
||||
|
|
|
|||
328
ci/systems.json
Normal file
328
ci/systems.json
Normal file
|
|
@ -0,0 +1,328 @@
|
|||
{
|
||||
"aya": {
|
||||
"network": {
|
||||
"hostName": "aya",
|
||||
"networks": {
|
||||
"int": {
|
||||
"address4": "10.9.1.73",
|
||||
"address6": "fd0c::49",
|
||||
"macAddress": "BC:24:19:C4:66:A9"
|
||||
},
|
||||
"local": {
|
||||
"address4": "10.1.1.47",
|
||||
"address6": "fd0a::be24:11ff:fec4:66a9",
|
||||
"macAddress": "BC:24:11:C4:66:A9"
|
||||
},
|
||||
"tail": {
|
||||
"address4": "100.109.213.94",
|
||||
"address6": "fd7a:115c:a1e0::eaed:d55e",
|
||||
"macAddress": null
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"ct": {
|
||||
"network": {
|
||||
"hostName": "ct",
|
||||
"networks": {
|
||||
"int": null,
|
||||
"local": null,
|
||||
"tail": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"extern-test": {
|
||||
"network": {
|
||||
"hostName": "extern-test",
|
||||
"networks": {
|
||||
"int": null,
|
||||
"local": null,
|
||||
"tail": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"freeipa": {
|
||||
"network": {
|
||||
"hostName": "idp",
|
||||
"networks": {
|
||||
"int": {
|
||||
"address4": "10.9.1.170",
|
||||
"address6": "fd0c::aa",
|
||||
"macAddress": "BC:24:19:3D:39:91"
|
||||
},
|
||||
"local": {
|
||||
"address4": "10.1.1.46",
|
||||
"address6": "fd0a::be24:11ff:fe3d:3991",
|
||||
"macAddress": "BC:24:11:3D:39:91"
|
||||
},
|
||||
"tail": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"freepbx": {
|
||||
"network": {
|
||||
"hostName": "freepbx",
|
||||
"networks": {
|
||||
"int": null,
|
||||
"local": {
|
||||
"address4": null,
|
||||
"address6": "fd0a::be24:11ff:fe33:1904",
|
||||
"macAddress": "BC:24:11:33:19:04"
|
||||
},
|
||||
"tail": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"hakurei": {
|
||||
"network": {
|
||||
"hostName": "hakurei",
|
||||
"networks": {
|
||||
"int": {
|
||||
"address4": "10.9.1.71",
|
||||
"address6": "fd0c::47",
|
||||
"macAddress": "BC:24:19:C4:66:A7"
|
||||
},
|
||||
"local": {
|
||||
"address4": "10.1.1.41",
|
||||
"address6": "fd0a::be24:11ff:fec4:66a7",
|
||||
"macAddress": "BC:24:11:C4:66:A7"
|
||||
},
|
||||
"tail": {
|
||||
"address4": "100.71.65.59",
|
||||
"address6": "fd7a:115c:a1e0::9187:413b",
|
||||
"macAddress": null
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"keycloak": {
|
||||
"network": {
|
||||
"hostName": "keycloak",
|
||||
"networks": {
|
||||
"int": {
|
||||
"address4": "10.9.1.75",
|
||||
"address6": "fd0c::4b",
|
||||
"macAddress": "BC:24:19:C4:66:AC"
|
||||
},
|
||||
"local": {
|
||||
"address4": "10.1.1.48",
|
||||
"address6": "fd0a::be24:11ff:fec4:66ac",
|
||||
"macAddress": "BC:24:11:C4:66:AC"
|
||||
},
|
||||
"tail": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"kitchencam": {
|
||||
"network": {
|
||||
"hostName": "kitchencam",
|
||||
"networks": {
|
||||
"int": null,
|
||||
"local": {
|
||||
"address4": null,
|
||||
"address6": "fd0a::ba27:ebff:fea8:f4ff",
|
||||
"macAddress": null
|
||||
},
|
||||
"tail": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"kuwubernetes": {
|
||||
"network": {
|
||||
"hostName": "kuwubernetes",
|
||||
"networks": {
|
||||
"int": null,
|
||||
"local": {
|
||||
"address4": "10.1.1.42",
|
||||
"address6": "fd0a::be24:11ff:fe49:fedc",
|
||||
"macAddress": "BC:24:11:49:FE:DC"
|
||||
},
|
||||
"tail": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"litterbox": {
|
||||
"network": {
|
||||
"hostName": "litterbox",
|
||||
"networks": {
|
||||
"int": {
|
||||
"address4": "10.9.1.74",
|
||||
"address6": "fd0c::4a",
|
||||
"macAddress": "BC:24:19:C4:66:AB"
|
||||
},
|
||||
"local": {
|
||||
"address4": null,
|
||||
"address6": "fd0a::be24:11ff:fec4:66ab",
|
||||
"macAddress": "BC:24:11:C4:66:AB"
|
||||
},
|
||||
"tail": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"mediabox": {
|
||||
"network": {
|
||||
"hostName": "mediabox",
|
||||
"networks": {
|
||||
"int": {
|
||||
"address4": "10.9.1.70",
|
||||
"address6": "fd0c::46",
|
||||
"macAddress": "BC:24:19:34:F4:A8"
|
||||
},
|
||||
"local": {
|
||||
"address4": "10.1.1.44",
|
||||
"address6": "fd0a::be24:11ff:fe34:f4a8",
|
||||
"macAddress": "BC:24:11:34:F4:A8"
|
||||
},
|
||||
"tail": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"nue": {
|
||||
"network": {
|
||||
"hostName": "nue",
|
||||
"networks": {
|
||||
"int": null,
|
||||
"local": {
|
||||
"address4": "10.1.1.62",
|
||||
"address6": "fd0a::daf8:83ff:fe36:81b6",
|
||||
"macAddress": null
|
||||
},
|
||||
"tail": {
|
||||
"address4": "100.86.77.54",
|
||||
"address6": "fd7a:115c:a1e0:ab12:4843:cd96:6256:4d36",
|
||||
"macAddress": null
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"reimu": {
|
||||
"network": {
|
||||
"hostName": "reimu",
|
||||
"networks": {
|
||||
"int": {
|
||||
"address4": "10.9.1.72",
|
||||
"address6": "fd0c::48",
|
||||
"macAddress": "BC:24:19:C4:66:A8"
|
||||
},
|
||||
"local": {
|
||||
"address4": "10.1.1.45",
|
||||
"address6": "fd0a::be24:11ff:fec4:66a8",
|
||||
"macAddress": "BC:24:11:C4:66:A8"
|
||||
},
|
||||
"tail": {
|
||||
"address4": "100.113.253.48",
|
||||
"address6": "fd7a:115c:a1e0::f1b1:fd30",
|
||||
"macAddress": null
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"reisen": {
|
||||
"network": {
|
||||
"hostName": "reisen",
|
||||
"networks": {
|
||||
"int": {
|
||||
"address4": "10.9.1.2",
|
||||
"address6": "fd0c::2",
|
||||
"macAddress": null
|
||||
},
|
||||
"local": {
|
||||
"address4": "10.1.1.40",
|
||||
"address6": null,
|
||||
"macAddress": null
|
||||
},
|
||||
"tail": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"shanghai": {
|
||||
"network": {
|
||||
"hostName": "shanghai",
|
||||
"networks": {
|
||||
"int": null,
|
||||
"local": {
|
||||
"address4": "10.1.1.32",
|
||||
"address6": "fd0a::1ac0:4dff:fe08:87bc",
|
||||
"macAddress": "18:c0:4d:08:87:bc"
|
||||
},
|
||||
"tail": {
|
||||
"address4": "100.104.155.122",
|
||||
"address6": "fd7a:115c:a1e0:ab12:4843:cd96:6268:9b7a",
|
||||
"macAddress": null
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tei": {
|
||||
"network": {
|
||||
"hostName": "tei",
|
||||
"networks": {
|
||||
"int": {
|
||||
"address4": "10.9.1.69",
|
||||
"address6": "fd0c::45",
|
||||
"macAddress": "BC:24:19:CC:66:57"
|
||||
},
|
||||
"local": {
|
||||
"address4": "10.1.1.39",
|
||||
"address6": "fd0a::be24:11ff:fecc:6657",
|
||||
"macAddress": "BC:24:11:CC:66:57"
|
||||
},
|
||||
"tail": {
|
||||
"address4": "100.74.104.29",
|
||||
"address6": "fd7a:115c:a1e0::fd8a:681d",
|
||||
"macAddress": null
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tewi": {
|
||||
"network": {
|
||||
"hostName": "tewi",
|
||||
"networks": {
|
||||
"int": null,
|
||||
"local": {
|
||||
"address4": null,
|
||||
"address6": "fd0a::eea8:6bff:fefe:3986",
|
||||
"macAddress": null
|
||||
},
|
||||
"tail": {
|
||||
"address4": "100.88.107.41",
|
||||
"address6": "fd7a:115c:a1e0:ab12:4843:cd96:6258:6b29",
|
||||
"macAddress": null
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"u7pro": {
|
||||
"network": {
|
||||
"hostName": "u7-pro",
|
||||
"networks": {
|
||||
"int": null,
|
||||
"local": {
|
||||
"address4": "10.1.1.3",
|
||||
"address6": null,
|
||||
"macAddress": null
|
||||
},
|
||||
"tail": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"utsuho": {
|
||||
"network": {
|
||||
"hostName": "utsuho",
|
||||
"networks": {
|
||||
"int": {
|
||||
"address4": "10.9.1.76",
|
||||
"address6": "fd0c::4c",
|
||||
"macAddress": "BC:24:19:C4:66:A6"
|
||||
},
|
||||
"local": {
|
||||
"address4": "10.1.1.38",
|
||||
"address6": "fd0a::be24:11ff:fec4:66a6",
|
||||
"macAddress": "BC:24:11:C4:66:A6"
|
||||
},
|
||||
"tail": null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue