cloud init migration

This commit is contained in:
2025-04-08 19:21:03 -04:00
parent b5d767ccee
commit 96f2373b5c
4 changed files with 35 additions and 51 deletions

View File

@@ -1,4 +1,4 @@
{ config, lib, namespace, ... }:
{ config, pkgs, lib, namespace, ... }:
let
inherit (lib) types mkIf;
inherit (lib.${namespace}) mkOpt mkBoolOpt;
@@ -32,6 +32,8 @@ in
7946 # memberlist
];
environment.systemPackages = with pkgs; [ nfs-utils ];
networking.firewall.allowedUDPPorts = mkIf cfg.openFirewall [
# RKE2 Ports - https://docs.rke2.io/install/requirements#networking
8472 # Canal CNI with VXLAN
@@ -41,5 +43,11 @@ in
# MetalLB
7946 # memberlist
];
# Cloud Init
systemd.services.rke2-server = mkIf config.${namespace}.services.cloud-init.enable {
after = [ "cloud-final.service" ];
requires = [ "cloud-final.service" ];
};
};
}