mirror of https://gitlab.crans.org/nounous/nixos
parent
929b5935c2
commit
342cd2abc6
|
|
@ -55,5 +55,23 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# automaticaly start osd when we restart the server
|
||||||
|
systemd.services.ceph-mesh = {
|
||||||
|
enable = true;
|
||||||
|
description = "Ceph OSD Bindings";
|
||||||
|
unitConfig = {
|
||||||
|
After = "local-fs.target";
|
||||||
|
Wants = "local-fs.target";
|
||||||
|
};
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "oneshot";
|
||||||
|
KillMode = "none";
|
||||||
|
Environment = "CEPH_VOLUME_TIMEOUT=10000 PATH=$PATH:/run/current-system/sw/bin/";
|
||||||
|
ExecStart = "/bin/sh -c 'timeout $CEPH_VOLUME_TIMEOUT /run/current-system/sw/bin/ceph-volume lvm activate --all --no-systemd'";
|
||||||
|
TimeoutSec = 0;
|
||||||
|
};
|
||||||
|
wantedBy = ["multi-user.target"];
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.ceph pkgs.smartmontools ];
|
environment.systemPackages = [ pkgs.ceph pkgs.smartmontools ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue