Skip to content

Commit c4ca6be

Browse files
[READY] Rename core servers (#1072)
2 parents c44072f + 64b9844 commit c4ca6be

File tree

17 files changed

+73
-68
lines changed

17 files changed

+73
-68
lines changed

facts/inventory.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,14 +422,14 @@ def serveralias(name):
422422
"""generate aliases for servers. Rendered as CNAMES"""
423423
payload = []
424424
match name.lower():
425-
case "core-slave":
425+
case "core-expo":
426426
payload = [
427-
"coreexpo",
427+
"core-slave",
428428
"ntpexpo",
429429
]
430-
case "core-master":
430+
case "core-conf":
431431
payload = [
432-
"coreconf",
432+
"core-master",
433433
"loghost",
434434
"monitoring",
435435
"ntpconf",

facts/servers/serverlist.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name,mac-address,ipv6,ipv4,role
2-
core-slave,58:9c:fc:00:38:5f,2001:470:f026:103::20,10.0.3.20,core
3-
core-master,4c:72:b9:7c:41:17,2001:470:f026:503::20,10.128.3.20,core
2+
core-expo,58:9c:fc:00:38:5f,2001:470:f026:103::20,10.0.3.20,core
3+
core-conf,4c:72:b9:7c:41:17,2001:470:f026:503::20,10.128.3.20,core
44
mrtg,52:54:00:d4:fa:5d,2001:470:f026:503::21,10.128.3.21,mrtg
55
ctfweb,52:54:00:31:a4:fa,2001:470:f026:503::22,10.128.3.22,ctfweb
66
wireguard,52:54:00:61:c6:f9,2001:470:f026:103::23,10.0.3.23,wireguard

nix/README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,16 @@ You can see all the system configurations available by running the following.
2020

2121
```shell-session
2222
> nix flake show --json 2>/dev/null | jq '.nixosConfigurations | keys.[]'
23-
"bootstrapImage"
24-
"coreMaster"
25-
"coreSlave"
26-
"devServer"
27-
"massflash"
23+
"bootstrap-image"
24+
"core-conf"
25+
"core-expo"
26+
"dev-server"
27+
"massflash-pi"
28+
"massflash-x86"
29+
"router-border"
30+
"router-conf"
31+
"router-expo"
32+
"router-scale-br-fmt2"
2833
```
2934

3035
## Build and Run a VM Locally
File renamed without changes.

nix/nixos-configurations/core-master/default.nix renamed to nix/nixos-configurations/core-conf/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# https://github.com/NixOS/nixpkgs/blob/82935bfed15d680aa66d9020d4fe5c4e8dc09123/nixos/tests/systemd-networkd-dhcpserver.nix
3434
networking = {
3535
extraHosts = ''
36-
10.128.3.20 core-master.scale.lan
36+
10.128.3.20 core-conf.scale.lan
3737
'';
3838
};
3939

File renamed without changes.

nix/nixos-configurations/core-master/hardware-configuration.nix renamed to nix/nixos-configurations/core-conf/hardware-configuration.nix

File renamed without changes.
File renamed without changes.

nix/nixos-configurations/core-slave/default.nix renamed to nix/nixos-configurations/core-expo/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# https://github.com/NixOS/nixpkgs/blob/82935bfed15d680aa66d9020d4fe5c4e8dc09123/nixos/tests/systemd-networkd-dhcpserver.nix
3434
networking = {
3535
extraHosts = ''
36-
10.0.3.20 core-slave.scale.lan
36+
10.0.3.20 core-expo.scale.lan
3737
'';
3838
};
3939

File renamed without changes.

0 commit comments

Comments
 (0)