ops/nixos/blade: add ceph

This commit is contained in:
Luke Granger-Brown 2021-02-09 01:17:54 +00:00
parent 3239c4b0b6
commit 1ed83bd25a
7 changed files with 50 additions and 0 deletions

View file

@ -22,4 +22,8 @@ in {
}];
};
my.ip.tailscale = "100.121.11.7";
services.ceph = {
osd.enable = true;
};
}

View file

@ -26,4 +26,10 @@ in {
}];
};
my.ip.tailscale = "100.121.116.85";
services.ceph = {
mon.enable = true;
mds.enable = true;
osd.enable = true;
};
}

View file

@ -22,4 +22,8 @@ in {
}];
};
my.ip.tailscale = "100.84.36.62";
services.ceph = {
osd.enable = true;
};
}

View file

@ -22,4 +22,9 @@ in {
}];
};
my.ip.tailscale = "100.117.185.118";
services.ceph = {
mon.enable = true;
osd.enable = true;
};
}

View file

@ -22,4 +22,8 @@ in {
}];
};
my.ip.tailscale = "100.92.118.36";
services.ceph = {
osd.enable = true;
};
}

View file

@ -22,4 +22,9 @@ in {
}];
};
my.ip.tailscale = "100.119.123.33";
services.ceph = {
mon.enable = true;
osd.enable = true;
};
}

View file

@ -47,9 +47,31 @@ in {
};
defaultGateway = "192.168.1.5";
firewall.allowedTCPPorts = lib.mkIf config.services.ceph.enable [ 6789 3300 ];
firewall.allowedTCPPortRanges = lib.mkIf config.services.ceph.enable [{ from = 6800; to = 7300; }];
};
virtualisation.podman.enable = true;
environment.systemPackages = with pkgs; [
ceph
xfsprogs
];
services.ceph = {
enable = true;
global.fsid = "521a59a5-a597-4432-b248-1ecd3c76ca4c";
global.monHost = "192.168.1.180, 192.168.1.181, 192.168.1.184";
global.monInitialMembers = "blade-janeway, blade-tuvok, blade-paris";
mon.daemons = [ config.networking.hostName ];
mds.daemons = [ config.networking.hostName ];
osd.daemons = [ config.networking.hostName ];
rgw.daemons = [ config.networking.hostName ];
mgr.daemons = [ config.networking.hostName ];
mgr.enable = config.services.ceph.mon.enable;
rgw.enable = true;
};
system.stateVersion = "21.05";
}