summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/vidhar/dns/zones/yggdrasil.soa3
-rw-r--r--hosts/vidhar/prometheus/default.nix8
-rw-r--r--hosts/vidhar/prometheus/zte_dsl01.mgmt.yggdrasil (renamed from hosts/vidhar/prometheus/zte_10.141.1.3)0
3 files changed, 6 insertions, 5 deletions
diff --git a/hosts/vidhar/dns/zones/yggdrasil.soa b/hosts/vidhar/dns/zones/yggdrasil.soa
index c56e80e0..4235c602 100644
--- a/hosts/vidhar/dns/zones/yggdrasil.soa
+++ b/hosts/vidhar/dns/zones/yggdrasil.soa
@@ -1,7 +1,7 @@
1$ORIGIN yggdrasil. 1$ORIGIN yggdrasil.
2$TTL 300 2$TTL 300
3@ IN SOA vidhar.yggdrasil. root.yggdrasil.li. ( 3@ IN SOA vidhar.yggdrasil. root.yggdrasil.li. (
4 2022031505 ; serial 4 2022040800 ; serial
5 300 ; refresh 5 300 ; refresh
6 300 ; retry 6 300 ; retry
7 300 ; expire 7 300 ; expire
@@ -21,4 +21,5 @@ vidhar.lan IN A 10.141.0.1
21 21
22vidhar.mgmt IN A 10.141.1.1 22vidhar.mgmt IN A 10.141.1.1
23switch01.mgmt IN A 10.141.1.2 23switch01.mgmt IN A 10.141.1.2
24dsl01.mgmt IN A 10.141.1.3
24ap01.mgmt IN A 10.141.1.4 25ap01.mgmt IN A 10.141.1.4
diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix
index 09f808a6..28336638 100644
--- a/hosts/vidhar/prometheus/default.nix
+++ b/hosts/vidhar/prometheus/default.nix
@@ -292,7 +292,7 @@ in {
292 DynamicUser = false; 292 DynamicUser = false;
293 }; 293 };
294 294
295 systemd.services."prometheus-zte-exporter@10.141.1.3" = { 295 systemd.services."prometheus-zte-exporter@dsl01.mgmt.yggdrasil" = {
296 wantedBy = [ "multi-user.target" ]; 296 wantedBy = [ "multi-user.target" ];
297 after = [ "network.target" ]; 297 after = [ "network.target" ];
298 serviceConfig = { 298 serviceConfig = {
@@ -325,12 +325,12 @@ in {
325 Type = "simple"; 325 Type = "simple";
326 ExecStart = "${pkgs.zte-prometheus-exporter}/bin/zte-prometheus-exporter"; 326 ExecStart = "${pkgs.zte-prometheus-exporter}/bin/zte-prometheus-exporter";
327 Environment = "ZTE_BASEURL=http://%I ZTE_HOSTNAME=localhost ZTE_PORT=9900"; 327 Environment = "ZTE_BASEURL=http://%I ZTE_HOSTNAME=localhost ZTE_PORT=9900";
328 EnvironmentFile = config.sops.secrets."zte_10.141.1.3".path; 328 EnvironmentFile = config.sops.secrets."zte_dsl01.mgmt.yggdrasil".path;
329 }; 329 };
330 }; 330 };
331 sops.secrets."zte_10.141.1.3" = { 331 sops.secrets."zte_dsl01.mgmt.yggdrasil" = {
332 format = "binary"; 332 format = "binary";
333 sopsFile = ./zte_10.141.1.3; 333 sopsFile = ./zte_dsl01.mgmt.yggdrasil;
334 }; 334 };
335 335
336 systemd.services."prometheus-nftables-exporter" = { 336 systemd.services."prometheus-nftables-exporter" = {
diff --git a/hosts/vidhar/prometheus/zte_10.141.1.3 b/hosts/vidhar/prometheus/zte_dsl01.mgmt.yggdrasil
index b455ea50..b455ea50 100644
--- a/hosts/vidhar/prometheus/zte_10.141.1.3
+++ b/hosts/vidhar/prometheus/zte_dsl01.mgmt.yggdrasil