From b3def9be96d88fd470151098dcf4109ad9ed994f Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 14 Mar 2021 14:35:36 +0000 Subject: [PATCH] ceph: add /var/lib/ceph mount --- ops/nixos/lib/blade.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ops/nixos/lib/blade.nix b/ops/nixos/lib/blade.nix index 6967b02189..2ee6e74804 100644 --- a/ops/nixos/lib/blade.nix +++ b/ops/nixos/lib/blade.nix @@ -46,7 +46,12 @@ in { device = "/dev/disk/by-label/boot"; fsType = "ext4"; }; - }; + } // (lib.optionalAttrs (config.services.ceph.osd.enable || config.services.ceph.mgr.enable || config.services.ceph.mon.enable || config.services.ceph.mgr.enable) { + "/var/lib/ceph" = { + device = "/dev/disk/by-label/var-lib-ceph"; + fsType = "xfs"; + }; + }); boot.loader.grub.enable = true; boot.loader.grub.version = 2;