Skip to content

Commit

Permalink
Use ci-server as DNS instead of /etc/hosts entries
Browse files Browse the repository at this point in the history
Also updated copyrights of the relevant files and added ficolo DNS
setup also to prbuilder.

Signed-off-by: Tero Tervala <[email protected]>
  • Loading branch information
tervis-unikie committed Jan 18, 2024
1 parent 68a901f commit b9b1e37
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 26 deletions.
7 changes: 3 additions & 4 deletions hosts/binarycache/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII)
#
# SPDX-FileCopyrightText: 2023-2024 Technology Innovation Institute (TII)
# SPDX-License-Identifier: Apache-2.0
#
{
self,
inputs,
Expand All @@ -20,7 +20,7 @@
(with self.nixosModules; [
common
qemu-common
ficolo-hosts
ficolo-common
service-openssh
service-binary-cache
service-nginx
Expand All @@ -46,7 +46,6 @@

networking = {
hostName = "binarycache";
nameservers = ["1.1.1.1" "8.8.8.8"];
};

security.acme = {
Expand Down
6 changes: 3 additions & 3 deletions hosts/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII)
#
# SPDX-FileCopyrightText: 2023-2024 Technology Innovation Institute (TII)
# SPDX-License-Identifier: Apache-2.0
#
{
self,
inputs,
Expand All @@ -11,7 +11,7 @@
# shared modules
azure-common = import ./azure-common.nix;
qemu-common = import ./qemu-common.nix;
ficolo-hosts = import ./ficolo-hosts.nix;
ficolo-common = import ./ficolo-common.nix;
common = import ./common.nix;
generic-disk-config = import ./generic-disk-config.nix;
};
Expand Down
7 changes: 7 additions & 0 deletions hosts/ficolo-common.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: 2024 Technology Innovation Institute (TII)
# SPDX-License-Identifier: Apache-2.0
#
{
# Use ci-server as primary DNS and pfsense as secondary
networking.nameservers = ["172.18.20.100" "172.18.20.1"];
}
9 changes: 0 additions & 9 deletions hosts/ficolo-hosts.nix

This file was deleted.

6 changes: 3 additions & 3 deletions hosts/ficolobuild/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII)
#
# SPDX-FileCopyrightText: 2023-2024 Technology Innovation Institute (TII)
# SPDX-License-Identifier: Apache-2.0
#
{
self,
config,
Expand All @@ -14,9 +14,9 @@
inputs.disko.nixosModules.disko
(with self.nixosModules; [
common
ficolo-common
service-openssh
service-node-exporter
ficolo-hosts
user-cazfi
user-hrosten
user-jrautiola
Expand Down
7 changes: 3 additions & 4 deletions hosts/monitoring/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII)
#
# SPDX-FileCopyrightText: 2023-2024 Technology Innovation Institute (TII)
# SPDX-License-Identifier: Apache-2.0
#
{
pkgs,
self,
Expand All @@ -25,7 +25,7 @@ in {
(with self.nixosModules; [
common
qemu-common
ficolo-hosts
ficolo-common
service-openssh
service-nginx
service-node-exporter
Expand All @@ -39,7 +39,6 @@ in {

networking = {
hostName = "monitoring";
nameservers = ["1.1.1.1" "8.8.8.8"];
firewall = {
allowedTCPPorts = [config.services.prometheus.port config.services.grafana.settings.server.http_port];
allowedUDPPorts = [config.services.prometheus.port config.services.grafana.settings.server.http_port];
Expand Down
6 changes: 3 additions & 3 deletions hosts/prbuilder/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII)
#
# SPDX-FileCopyrightText: 2023-2024 Technology Innovation Institute (TII)
# SPDX-License-Identifier: Apache-2.0
#
{
self,
inputs,
Expand All @@ -16,6 +16,7 @@
(with self.nixosModules; [
common
qemu-common
ficolo-common
service-openssh
service-node-exporter
user-jrautiola
Expand Down Expand Up @@ -46,6 +47,5 @@

networking = {
hostName = "prbuilder";
nameservers = ["1.1.1.1" "8.8.8.8"];
};
}

0 comments on commit b9b1e37

Please sign in to comment.