containers/scrape: scrape luftdaten
This commit is contained in:
parent
95c33dc243
commit
3feed02e45
|
@ -43,6 +43,10 @@
|
||||||
script = "xerox";
|
script = "xerox";
|
||||||
host = "roxi.hq.c3d2.de";
|
host = "roxi.hq.c3d2.de";
|
||||||
};
|
};
|
||||||
|
scrape-luftdaten = makeService {
|
||||||
|
script = "luftdaten";
|
||||||
|
host = "";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
systemd.timers.scrape-xeri = {
|
systemd.timers.scrape-xeri = {
|
||||||
partOf = [ "scrape-xeri.service" ];
|
partOf = [ "scrape-xeri.service" ];
|
||||||
|
@ -54,6 +58,11 @@
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
timerConfig.OnCalendar = "minutely";
|
timerConfig.OnCalendar = "minutely";
|
||||||
};
|
};
|
||||||
|
systemd.timers.scrape-luftdaten = {
|
||||||
|
partOf = [ "scrape-luftdaten.service" ];
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig.OnCalendar = "minutely";
|
||||||
|
};
|
||||||
|
|
||||||
# This value determines the NixOS release with which your system is to be
|
# This value determines the NixOS release with which your system is to be
|
||||||
# compatible, in order to avoid breaking some software such as database
|
# compatible, in order to avoid breaking some software such as database
|
||||||
|
|
|
@ -27,6 +27,6 @@ let
|
||||||
target = "root@${host}";
|
target = "root@${host}";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
scrape = deployContainer "scrape" "172.20.73.28";
|
scrape = deployContainer "scrape" "172.20.73.32";
|
||||||
ledstripes = deployContainer "ledstripes" "172.22.99.168";
|
ledstripes = deployContainer "ledstripes" "172.22.99.168";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue