feat: convert rossby to networkd and resolved
This commit is contained in:
@@ -145,12 +145,7 @@ in {
|
||||
|
||||
networking = {
|
||||
useNetworkd = true;
|
||||
useDHCP = false;
|
||||
hostName = name;
|
||||
defaultGateway = {
|
||||
interface = "enp65s0np0";
|
||||
address = "172.16.239.1";
|
||||
};
|
||||
firewall = {
|
||||
allowedTCPPorts = [ 6443 4725 ];
|
||||
extraCommands = ''
|
||||
@@ -167,14 +162,14 @@ in {
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
wait-online.enable = false;
|
||||
networks = {
|
||||
enp65s0np0 = {
|
||||
DHCP = "no";
|
||||
"40-enp65s0np0" = {
|
||||
matchConfig.Name = "enp65s0np0";
|
||||
DHCP = "no";
|
||||
address = [ "${address}/24" ];
|
||||
routes = [ { Gateway = "172.16.239.1"; } ];
|
||||
};
|
||||
ipoib = {
|
||||
"45-ibp1s0" = {
|
||||
matchConfig.Name = "ibp1s0";
|
||||
DHCP = "no";
|
||||
address = [ "${ipoib}/24" ];
|
||||
@@ -183,6 +178,7 @@ in {
|
||||
};
|
||||
|
||||
services.resolved = {
|
||||
# DNS=[::1]:53
|
||||
extraConfig = ''
|
||||
DNSStubListener=no
|
||||
'';
|
||||
@@ -239,10 +235,14 @@ in {
|
||||
'';
|
||||
};
|
||||
|
||||
services.dnsmasq.enable = true;
|
||||
services.coredns.enable = false;
|
||||
services.coredns.config = {
|
||||
|
||||
};
|
||||
services.dnsmasq.enable = false;
|
||||
services.dnsmasq.settings = {
|
||||
domain = [ "cluster.local" ];
|
||||
address = [
|
||||
"/rossby-manage.cluster.local/172.16.239.221"
|
||||
"/slurmctld.cluster.local/127.0.0.1"
|
||||
];
|
||||
srv-host = "_slurmctld._tcp.cluster.local,slurmctld.cluster.local,6817,0,5";
|
||||
|
||||
Reference in New Issue
Block a user