blade-torres: remap en-storage onto a vlan
This commit is contained in:
parent
7273c31af5
commit
22dadde50a
2 changed files with 11 additions and 2 deletions
|
@ -16,12 +16,20 @@ in {
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "blade-torres";
|
hostName = "blade-torres";
|
||||||
hostId = "86db1d9c";
|
hostId = "86db1d9c";
|
||||||
|
|
||||||
|
# HACK: torres' secondary intf. seems to be having problems
|
||||||
|
# temporarily remap this onto the VLANs with everything else.
|
||||||
|
vlans.en-storage = {
|
||||||
|
id = 101;
|
||||||
|
interface = "en-int";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
my.ip.tailscale = "100.92.118.36";
|
my.ip.tailscale = "100.92.118.36";
|
||||||
my.blade.bay = 8;
|
my.blade.bay = 8;
|
||||||
my.blade.macAddress = {
|
my.blade.macAddress = {
|
||||||
internal = "e4:11:5b:ac:e3:cc";
|
internal = "e4:11:5b:ac:e3:cc";
|
||||||
storage = "e4:11:5b:ac:e3:d0";
|
storage = null;
|
||||||
|
#storage = "e4:11:5b:ac:e3:d0";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.ceph = {
|
services.ceph = {
|
||||||
|
|
|
@ -18,7 +18,7 @@ in {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
};
|
};
|
||||||
macAddress.storage = lib.mkOption {
|
macAddress.storage = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.nullOr lib.types.str;
|
||||||
};
|
};
|
||||||
macAddress.internet = lib.mkOption {
|
macAddress.internet = lib.mkOption {
|
||||||
type = lib.types.nullOr lib.types.str;
|
type = lib.types.nullOr lib.types.str;
|
||||||
|
@ -97,6 +97,7 @@ in {
|
||||||
};
|
};
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
ATTR{address}=="${config.my.blade.macAddress.internal}", NAME="en-int"
|
ATTR{address}=="${config.my.blade.macAddress.internal}", NAME="en-int"
|
||||||
|
'' + (lib.optionalString (config.my.blade.macAddress.storage != null) ''
|
||||||
ATTR{address}=="${config.my.blade.macAddress.storage}", NAME="en-storage"
|
ATTR{address}=="${config.my.blade.macAddress.storage}", NAME="en-storage"
|
||||||
'' + (lib.optionalString (config.my.blade.macAddress.internet != null) ''
|
'' + (lib.optionalString (config.my.blade.macAddress.internet != null) ''
|
||||||
ATTR{address}=="${config.my.blade.macAddress.internet}", NAME="en-internet"
|
ATTR{address}=="${config.my.blade.macAddress.internet}", NAME="en-internet"
|
||||||
|
|
Loading…
Reference in a new issue