ops/nixos: init bvm-logger

This commit is contained in:
Luke Granger-Brown 2021-12-23 04:11:39 +00:00
parent 646c172193
commit 4e4e8de984
6 changed files with 48 additions and 7 deletions

View file

@ -0,0 +1,32 @@
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ config, depot, lib, pkgs, ... }:
let
inherit (depot.ops) secrets;
in {
imports = [
../lib/bvm.nix
];
# Networking!
networking = {
hostName = "bvm-logger";
hostId = "2610e6ae";
tempAddresses = "disabled";
interfaces.enp1s0 = {
ipv4.addresses = [{ address = "10.100.0.209"; prefixLength = 23; }];
};
interfaces.enp2s0 = {
ipv4.addresses = [{ address = "92.118.28.12"; prefixLength = 24; }];
ipv6.addresses = [{ address = "2a09:a441::12"; prefixLength = 32; }];
};
defaultGateway = { address = "92.118.28.1"; interface = "enp2s0"; };
defaultGateway6 = { address = "2a09:a441::1"; interface = "enp2s0"; };
};
my.ip.tailscale = "100.68.134.82";
system.stateVersion = "21.11";
}

View file

@ -42,6 +42,7 @@ let
"bvm-netbox"
"bvm-radius"
"bvm-heptapod"
"bvm-logger"
];
rebuilder = system: (import ./lib/rebuilder.nix (args // { system = system; }));
systemCfgs = lib.genAttrs systems

View file

@ -13,7 +13,7 @@ in {
isoImage.isoName = lib.mkForce "nixos-${depot.version}-${pkgs.stdenv.hostPlatform.system}.iso";
isoImage.storeContents = [
depot.ops.nixos.systems.bvm-heptapod
depot.ops.nixos.systems.bvm-logger
];
system.stateVersion = "21.11";

View file

@ -3,7 +3,7 @@
; SPDX-License-Identifier: Apache-2.0
; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL
@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 11 600 450 3600 300
@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 12 600 450 3600 300
$INCLUDE tmpl.ns
@ -15,6 +15,9 @@ $INCLUDE tmpl.ns
7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR bvm-minecraft.public.as205479.net.
8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR bvm-netbox.public.as205479.net.
9.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR bvm-radius.public.as205479.net.
10.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR bvm-heptapod.public.as205479.net.
11.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR hg.lukegb.com.
12.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR bvm-logger.public.as205479.net.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR gw.public.as205479.net.
e.f.f.f.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR blade-paris.public.as205479.net.
f.f.f.f.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 3600 IN PTR blade-tuvok.public.as205479.net.

View file

@ -3,7 +3,7 @@
; SPDX-License-Identifier: Apache-2.0
; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL
@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 14 600 450 3600 300
@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 15 600 450 3600 300
$INCLUDE tmpl.ns
@ -17,9 +17,9 @@ $INCLUDE tmpl.ns
7 600 IN PTR bvm-minecraft.as205479.net.
8 600 IN PTR bvm-netbox.as205479.net.
9 600 IN PTR bvm-radius.as205479.net.
10 600 IN PTR 92-118-28-10.ptr.as205479.net.
11 600 IN PTR 92-118-28-11.ptr.as205479.net.
12 600 IN PTR 92-118-28-12.ptr.as205479.net.
10 600 IN PTR bvm-heptapod.as205479.net.
11 600 IN PTR hg.lukegb.com.
12 600 IN PTR bvm-logger.as205479.net.
13 600 IN PTR 92-118-28-13.ptr.as205479.net.
14 600 IN PTR 92-118-28-14.ptr.as205479.net.
15 600 IN PTR 92-118-28-15.ptr.as205479.net.

View file

@ -3,7 +3,7 @@
; SPDX-License-Identifier: Apache-2.0
; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL
@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 41 600 450 3600 300
@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 42 600 450 3600 300
; NB: this are also glue records in Google Domains.
$INCLUDE tmpl.ns
@ -84,6 +84,7 @@ bvm-matrix.int 3600 IN A 100.74.197.67
bvm-netbox.int 3600 IN A 100.81.27.52
bvm-radius.int 3600 IN A 100.120.98.116
bvm-heptapod.int 3600 IN A 100.94.23.105
bvm-logger.int 3600 IN A 100.68.134.82
mac-mini.int 3600 IN A 100.91.188.84
@ -152,6 +153,7 @@ bvm-matrix.blade 3600 IN A 10.100.0.205
bvm-netbox.blade 3600 IN A 10.100.0.206
bvm-radius.blade 3600 IN A 10.100.0.207
bvm-heptapod.blade 3600 IN A 10.100.0.208
bvm-logger.blade 3600 IN A 10.100.0.209
; services
; ceph-mon: blade-tuvok, blade-janeway, blade-paris
@ -201,6 +203,9 @@ radius 3600 IN CNAME bvm-radius.as205479.net.
bvm-heptapod.public 3600 IN CNAME bvm-heptapod.as205479.net.
bvm-heptapod 3600 IN A 92.118.28.10
bvm-heptapod 3600 IN AAAA 2a09:a441::10
bvm-logger.public 3600 IN CNAME bvm-logger.as205479.net.
bvm-logger 3600 IN A 92.118.28.12
bvm-logger 3600 IN AAAA 2a09:a441::12
; quadv
inet-vip.quadv 6000 IN A 92.118.31.254