infrastructure/machines/nixos/hypervisor01/_configuration.nix
Ryan Lahfa 24360f4395
All checks were successful
Check meta / check_dns (pull_request) Successful in 18s
Check meta / check_meta (pull_request) Successful in 17s
Run pre-commit on all files / pre-commit (push) Successful in 38s
Check workflows / check_workflows (pull_request) Successful in 22s
Build all the nodes / ap01 (pull_request) Successful in 1m2s
Build all the nodes / geo01 (pull_request) Successful in 1m59s
Build all the nodes / bridge01 (pull_request) Successful in 2m4s
Build all the nodes / geo02 (pull_request) Successful in 2m1s
Build all the nodes / netcore02 (pull_request) Successful in 44s
Build all the nodes / compute01 (pull_request) Successful in 2m50s
Build all the nodes / rescue01 (pull_request) Successful in 3m11s
Build all the nodes / storage01 (pull_request) Successful in 3m12s
Build all the nodes / hypervisor02 (pull_request) Successful in 4m49s
Build all the nodes / hypervisor03 (pull_request) Successful in 4m48s
Build all the nodes / hypervisor01 (pull_request) Successful in 6m9s
Run pre-commit on all files / pre-commit (pull_request) Successful in 43s
Build all the nodes / vault01 (pull_request) Successful in 1m49s
Build all the nodes / web01 (pull_request) Successful in 2m9s
Build all the nodes / web02 (pull_request) Successful in 1m38s
Build all the nodes / web03 (pull_request) Successful in 1m44s
feat(machines/hypervisor0*): init
It contains a CephFS module which contains only monitor HA and the Incus enablement.

We are not using yet the Preseed to reproduce this on another set of
machines automatically.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
2024-12-21 00:18:56 +01:00

29 lines
591 B
Nix

# SPDX-FileCopyrightText: 2024 Elias Coppens <elias@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{ meta, lib, ... }:
lib.extra.mkConfig {
enabledModules = [
"dgn-hypervisor"
"dgn-cephfs"
];
enabledServices = [ ];
extraConfig = {
services.netbird.enable = true;
dgn-cephfs = {
# Unique per cluster.
fsid = "d189c08e-300b-4ad9-8c95-b50fd0976758";
initialMembers = lib.genAttrs [
"hypervisor01"
"hypervisor02"
"hypervisor03"
] (name: builtins.head meta.network.${name}.addresses.ipv4);
};
};
root = ./.;
}