Add tier support to minio

This commit is contained in:
Charlotte 🦝 Delenk 2022-01-17 09:48:05 +01:00
parent 3bf4222598
commit d37baee9a9
Signed by: darkkirb
GPG key ID: 015E3768A70AFBC5
2 changed files with 36 additions and 0 deletions

View file

@ -60,6 +60,36 @@
options = [ "zfsutil" ];
};
fileSystems."/var/lib/minio" = {
device = "tank/nixos/var/lib/minio";
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/var/lib/minio/disk0" = {
device = "tank/nixos/var/lib/minio/disk0";
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/var/lib/minio/disk1" = {
device = "tank/nixos/var/lib/minio/disk1";
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/var/lib/minio/disk2" = {
device = "tank/nixos/var/lib/minio/disk2";
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/var/lib/minio/disk3" = {
device = "tank/nixos/var/lib/minio/disk3";
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/var/log" =
{
device = "tank/nixos/var/log";

View file

@ -6,6 +6,12 @@ in
services.minio = {
enable = true;
rootCredentialsFile = "/run/secrets/security/minio/credentials_file";
dataDir = [
"/var/lib/minio/disk0"
"/var/lib/minio/disk1"
"/var/lib/minio/disk2"
"/var/lib/minio/disk3"
];
};
services.prometheus.exporters.minio = {
# TODO: doesn't work