From 91078207fbfc61e4dc997b16594739addc223802 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Tue, 7 Jul 2020 15:59:02 +0200 Subject: [PATCH] server7: uncomment systemd.services.docker-ceph-osd-7.serviceConfig Wasn't me, I found it this way --- hosts/server7/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/hosts/server7/default.nix b/hosts/server7/default.nix index 250d75a3..1d2939aa 100644 --- a/hosts/server7/default.nix +++ b/hosts/server7/default.nix @@ -45,6 +45,11 @@ in { ]; }; + fileSystems."/var/lib/ceph/osd/ceph-7" = { + fsType = "tmpfs"; + }; + + # Route IPv6 boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = 1; # Obtain global IPv6 despite being a router myself @@ -110,11 +115,9 @@ in { volumes = [ "/dev:/dev" "/etc/ceph:/etc/ceph" "/var/lib/ceph/:/var/lib/ceph" ]; }; - # systemd.services.docker-ceph-osd-7.serviceConfig = { - # ExecStartPre = ["mount | grep ^/var/lib/ceph/osd/ceph-7 || mount -t tmpfs tmpfs /var/lib/ceph/osd/ceph-7" - # ''docker run --rm --net=host --ipc=host --privileged=true -v /dev:/dev -v /etc/ceph:/etc/ceph -v /var/lib/ceph/:/var/lib/ceph -e OSD_DEVICE=/dev/sdb -it ceph/ceph:v14.2.9 ceph-volume lvm activate --all'' - # ]; - # }; + systemd.services.docker-ceph-osd-7.serviceConfig = { + ExecStartPre = [''-${pkgs.docker}/bin/docker run --rm --net=host --ipc=host --privileged=true -v /dev:/dev -v /etc/ceph:/etc/ceph -v /var/lib/ceph/:/var/lib/ceph -e OSD_DEVICE=/dev/sdb -it ceph/ceph:v14.2.9 ceph-volume lvm activate --all'']; + }; networking = { firewall.enable = false;