diff --git a/hosts/physiques/cephiroth/ceph.md b/hosts/physiques/cephiroth/ceph.md index bca526b..fc805c6 100644 --- a/hosts/physiques/cephiroth/ceph.md +++ b/hosts/physiques/cephiroth/ceph.md @@ -82,3 +82,14 @@ sudo ceph-volume lvm create --data /dev/sdf --no-systemd - Monitor : c'est lui qui garde la map d'ou est quoi - Manager : il check si tout va bien, c'est lui qui a le dashboard - OSD : ca gere 1 disque physique + + +# Proposition Architecture + +CephFS: +- home-adh +- home-nounou + +RBD (raw block devices): +- vm-adh +- vm-nounou diff --git a/modules/crans/networking.nix b/modules/crans/networking.nix index 60ac51e..622b826 100644 --- a/modules/crans/networking.nix +++ b/modules/crans/networking.nix @@ -37,6 +37,17 @@ in }; }; + ceph = { + enable = mkEnableOption "Configuration du VLAN ceph."; + + interface = mkOption { + type = types.str; + default = "ens20"; + example = "ens19"; + description = "Nom de l'interface réseau sur laquelle est située le VLAN ceph."; + }; + }; + srv = { enable = mkEnableOption "Configuration du VLAN srv."; @@ -114,6 +125,23 @@ in } ]; }; + + # Configuration du VLAN ceph + ceph = { + ipv4.addresses = [ + { + address = "172.16.6.${idString}"; + prefixLength = 24; + } + ]; + + ipv6.addresses = [ + { + address = "fd00::6:0:ff:fe0${isVmString}:${hostIdString}06"; + prefixLength = 64; + } + ]; + }; # Configuration du VLAN srv srv = {