buildfarm: delete Packet machines, prefer deploying with netboot
Graham Christensen committed
Sep 29, 2019 at 23:42 UTC
aa87e1907913c2b9483bdfaefe65f2b3e32f9088
4 files changed
-359
delft/network.nix
-2
@@ -36,8 +36,6 @@ in {
36
lucifer = { deployment.targetHost = "lucifer.ewi.tudelft.nl"; imports = [ ./lucifer.nix ]; };
37
wendy = { deployment.targetHost = "wendy.ewi.tudelft.nl"; imports = [ ./wendy.nix ]; };
38
ike = { deployment.targetHost = "ike.ewi.tudelft.nl"; imports = [ ./build-machines-dell-r815.nix ]; };
39
- packet-epyc-1 = { deployment.targetHost = "147.75.198.47"; imports = [ ./packet/packet-epyc-1.nix ./build-machines-common.nix ]; };
40
- packet-t2-4 = { deployment.targetHost = "147.75.98.145"; imports = [ ./packet/packet-t2-4.nix ./build-machines-common.nix ]; };
39
chef = import ./chef.nix;
40
eris = import ./eris.nix;
41
ceres = import ./ceres.nix;
delft/packet/packet-epyc-1.nix
deleted
-139
@@ -1,139 +0,0 @@
1
-{
2
- imports = [
3
- ({ lib, ... }:
4
- {
5
- boot = {
6
- loader = {
7
- systemd-boot.enable = lib.mkForce false;
8
- grub = {
9
- enable = true;
10
- extraConfig = ''
11
- serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
12
- terminal_output serial console
13
- terminal_input serial console
14
- '';
15
- };
16
- efi = {
17
- efiSysMountPoint = "/boot/efi";
18
- canTouchEfiVariables = lib.mkForce false;
19
- };
20
- };
21
- };
22
- fileSystems = {
23
- "/" = {
24
- label = "nixos";
25
- fsType = "ext4";
26
- };
27
- "/boot/efi" = {
28
- device = "/dev/sda1";
29
- fsType = "vfat";
30
- };
31
- };
32
- swapDevices = [
33
- { label = "swap"; }
34
- ];
35
- })
36
- {
37
- networking.hostId = "c6721623";
38
- }
39
- {
40
- networking.hostName = "packet-epyc-1";
41
- networking.dhcpcd.enable = false;
42
- networking.defaultGateway = {
43
- address = "147.75.198.46";
44
- interface = "bond0";
45
- };
46
- networking.defaultGateway6 = {
47
- address = "2604:1380:0:d600::8";
48
- interface = "bond0";
49
- };
50
- networking.nameservers = [
51
- "147.75.207.207"
52
- "147.75.207.208"
53
- ];
54
- networking.bonds.bond0 = {
55
- driverOptions = {
56
- mode = "802.3ad";
57
- xmit_hash_policy = "layer3+4";
58
- lacp_rate = "fast";
59
- downdelay = "200";
60
- miimon = "100";
61
- updelay = "200";
62
- };
63
- interfaces = [
64
- "enp1s0f0"
65
- "enp1s0f1"
66
- ];
67
- };
68
- networking.interfaces.bond0 = {
69
- useDHCP = false;
70
- ipv4 = {
71
- routes = [
72
- {
73
- address = "10.0.0.0";
74
- prefixLength = 8;
75
- via = "10.99.98.136";
76
- }
77
- ];
78
- addresses = [
79
- {
80
- address = "147.75.198.47";
81
- prefixLength = 31;
82
- }
83
- {
84
- address = "10.99.98.137";
85
- prefixLength = 31;
86
- }
87
- ];
88
- };
89
- ipv6 = {
90
- addresses = [
91
- {
92
- address = "2604:1380:0:d600::9";
93
- prefixLength = 127;
94
- }
95
- ];
96
- };
97
- };
98
- }
99
- {
100
- boot.kernelModules = [
101
- "dm_multipath"
102
- "dm_round_robin"
103
- ];
104
- services.openssh.enable = true;
105
- }
106
- ({ config, lib, pkgs, ... }:
107
- {
108
- nixpkgs.config.allowUnfree = true;
109
- boot.kernelPackages = pkgs.linuxPackages_4_14;
110
- boot.loader.grub = {
111
- version = 2;
112
- efiSupport = true;
113
- device = "nodev";
114
- efiInstallAsRemovable = true;
115
- extraConfig = ''
116
- serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
117
- terminal_output serial console
118
- terminal_input serial console
119
- '';
120
- };
121
- boot.initrd.availableKernelModules = [
122
- "xhci_pci"
123
- "ahci"
124
- "mpt3sas"
125
- "sd_mod"
126
- ];
127
- boot.kernelModules = [
128
- "kvm-amd"
129
- ];
130
- boot.kernelParams = [
131
- "console=ttyS1,115200n8"
132
- ];
133
- boot.extraModulePackages = [];
134
- hardware.enableAllFirmware = true;
135
- nix.maxJobs = 48;
136
- nix.buildCores = lib.mkForce 4;
137
- })
138
- ];
139
-}
delft/packet/packet-t2-4.nix
deleted
-99
@@ -1,99 +0,0 @@
1
-{ lib, pkgs, ... }:
2
- {
3
- networking.hostId = "ba66ccd0";
4
- networking.hostName = "packet-t2-4";
5
- networking.dhcpcd.enable = false;
6
- networking.defaultGateway = {
7
- address = "147.75.98.144";
8
- interface = "bond0";
9
- };
10
- networking.defaultGateway6 = {
11
- address = "2604:1380:0:d600::2";
12
- interface = "bond0";
13
- };
14
- networking.nameservers = [
15
- "147.75.207.207"
16
- "147.75.207.208"
17
- ];
18
- networking.bonds.bond0 = {
19
- driverOptions = {
20
- mode = "802.3ad";
21
- xmit_hash_policy = "layer3+4";
22
- lacp_rate = "fast";
23
- downdelay = "200";
24
- miimon = "100";
25
- updelay = "200";
26
- };
27
- interfaces = [
28
- "enp2s0"
29
- "enp2s0d1"
30
- ];
31
- };
32
- networking.interfaces.bond0 = {
33
- useDHCP = true;
34
- ipv4 = {
35
- routes = [
36
- {
37
- address = "10.0.0.0";
38
- prefixLength = 8;
39
- via = "10.99.98.130";
40
- }
41
- ];
42
- addresses = [
43
- {
44
- address = "147.75.98.145";
45
- prefixLength = 31;
46
- }
47
- {
48
- address = "10.99.98.131";
49
- prefixLength = 31;
50
- }
51
- ];
52
- };
53
- ipv6 = {
54
- addresses = [
55
- {
56
- address = "2604:1380:0:d600::3";
57
- prefixLength = 127;
58
- }
59
- ];
60
- };
61
- };
62
-
63
- nixpkgs.config.allowUnfree = true;
64
- boot.initrd.availableKernelModules = [
65
- "xhci_pci"
66
- "ehci_pci"
67
- "ahci"
68
- "megaraid_sas"
69
- "sd_mod"
70
- ];
71
- boot.kernelPackages = pkgs.linuxPackages_4_14;
72
- boot.kernelModules = [
73
- "kvm-intel"
74
- ];
75
- boot.kernelParams = [
76
- "console=ttyS1,115200n8"
77
- ];
78
- boot.extraModulePackages = [];
79
- hardware.enableAllFirmware = true;
80
- nix.maxJobs = 48;
81
- nix.buildCores = lib.mkForce 4;
82
- boot.loader.grub.devices = [
83
- "/dev/sda"
84
- ];
85
- boot.loader.grub.extraConfig = ''
86
- serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
87
- terminal_output serial console
88
- terminal_input serial console
89
- '';
90
- fileSystems = {
91
- "/" = {
92
- label = "nixos";
93
- fsType = "ext4";
94
- };
95
- };
96
- swapDevices = [
97
- { label = "swap"; }
98
- ];
99
- }
delft/packet/packet-t2a-2.nix
deleted
-119
@@ -1,119 +0,0 @@
1
-{ lib, pkgs, ... }:
2
- {
3
- boot = {
4
- loader = {
5
- systemd-boot.enable = lib.mkForce false;
6
- grub = {
7
- enable = true;
8
- version = 2;
9
- efiSupport = true;
10
- device = "nodev";
11
- efiInstallAsRemovable = true;
12
- font = null;
13
- splashImage = null;
14
- extraConfig = ''
15
- serial
16
- terminal_input serial console
17
- terminal_output serial console
18
- '';
19
- };
20
- efi = {
21
- efiSysMountPoint = "/boot/efi";
22
- canTouchEfiVariables = lib.mkForce false;
23
- };
24
- };
25
- initrd = {
26
- availableKernelModules = [
27
- "ahci"
28
- "pci_thunder_ecam"
29
- ];
30
- };
31
- kernelParams = [
32
- "cma=0M"
33
- "biosdevname=0"
34
- "net.ifnames=0"
35
- "console=ttyAMA0"
36
- ];
37
- kernelPackages = pkgs.linuxPackages_4_14;
38
- };
39
-
40
- networking.hostId = "6150845b";
41
- networking.hostName = "packet-t2a-2";
42
- networking.dhcpcd.enable = false;
43
- networking.defaultGateway = {
44
- address = "147.75.79.197";
45
- interface = "bond0";
46
- };
47
- networking.defaultGateway6 = {
48
- address = "2604:1380:0:d600::4";
49
- interface = "bond0";
50
- };
51
- networking.nameservers = [
52
- "147.75.207.207"
53
- "147.75.207.208"
54
- ];
55
- networking.bonds.bond0 = {
56
- driverOptions = {
57
- mode = "802.3ad";
58
- xmit_hash_policy = "layer3+4";
59
- lacp_rate = "fast";
60
- downdelay = "200";
61
- miimon = "100";
62
- updelay = "200";
63
- };
64
- interfaces = [ "eth0" "eth1" ];
65
- };
66
- networking.interfaces.bond0 = {
67
- useDHCP = false;
68
- ipv4 = {
69
- routes = [
70
- {
71
- address = "10.0.0.0";
72
- prefixLength = 8;
73
- via = "10.99.98.132";
74
- }
75
- ];
76
- addresses = [
77
- {
78
- address = "147.75.79.198";
79
- prefixLength = 30;
80
- }
81
- {
82
- address = "10.99.98.133";
83
- prefixLength = 31;
84
- }
85
- ];
86
- };
87
- ipv6 = {
88
- addresses = [
89
- {
90
- address = "2604:1380:0:d600::5";
91
- prefixLength = 127;
92
- }
93
- ];
94
- };
95
- };
96
- fileSystems = {
97
- "/" = {
98
- device = "/dev/sda2";
99
- fsType = "ext4";
100
- };
101
- "/boot/efi" = {
102
- device = "/dev/sda1";
103
- fsType = "vfat";
104
- };
105
- };
106
- services.openssh.enable = true;
107
- nix = {
108
- maxJobs = 96;
109
- buildCores = 4;
110
- };
111
- nixpkgs = {
112
- system = "aarch64-linux";
113
- config = {
114
- allowUnfree = true;
115
- };
116
- };
117
- system.stateVersion = lib.mkForce "18.03";
118
- }
119
-