krebs lib.types: deprecate host.infest.{addr,port}

This commit is contained in:
tv 2015-10-01 14:59:58 +02:00
parent 3384dd0a55
commit 2432695678
2 changed files with 3 additions and 2 deletions

View File

@ -527,7 +527,6 @@ let
mkdir = rec {
cores = 1;
dc = "tv"; #dc = "cac";
infest.addr = head nets.internet.addrs4;
nets = rec {
internet = {
addrs4 = ["104.233.84.215"];
@ -614,7 +613,6 @@ let
rmdir = rec {
cores = 1;
dc = "tv"; #dc = "cac";
infest.addr = head nets.internet.addrs4;
nets = rec {
internet = {
addrs4 = ["104.233.84.70"];

View File

@ -31,10 +31,13 @@ types // rec {
infest = {
addr = mkOption {
type = str;
apply = trace "Obsolete option `krebs.hosts.${config.name}.infest.addr' is used. It was replaced by the `target' argument to `make` or `get`. See Makefile for more information.";
};
port = mkOption {
type = int;
default = 22;
# TODO replacement: allow target with port, SSH-style: [lol]:666
apply = trace "Obsolete option `krebs.hosts.${config.name}.infest.port' is used. It's gone without replacement.";
};
};