Pin ceph to the currently deployed versions

This commit is contained in:
Sandro - 2023-06-14 18:51:29 +02:00
parent f936258a54
commit 0000008c13
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
6 changed files with 18 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, ... }:
{
imports = [
@ -67,6 +67,7 @@
keyfile = config.sops.secrets."ceph/osd.4/keyfile".path;
deviceClass = "ssd";
} ];
skyflake.storage.ceph.package = pkgs.ceph_17_2;
system.stateVersion = "21.11"; # Did you read the comment?
}

View File

@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, ... }:
{
imports = [
@ -57,6 +57,7 @@
keyfile = config.sops.secrets."ceph/osd.6/keyfile".path;
deviceClass = "ssd";
} ];
skyflake.storage.ceph.package = pkgs.ceph_16_2;
system.stateVersion = "22.11";
}

View File

@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, ... }:
{
imports = [
@ -89,6 +89,7 @@
keyfile = config.sops.secrets."ceph/osd.2/keyfile".path;
deviceClass = "hdd";
} ];
skyflake.storage.ceph.package = pkgs.ceph_17_2;
system.stateVersion = "22.11";
}

View File

@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, ... }:
{
imports = [
@ -58,6 +58,7 @@
keyfile = config.sops.secrets."ceph/osd.3/keyfile".path;
deviceClass = "hdd";
} ];
skyflake.storage.ceph.package = pkgs.ceph_17_2;
system.stateVersion = "21.11";

View File

@ -8,6 +8,14 @@
};
config = {
# TODO: activate when we fixed the ceph
# assertions = [
# {
# assertion = config.skyflake.storage.ceph.package != 17;
# message = "Please pin ceph to major version 17!";
# }
# ];
# just all the microvms from this flake that are supposed to run on the server
microvm.autostart =
builtins.filter (name:

View File

@ -18,6 +18,8 @@ with final; {
lua = lua5_4;
}).ceph;
ceph_17 = assert (lib.versions.majorMinor ceph.version) == "17.2"; prev.ceph;
dex-oidc = prev.dex-oidc.override {
buildGoModule = let
ver = lib.versions.majorMinor prev.dex-oidc.version;