test-lab/ha: nixpkgs-fmt formatting

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
beatzaplentyandClaude Sonnet 4.6 committed 2026-07-27 06:18:42 +10:00
1 parent dc36a47ac9
commit 34c55f27ca
3 files changed
+17 -17

No files matched your search

+15 -15
View File
@@ -206,18 +206,18 @@ in
# ── Packages ────────────────────────────────────────────────────────── # ── Packages ──────────────────────────────────────────────────────────
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# HA stack # HA stack
corosync # corosync-cfgtool, corosync-quorumtool corosync # corosync-cfgtool, corosync-quorumtool
pacemaker # crm_mon, crm_resource, cibadmin, crm_attribute, pcs CLI pacemaker # crm_mon, crm_resource, cibadmin, crm_attribute, pcs CLI
drbd # drbdadm, drbdsetup, drbdmon drbd # drbdadm, drbdsetup, drbdmon
ocf-resource-agents # OCF heartbeat agents (Filesystem, IPaddr2, drbd, …) ocf-resource-agents # OCF heartbeat agents (Filesystem, IPaddr2, drbd, …)
# Storage # Storage
xfsprogs # mkfs.xfs, xfs_admin, xfs_info xfsprogs # mkfs.xfs, xfs_admin, xfs_info
targetcli-fb # targetcli shell + targetctl targetcli-fb # targetcli shell + targetctl
# Networking / debug # Networking / debug
iproute2 # ip, ss iproute2 # ip, ss
iputils # ping iputils # ping
tcpdump tcpdump
lsof lsof
@@ -233,16 +233,16 @@ in
networking.firewall = { networking.firewall = {
enable = true; enable = true;
allowedTCPPorts = [ allowedTCPPorts = [
22 # SSH 22 # SSH
3260 # iSCSI 3260 # iSCSI
3121 # pacemaker-remoted 3121 # pacemaker-remoted
2224 # pcsd 2224 # pcsd
drbdPort # DRBD replication drbdPort # DRBD replication
]; ];
allowedUDPPorts = [ allowedUDPPorts = [
5404 # corosync cluster 5404 # corosync cluster
5405 # corosync cluster 5405 # corosync cluster
5407 # corosync crypto 5407 # corosync crypto
]; ];
# Corosync uses ports 5404-5407 UDP; allow them on the cluster net # Corosync uses ports 5404-5407 UDP; allow them on the cluster net
extraCommands = '' extraCommands = ''
+1 -1
View File
@@ -3,7 +3,7 @@
# ha-test-node1: VMID 200, 192.168.2.200/24 # ha-test-node1: VMID 200, 192.168.2.200/24
{ {
networking.hostName = "ha-test-node1"; networking.hostName = "ha-test-node1";
networking.hostId = "a1b2c3d4"; # random, required by ZFS (not used here) but harmless networking.hostId = "a1b2c3d4"; # random, required by ZFS (not used here) but harmless
networking.interfaces.ens18.ipv4.addresses = [{ networking.interfaces.ens18.ipv4.addresses = [{
address = "192.168.2.200"; address = "192.168.2.200";
+1 -1
View File
@@ -3,7 +3,7 @@
# ha-test-node2: VMID 201, 192.168.2.201/24 # ha-test-node2: VMID 201, 192.168.2.201/24
{ {
networking.hostName = "ha-test-node2"; networking.hostName = "ha-test-node2";
networking.hostId = "e5f6a7b8"; # random, required by ZFS (not used here) but harmless networking.hostId = "e5f6a7b8"; # random, required by ZFS (not used here) but harmless
networking.interfaces.ens18.ipv4.addresses = [{ networking.interfaces.ens18.ipv4.addresses = [{
address = "192.168.2.201"; address = "192.168.2.201";