From a0453a37453f302f567fce515aa11ef1efb3e8a6 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Fri, 25 Oct 2019 13:57:56 -0400 Subject: [PATCH] Add the new storage servers --- morph/grid.nix | 20 ++++++++++++++++++++ morph/storage001-config.nix | 8 ++++++++ morph/storage001-hardware.nix | 32 ++++++++++++++++++++++++++++++++ morph/storage002-config.nix | 8 ++++++++ morph/storage002-hardware.nix | 25 +++++++++++++++++++++++++ morph/storage003-config.nix | 8 ++++++++ morph/storage003-hardware.nix | 30 ++++++++++++++++++++++++++++++ morph/storage004-config.nix | 8 ++++++++ morph/storage004-hardware.nix | 25 +++++++++++++++++++++++++ morph/storage005-config.nix | 8 ++++++++ morph/storage005-hardware.nix | 32 ++++++++++++++++++++++++++++++++ 11 files changed, 204 insertions(+) create mode 100644 morph/storage001-config.nix create mode 100644 morph/storage001-hardware.nix create mode 100644 morph/storage002-config.nix create mode 100644 morph/storage002-hardware.nix create mode 100644 morph/storage003-config.nix create mode 100644 morph/storage003-hardware.nix create mode 100644 morph/storage004-config.nix create mode 100644 morph/storage004-hardware.nix create mode 100644 morph/storage005-config.nix create mode 100644 morph/storage005-hardware.nix diff --git a/morph/grid.nix b/morph/grid.nix index 2c3aabec..cae9f6f7 100644 --- a/morph/grid.nix +++ b/morph/grid.nix @@ -23,5 +23,25 @@ import ./make-grid.nix { cfg = import ./storage000-config.nix; hardware = ./storage000-hardware.nix; } // cfg); + "storage001" = import ./make-storage.nix ({ + cfg = import ./storage001-config.nix; + hardware = ./storage001-hardware.nix; + } // cfg); + "storage002" = import ./make-storage.nix ({ + cfg = import ./storage002-config.nix; + hardware = ./storage002-hardware.nix; + } // cfg); + "storage003" = import ./make-storage.nix ({ + cfg = import ./storage003-config.nix; + hardware = ./storage003-hardware.nix; + } // cfg); + "storage004" = import ./make-storage.nix ({ + cfg = import ./storage004-config.nix; + hardware = ./storage004-hardware.nix; + } // cfg); + "storage005" = import ./make-storage.nix ({ + cfg = import ./storage005-config.nix; + hardware = ./storage005-hardware.nix; + } // cfg); }; } diff --git a/morph/storage001-config.nix b/morph/storage001-config.nix new file mode 100644 index 00000000..2c4cd767 --- /dev/null +++ b/morph/storage001-config.nix @@ -0,0 +1,8 @@ +{ "interface" = "eno1"; + "publicIPv4" = "176.113.72.38"; + "prefixLength" = 30; + "gateway" = "176.113.72.37"; + "gatewayInterface" = "eno1"; + "grubDeviceID" = "wwn-0x5000cca25cc08d27"; + "rootPublicKey" = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN4GenAY/YLGuf1WoMXyyVa3S9i4JLQ0AG+pt7nvcLlQ exarkun@baryon"; +} diff --git a/morph/storage001-hardware.nix b/morph/storage001-hardware.nix new file mode 100644 index 00000000..3346ddd7 --- /dev/null +++ b/morph/storage001-hardware.nix @@ -0,0 +1,32 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, ... }: + +{ + imports = + [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> + ]; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "megaraid_sas" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/f72c1f46-6723-45bf-9ef7-92f31cc37589"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/cb3a16e1-d811-4659-be42-15e5e35cd37a"; + fsType = "ext4"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/f986a811-4912-4e9a-8bc3-01cb6926c4c6"; } + ]; + + nix.maxJobs = lib.mkDefault 24; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; +} diff --git a/morph/storage002-config.nix b/morph/storage002-config.nix new file mode 100644 index 00000000..70e45c5e --- /dev/null +++ b/morph/storage002-config.nix @@ -0,0 +1,8 @@ +{ "interface" = "eno1"; + "publicIPv4" = "37.120.214.110"; + "prefixLength" = 30; + "gateway" = "37.120.214.109"; + "gatewayInterface" = "eno1"; + "grubDeviceID" = "wwn-0x5000cca25dccb3dc"; + "rootPublicKey" = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN4GenAY/YLGuf1WoMXyyVa3S9i4JLQ0AG+pt7nvcLlQ exarkun@baryon"; +} diff --git a/morph/storage002-hardware.nix b/morph/storage002-hardware.nix new file mode 100644 index 00000000..fe2b783f --- /dev/null +++ b/morph/storage002-hardware.nix @@ -0,0 +1,25 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, ... }: + +{ + imports = + [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> + ]; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "megaraid_sas" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/9721366a-7f75-45b6-908a-cde68ed82295"; + fsType = "ext4"; + }; + + swapDevices = [ ]; + + nix.maxJobs = lib.mkDefault 24; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; +} diff --git a/morph/storage003-config.nix b/morph/storage003-config.nix new file mode 100644 index 00000000..5c76ad1b --- /dev/null +++ b/morph/storage003-config.nix @@ -0,0 +1,8 @@ +{ "interface" = "eno1"; + "publicIPv4" = "45.83.89.186"; + "prefixLength" = 30; + "gateway" = "45.83.89.185"; + "gatewayInterface" = "eno1"; + "grubDeviceID" = "wwn-0x5000cca248c31469"; + "rootPublicKey" = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN4GenAY/YLGuf1WoMXyyVa3S9i4JLQ0AG+pt7nvcLlQ exarkun@baryon"; +} diff --git a/morph/storage003-hardware.nix b/morph/storage003-hardware.nix new file mode 100644 index 00000000..f993c7c6 --- /dev/null +++ b/morph/storage003-hardware.nix @@ -0,0 +1,30 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, ... }: + +{ + imports = + [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> + ]; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "megaraid_sas" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/daf0b345-97da-46bc-b9df-500d771ec375"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/a1843705-f4e9-4805-924c-19f464d23da7"; + fsType = "ext4"; + }; + + swapDevices = [ ]; + + nix.maxJobs = lib.mkDefault 24; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; +} diff --git a/morph/storage004-config.nix b/morph/storage004-config.nix new file mode 100644 index 00000000..881fb41b --- /dev/null +++ b/morph/storage004-config.nix @@ -0,0 +1,8 @@ +{ "interface" = "eno1"; + "publicIPv4" = "87.101.93.198"; + "prefixLength" = 30; + "gateway" = "87.101.93.197"; + "gatewayInterface" = "eno1"; + "grubDeviceID" = "wwn-0x5000cca249d45533"; + "rootPublicKey" = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN4GenAY/YLGuf1WoMXyyVa3S9i4JLQ0AG+pt7nvcLlQ exarkun@baryon"; +} diff --git a/morph/storage004-hardware.nix b/morph/storage004-hardware.nix new file mode 100644 index 00000000..6b8d0f19 --- /dev/null +++ b/morph/storage004-hardware.nix @@ -0,0 +1,25 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, ... }: + +{ + imports = + [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> + ]; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "megaraid_sas" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/d628122e-05d9-4212-b6a5-4b9516d85dbe"; + fsType = "ext4"; + }; + + swapDevices = [ ]; + + nix.maxJobs = lib.mkDefault 32; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; +} diff --git a/morph/storage005-config.nix b/morph/storage005-config.nix new file mode 100644 index 00000000..276f5cae --- /dev/null +++ b/morph/storage005-config.nix @@ -0,0 +1,8 @@ +{ "interface" = "eno1"; + "publicIPv4" = "193.148.18.206"; + "prefixLength" = 30; + "gateway" = "193.148.18.205"; + "gatewayInterface" = "eno1"; + "grubDeviceID" = "wwn-0x5000cca25dcc78b5"; + "rootPublicKey" = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN4GenAY/YLGuf1WoMXyyVa3S9i4JLQ0AG+pt7nvcLlQ exarkun@baryon"; +} diff --git a/morph/storage005-hardware.nix b/morph/storage005-hardware.nix new file mode 100644 index 00000000..2338c06e --- /dev/null +++ b/morph/storage005-hardware.nix @@ -0,0 +1,32 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, ... }: + +{ + imports = + [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> + ]; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "megaraid_sas" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/29d379b9-a3e2-4efd-8ac1-d55bb5751dc2"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/C95C-B700"; + fsType = "vfat"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/4800c196-ee81-43ea-8e48-ae7e222524de"; } + ]; + + nix.maxJobs = lib.mkDefault 32; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; +} -- GitLab