cluster: add bc01n05.hswaw.net
This will be our postgres pet machine.
Change-Id: Ifff6648394ca6407fb5b5daa853f4abc42541703
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1467
Reviewed-by: q3k <q3k@hackerspace.pl>
diff --git a/cluster/kube/k0.libsonnet b/cluster/kube/k0.libsonnet
index 87286da..a4172e8 100644
--- a/cluster/kube/k0.libsonnet
+++ b/cluster/kube/k0.libsonnet
@@ -139,9 +139,14 @@
devices: [
{ name: "/dev/disk/by-id/wwn-0x" + id }
for id in [
- "5000c5008508c433",
- "5000c500850989cf",
- "5000c5008508baf7",
+ "5000c5008508c433", # ST6000NM0034 Z4D40QZR0000R629ME1B
+ "5000c500850989cf", # ST6000NM0034 Z4D40JRL0000R63008A2
+ "5000c5008508baf7", # ST6000NM0034 Z4D40M380000R630V00M
+ "5000c5008508f843", # ST6000NM0034 Z4D40LGP0000R630UVTD
+ "5000c500850312cb", # ST6000NM0034 Z4D3ZAAX0000R629NW31
+ "5000c500850293e3", # ST6000NM0034 Z4D3Z5TD0000R629MF7P
+ "5000c5008508e3ef", # ST6000NM0034 Z4D40LM50000R630V0W3
+ "5000c5008508e23f", # ST6000NM0034 Z4D40QMX0000R629MD3C
]
],
},
diff --git a/cluster/machines/bc01n05.hswaw.net.nix b/cluster/machines/bc01n05.hswaw.net.nix
new file mode 100644
index 0000000..bb3da23
--- /dev/null
+++ b/cluster/machines/bc01n05.hswaw.net.nix
@@ -0,0 +1,27 @@
+{ config, pkgs, ... }:
+
+with builtins;
+
+rec {
+ networking.hostName = "bc01n05";
+ # TODO: undefine fqdn and define domain after big nix change
+ hscloud.base.fqdn = "${networking.hostName}.hswaw.net";
+ #networking.domain = "hswaw.net";
+ system.stateVersion = "22.05";
+ nix.maxJobs = 16;
+
+ boot.loader.grub.device = "/dev/sda";
+ fileSystems."/".device = "/dev/disk/by-uuid/c6658511-3304-44ba-a161-049b843e63f8";
+ fileSystems."/boot" = {
+ device = "/dev/disk/by-uuid/2a951c5d-0193-4ef3-9227-d8a5184cbd63";
+ fsType = "ext4";
+ };
+
+ hscloud.base = {
+ mgmtIf = "eno1";
+ ipAddr = "185.236.240.37";
+ ipAddrBits = 28;
+ gw = "185.236.240.33";
+ };
+}
+
diff --git a/ops/machines.nix b/ops/machines.nix
index 10b5d4f..5f9307b 100644
--- a/ops/machines.nix
+++ b/ops/machines.nix
@@ -109,6 +109,7 @@
machines = self: {
"bc01n01.hswaw.net" = mkClusterMachineNew self ../cluster/machines/bc01n01.hswaw.net.nix;
"bc01n02.hswaw.net" = mkClusterMachine self ../cluster/machines/bc01n02.hswaw.net.nix;
+ "bc01n05.hswaw.net" = mkClusterMachineNew self ../cluster/machines/bc01n05.hswaw.net.nix;
"dcr01s22.hswaw.net" = mkClusterMachine self ../cluster/machines/dcr01s22.hswaw.net.nix;
"dcr01s24.hswaw.net" = mkClusterMachine self ../cluster/machines/dcr01s24.hswaw.net.nix;