NixOS configs for new Redbrick deployment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
595 B

  1. {
  2. services.glusterfs = {
  3. enable = true;
  4. # TODO change in prod
  5. logLevel = "INFO";
  6. };
  7. services.nfs.server.enable = true;
  8. # For each brick open port 49152 + brick_num
  9. # Our nodes have 3 bricks
  10. # Opening a heap of ports to make things easier in the future
  11. # Max 15 if the powervault was to have 1 brick per drive
  12. networking.firewall.allowedTCPPorts = [
  13. 111 2049 4045 24007 24008 38465 38466 38467
  14. 49152 49153 49154 49155 49156 49157
  15. 49158 49159 49160 49161 49162 49163
  16. 49164 49165 49166
  17. ];
  18. networking.firewall.allowedUDPPorts = [ 111 2049 4045 ];
  19. }