summaryrefslogtreecommitdiff
path: root/hosts/vidhar
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-04-08 20:45:17 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-04-08 20:45:17 +0200
commit54c76c5d9a0ce922521788c2c42f6c6c48bdf9e3 (patch)
tree26951833b8ebbb692d93805d2d10034b6e9e0d65 /hosts/vidhar
parent23fe9bd87ae23115151bd1a60cecc29930e303b0 (diff)
downloadnixos-54c76c5d9a0ce922521788c2c42f6c6c48bdf9e3.tar
nixos-54c76c5d9a0ce922521788c2c42f6c6c48bdf9e3.tar.gz
nixos-54c76c5d9a0ce922521788c2c42f6c6c48bdf9e3.tar.bz2
nixos-54c76c5d9a0ce922521788c2c42f6c6c48bdf9e3.tar.xz
nixos-54c76c5d9a0ce922521788c2c42f6c6c48bdf9e3.zip
vidhar: dsl01.mgmt.yggdrasil
Diffstat (limited to 'hosts/vidhar')
-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