WIP: feat(machines/hypervisor0*): init #198

Draft
rlahfa wants to merge 1 commit from hypervisor into main
Owner

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.

TODO:

  • Incus initialization
  • MONs
  • OSDs
  • MGRs
  • MDSs
  • Automation of Ceph
  • Automation of Incus

Signed-off-by: Ryan Lahfa ryan@dgnum.eu

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. TODO: - [x] Incus initialization - [x] MONs - [ ] OSDs - [ ] MGRs - [ ] MDSs - [ ] Automation of Ceph - [ ] Automation of Incus Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
rlahfa added 1 commit 2024-12-21 00:19:20 +01:00
feat(machines/hypervisor0*): init
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
24360f4395
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>
thubrecht reviewed 2024-12-21 08:38:36 +01:00
@ -3,3 +3,3 @@
# SPDX-License-Identifier: EUPL-1.2
{ lib, ... }:
{ meta, lib, ... }:
Owner

meta should go after lib as it is a custom arg

meta should go after lib as it is a custom arg
@ -8,1 +8,3 @@
enabledModules = [ ];
enabledModules = [
"dgn-hypervisor"
"dgn-cephfs"
Owner

Pls sort the modules

Pls sort the modules
@ -0,0 +7,4 @@
meta,
pkgs,
config,
lib,
Owner
{
  config,
  lib,
  pkgs,
  meta,
  ...
}:
```nix { config, lib, pkgs, meta, ... }: ```
@ -0,0 +24,4 @@
options.dgn-cephfs = {
enable = mkEnableOption "the CephFS module for our hypervisors";
fsid = mkOption {
type = types.str;
Owner

Needs a description

Needs a description
@ -0,0 +64,4 @@
publicNetwork = "10.0.254.0/24";
};
extraConfig.public_addr = builtins.head meta.network.${config.networking.hostName}.addresses.ipv4;
Owner

Colmena gives name as an argument, no need for hostName

Colmena gives `name` as an argument, no need for hostName
@ -0,0 +72,4 @@
mon = {
enable = true;
daemons = [ config.networking.hostName ];
Owner

Same as above, plus, if the config for mon, osd and mgr is the same, it can be factorized

Same as above, plus, if the config for mon, osd and mgr is the same, it can be factorized
All checks were successful
Check meta / check_dns (pull_request) Successful in 18s
Required
Details
Check meta / check_meta (pull_request) Successful in 17s
Required
Details
Run pre-commit on all files / pre-commit (push) Successful in 38s
Required
Details
Check workflows / check_workflows (pull_request) Successful in 22s
Required
Details
Build all the nodes / ap01 (pull_request) Successful in 1m2s
Required
Details
Build all the nodes / geo01 (pull_request) Successful in 1m59s
Required
Details
Build all the nodes / bridge01 (pull_request) Successful in 2m4s
Required
Details
Build all the nodes / geo02 (pull_request) Successful in 2m1s
Required
Details
Build all the nodes / netcore02 (pull_request) Successful in 44s
Required
Details
Build all the nodes / compute01 (pull_request) Successful in 2m50s
Required
Details
Build all the nodes / rescue01 (pull_request) Successful in 3m11s
Required
Details
Build all the nodes / storage01 (pull_request) Successful in 3m12s
Required
Details
Build all the nodes / hypervisor02 (pull_request) Successful in 4m49s
Required
Details
Build all the nodes / hypervisor03 (pull_request) Successful in 4m48s
Required
Details
Build all the nodes / hypervisor01 (pull_request) Successful in 6m9s
Required
Details
Run pre-commit on all files / pre-commit (pull_request) Successful in 43s
Required
Details
Build all the nodes / vault01 (pull_request) Successful in 1m49s
Required
Details
Build all the nodes / web01 (pull_request) Successful in 2m9s
Required
Details
Build all the nodes / web02 (pull_request) Successful in 1m38s
Required
Details
Build all the nodes / web03 (pull_request) Successful in 1m44s
Required
Details
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin hypervisor:hypervisor
git checkout hypervisor
Sign in to join this conversation.
No description provided.