ops/nixos: add bvm-netbox
This commit is contained in:
parent
7a3f214944
commit
286ed4885d
6 changed files with 39 additions and 9 deletions
28
ops/nixos/bvm-netbox/default.nix
Normal file
28
ops/nixos/bvm-netbox/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../lib/bvm.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# Networking!
|
||||||
|
networking = {
|
||||||
|
hostName = "bvm-netbox";
|
||||||
|
hostId = "e70e18a5";
|
||||||
|
|
||||||
|
interfaces.enp1s0 = {
|
||||||
|
ipv4.addresses = [{ address = "10.100.0.206"; prefixLength = 23; }];
|
||||||
|
};
|
||||||
|
interfaces.enp6s0 = {
|
||||||
|
ipv4.addresses = [{ address = "92.118.28.8"; prefixLength = 24; }];
|
||||||
|
ipv6.addresses = [{ address = "2a09:a441::8"; prefixLength = 32; }];
|
||||||
|
};
|
||||||
|
defaultGateway = { address = "92.118.28.1"; interface = "enp6s0"; };
|
||||||
|
defaultGateway6 = { address = "2a09:a441::1"; interface = "enp6s0"; };
|
||||||
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "21.05";
|
||||||
|
}
|
|
@ -40,6 +40,7 @@ let
|
||||||
"bvm-ipfs"
|
"bvm-ipfs"
|
||||||
"bvm-matrix"
|
"bvm-matrix"
|
||||||
"bvm-minecraft"
|
"bvm-minecraft"
|
||||||
|
"bvm-netbox"
|
||||||
];
|
];
|
||||||
rebuilder = system: (import ./lib/rebuilder.nix (args // { system = system; }));
|
rebuilder = system: (import ./lib/rebuilder.nix (args // { system = system; }));
|
||||||
systemCfgs = lib.genAttrs systems
|
systemCfgs = lib.genAttrs systems
|
||||||
|
|
|
@ -13,7 +13,7 @@ in {
|
||||||
isoImage.isoName = lib.mkForce "nixos-${depot.version}-${pkgs.stdenv.hostPlatform.system}.iso";
|
isoImage.isoName = lib.mkForce "nixos-${depot.version}-${pkgs.stdenv.hostPlatform.system}.iso";
|
||||||
|
|
||||||
isoImage.storeContents = [
|
isoImage.storeContents = [
|
||||||
depot.ops.nixos.systems.bvm-minecraft
|
depot.ops.nixos.systems.bvm-netbox
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "21.05";
|
system.stateVersion = "21.05";
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
; SPDX-License-Identifier: Apache-2.0
|
; SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL
|
; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL
|
||||||
@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 9 600 450 3600 300
|
@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 10 600 450 3600 300
|
||||||
|
|
||||||
$INCLUDE tmpl.ns
|
$INCLUDE tmpl.ns
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ $INCLUDE tmpl.ns
|
||||||
5.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-nixosmgmt.public.as205479.net.
|
5.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-nixosmgmt.public.as205479.net.
|
||||||
6.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-matrix.public.as205479.net.
|
6.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-matrix.public.as205479.net.
|
||||||
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.
|
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-plesk.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.
|
||||||
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.
|
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.
|
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.
|
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.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
; SPDX-License-Identifier: Apache-2.0
|
; SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL
|
; 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
|
$INCLUDE tmpl.ns
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ $INCLUDE tmpl.ns
|
||||||
5 600 IN PTR bvm-nixosmgmt.as205479.net.
|
5 600 IN PTR bvm-nixosmgmt.as205479.net.
|
||||||
6 600 IN PTR bvm-matrix.as205479.net.
|
6 600 IN PTR bvm-matrix.as205479.net.
|
||||||
7 600 IN PTR bvm-minecraft.as205479.net.
|
7 600 IN PTR bvm-minecraft.as205479.net.
|
||||||
8 600 IN PTR bvm-plesk.as205479.net.
|
8 600 IN PTR bvm-netbox.as205479.net.
|
||||||
9 600 IN PTR 92-118-28-9.ptr.as205479.net.
|
9 600 IN PTR 92-118-28-9.ptr.as205479.net.
|
||||||
10 600 IN PTR 92-118-28-10.ptr.as205479.net.
|
10 600 IN PTR 92-118-28-10.ptr.as205479.net.
|
||||||
11 600 IN PTR 92-118-28-11.ptr.as205479.net.
|
11 600 IN PTR 92-118-28-11.ptr.as205479.net.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
; SPDX-License-Identifier: Apache-2.0
|
; SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL
|
; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL
|
||||||
@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 24 600 450 3600 300
|
@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 25 600 450 3600 300
|
||||||
|
|
||||||
; NB: this are also glue records in Google Domains.
|
; NB: this are also glue records in Google Domains.
|
||||||
$INCLUDE tmpl.ns
|
$INCLUDE tmpl.ns
|
||||||
|
@ -110,6 +110,7 @@ bvm-prosody.blade 3600 IN A 10.100.0.202
|
||||||
bvm-ipfs.blade 3600 IN A 10.100.0.203
|
bvm-ipfs.blade 3600 IN A 10.100.0.203
|
||||||
bvm-win10.blade 3600 IN A 10.100.0.204
|
bvm-win10.blade 3600 IN A 10.100.0.204
|
||||||
bvm-matrix.blade 3600 IN A 10.100.0.205
|
bvm-matrix.blade 3600 IN A 10.100.0.205
|
||||||
|
bvm-netbox.blade 3600 IN A 10.100.0.206
|
||||||
|
|
||||||
; services
|
; services
|
||||||
; ceph-mon: blade-tuvok, blade-janeway, blade-paris
|
; ceph-mon: blade-tuvok, blade-janeway, blade-paris
|
||||||
|
@ -146,9 +147,9 @@ bvm-matrix 3600 IN AAAA 2a09:a441::6
|
||||||
bvm-minecraft.public 3600 IN CNAME bvm-minecraft.as205479.net.
|
bvm-minecraft.public 3600 IN CNAME bvm-minecraft.as205479.net.
|
||||||
bvm-minecraft 3600 IN A 92.118.28.7
|
bvm-minecraft 3600 IN A 92.118.28.7
|
||||||
bvm-minecraft 3600 IN AAAA 2a09:a441::7
|
bvm-minecraft 3600 IN AAAA 2a09:a441::7
|
||||||
bvm-plesk.public 3600 IN CNAME bvm-plesk.as205479.net.
|
bvm-netbox.public 3600 IN CNAME bvm-netbox.as205479.net.
|
||||||
bvm-plesk 3600 IN A 92.118.28.8
|
bvm-netbox 3600 IN A 92.118.28.8
|
||||||
bvm-plesk 3600 IN AAAA 2a09:a441::8
|
bvm-netbox 3600 IN AAAA 2a09:a441::8
|
||||||
|
|
||||||
92-118-28-0.ptr 6000 IN A 92.118.28.0
|
92-118-28-0.ptr 6000 IN A 92.118.28.0
|
||||||
92-118-28-1.ptr 6000 IN A 92.118.28.1
|
92-118-28-1.ptr 6000 IN A 92.118.28.1
|
||||||
|
|
Loading…
Reference in a new issue