2016-10-20 18:54:38 +00:00
|
|
|
with import <stockholm/lib>;
|
2018-12-11 20:41:11 +00:00
|
|
|
{ config, ... }: let
|
|
|
|
|
|
|
|
hostDefaults = hostName: host: flip recursiveUpdate host ({
|
|
|
|
owner = config.krebs.users.krebs;
|
|
|
|
} // optionalAttrs (host.nets?retiolum) {
|
|
|
|
nets.retiolum.ip6.addr =
|
|
|
|
(krebs.genipv6 "retiolum" "krebs" { inherit hostName; }).address;
|
|
|
|
});
|
|
|
|
|
2016-02-14 15:43:44 +00:00
|
|
|
testHosts = genAttrs [
|
2015-11-13 12:05:19 +00:00
|
|
|
"test-arch"
|
|
|
|
"test-centos6"
|
|
|
|
"test-centos7"
|
2015-12-30 01:45:47 +00:00
|
|
|
"test-all-krebs-modules"
|
2015-11-13 12:05:19 +00:00
|
|
|
] (name: {
|
|
|
|
inherit name;
|
|
|
|
cores = 1;
|
|
|
|
nets = {
|
|
|
|
retiolum = {
|
2016-12-28 08:32:36 +00:00
|
|
|
ip4.addr = "10.243.73.57";
|
2015-11-13 12:05:19 +00:00
|
|
|
tinc.pubkey = ''
|
|
|
|
-----BEGIN RSA PUBLIC KEY-----
|
|
|
|
MIIBCgKCAQEAy41YKF/wpHLnN370MSdnAo63QUW30aw+6O79cnaJyxoL6ZQkk4Nd
|
|
|
|
mrX2tBIfb2hhhgm4Jecy33WVymoEL7EiRZ6gshJaYwte51Jnrac6IFQyiRGMqHY5
|
|
|
|
TG/6IzzTOkeQrT1fw3Yfh0NRfqLBZLr0nAFoqgzIVRxvy+QO1gCU2UDKkQ/y5df1
|
|
|
|
K+YsMipxU08dsOkPkmLdC/+vDaZiEdYljIS3Omd+ED5JmLM3MSs/ZPQ8xjkjEAy8
|
|
|
|
QqD9/67bDoeXyg1ZxED2n0+aRKtU/CK/66Li//yev6yv38OQSEM4t/V0dr9sjLcY
|
|
|
|
VIdkxKf96F9r3vcDf/9xw2HrqVoy+D5XYQIDAQAB
|
|
|
|
-----END RSA PUBLIC KEY-----
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
in {
|
2018-12-11 22:11:40 +00:00
|
|
|
hosts = mapAttrs hostDefaults ({
|
2019-12-12 22:29:19 +00:00
|
|
|
filebitch = {
|
|
|
|
ci = true;
|
|
|
|
cores = 4;
|
|
|
|
nets = {
|
2020-01-10 08:35:45 +00:00
|
|
|
shack = {
|
|
|
|
ip4.addr = "10.42.0.50" ;
|
|
|
|
aliases = [
|
|
|
|
"filebitch.shack"
|
|
|
|
];
|
|
|
|
};
|
2019-12-12 22:29:19 +00:00
|
|
|
retiolum = {
|
|
|
|
ip4.addr = "10.243.189.130";
|
|
|
|
aliases = [ "filebitch.r" ];
|
|
|
|
tinc.pubkey = ''
|
|
|
|
-----BEGIN RSA PUBLIC KEY-----
|
|
|
|
MIIBCgKCAQEA8ZSLsOlPy9Vd8XdEcIoP8H3rztsbB0McTYPGhUaZ6/aqcD/MBSQa
|
|
|
|
FT9NZS0+N0Pev7y90As6Rj5Wrom92xlThcFPaX0Dzmzz+7363M4qtlrtmmWkx2FX
|
|
|
|
VDrPOYbe4hGGOCsPNOTNJkcW4zs2Ym5YKbZeXHfnuqCW+yuhKBCgO9slc740jkHZ
|
|
|
|
5xuv5zbU3ZMRk1H8xi4+cQcHqh+1PY75lJxVSNvrbe5pvGxm9yVdp235b49ohDRU
|
|
|
|
UfUjXmymPlnfJgTOMxmHwl+UmwYR4Yw2CZKXTjbJe5HjbykleTwUb1qyijM8suJf
|
|
|
|
eXRyma8VGILcY6K/HmE4nz7ESAlI1c+QlwIDAQAB
|
|
|
|
-----END RSA PUBLIC KEY-----
|
|
|
|
Ed25519PublicKey = NPjEmo1dkxNS2Xm7qUyWhLKdFYF4MnhIM79NPQELWHC
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
ssh.privkey.path = <secrets/ssh.id_ed25519>;
|
|
|
|
ssh.pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKRpjW68lSlTL8jBQcXKOTdGa+olQw5ghaU5df2yAE64";
|
|
|
|
};
|
2017-07-23 18:32:33 +00:00
|
|
|
hotdog = {
|
2017-08-31 17:15:09 +00:00
|
|
|
ci = true;
|
2017-07-23 18:32:33 +00:00
|
|
|
nets = {
|
|
|
|
retiolum = {
|
|
|
|
ip4.addr = "10.243.77.3";
|
|
|
|
aliases = [
|
|
|
|
"hotdog.r"
|
2017-09-03 22:44:21 +00:00
|
|
|
"build.r"
|
2017-07-25 22:22:45 +00:00
|
|
|
"build.hotdog.r"
|
|
|
|
"cgit.hotdog.r"
|
2017-10-01 11:01:55 +00:00
|
|
|
"irc.r"
|
2020-08-10 16:48:45 +00:00
|
|
|
"wiki.r"
|
|
|
|
"wiki.hotdog.r"
|
2017-07-23 18:32:33 +00:00
|
|
|
];
|
|
|
|
tinc.pubkey = ''
|
|
|
|
-----BEGIN RSA PUBLIC KEY-----
|
|
|
|
MIIBCgKCAQEAs9+Au3oj29C5ol/YnkG9GjfCH5z53wxjH2iy8UPike8C7GASZKqc
|
|
|
|
bZBrvxkIOyVs5oVtolPcaI0/nvtpIhSlmM6hg9qe1rZO6jXt53GVNvgdcUIfVHbX
|
|
|
|
mQmp4oVXOjPIeDqLn32Mc0O73Kp6i66zQGAXi8ejczuO0h6oSvAnjolT4wM9jugk
|
|
|
|
JBGCDlpl9mxAGDN5VOqbg2i0FxwtUk2UA9XghEaRcfBkVdsOrtW8sCwOg8YttQt9
|
|
|
|
fs7JjezUtw7JBxN754ynaahSRODcjyJhwjE18tKx6P7wsNbgbmULFQz+7IxZ01/P
|
|
|
|
h5ZUzfd1r1pTzQ0nYD5aRtlDd7zP7y5tUwIDAQAB
|
|
|
|
-----END RSA PUBLIC KEY-----
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
ssh.privkey.path = <secrets/ssh.id_ed25519>;
|
|
|
|
ssh.pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICxFkBln23wUxt4RhIHE3GvdKeBpJbjn++6maupHqUHp";
|
|
|
|
};
|
2021-01-24 15:32:30 +00:00
|
|
|
news = {
|
2021-01-24 15:45:12 +00:00
|
|
|
ci = true;
|
2021-01-24 15:32:30 +00:00
|
|
|
nets = {
|
|
|
|
retiolum = {
|
|
|
|
ip4.addr = "10.243.0.5";
|
|
|
|
aliases = [
|
|
|
|
"news.r"
|
2021-01-25 17:26:20 +00:00
|
|
|
"brockman.r"
|
2021-01-24 15:32:30 +00:00
|
|
|
"go.r"
|
|
|
|
"rss.r"
|
|
|
|
];
|
|
|
|
tinc.pubkey = ''
|
|
|
|
-----BEGIN PUBLIC KEY-----
|
|
|
|
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA9PY6t6P1ytgo8qYL2QDc
|
|
|
|
cgPezX8yGmA0nuTyCUPtXbWyWee9HnzYqekzJYvBHwgBDvZ8UhLZTCXD15agDfaf
|
|
|
|
cbzd4uM5bCDgqI8sezzD95tqj7mzvIEurIShDXYSWC6YRat1h1Opp86JngBJRvHZ
|
|
|
|
Gb6NAyfnr4v2eyMrmH9/j+sECxjCAaC5QLpJWyoDPilFU8dXBarmiZNYYlXQt1pn
|
|
|
|
yxZSF5pElmrdiZ6vlKlnEHwFtExm1gv63ZjAlusrXM+bKMvdVKRnhahq76A5VXjc
|
|
|
|
kbOhQi+wYGaVK4jB2a1UilmKYh1wKLE7HULoHDRrqEe4jemNZg+JOBPTU+jM/JzM
|
|
|
|
XdPy0KAMxHOUZCe8IX0LgF1snVaMF05Qkoe3QKr0YJ3KTD7UdsJpa1Br216Z/w2f
|
|
|
|
koz+cRn/Z/8TO8SIRKvy5TfXeH+ra6rp/CvwryNlNL4FB+25LFDkJtLIZGqAsz3G
|
|
|
|
vRXUiGN4l1FR4TbX7XaK2rvIlA/+4isJ02bBdnZhe7kmuuBeECyPaR1+Ui6pElXe
|
|
|
|
ZamnxTAmj86Q8pDx6Wn2cg8YAJlVV3UCfhda34DZokJmmmKucGupg/6Xt0Bhm9d5
|
|
|
|
exNrTIDG3lXTxmg2mfiZJeg/fsnalvtN0j/VB+NmmKzie+ZohMK4nUfslq8o5CO9
|
|
|
|
j7ZLmZzm062GzX0RenxNkwUCAwEAAQ==
|
|
|
|
-----END PUBLIC KEY-----
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
ssh.privkey.path = <secrets/ssh.id_ed25519>;
|
|
|
|
ssh.pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHl5cDF9QheXyMlNYIX17ILbgd94K50fZy7w0fDLvZlo ";
|
|
|
|
};
|
2018-04-21 11:04:19 +00:00
|
|
|
onebutton = {
|
|
|
|
cores = 1;
|
|
|
|
nets = {
|
|
|
|
retiolum = {
|
|
|
|
ip4.addr = "10.243.0.101";
|
|
|
|
aliases = [
|
|
|
|
"onebutton.r"
|
|
|
|
];
|
|
|
|
tinc.pubkey = ''
|
|
|
|
-----BEGIN PUBLIC KEY-----
|
|
|
|
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA11w6votRExwE0ZEiQmPa
|
|
|
|
9WGNsMfNAZEd14iHaHCZH7UPQEH+cH/T6isGPpaysindroMnqFe9mUf/cdYChb6N
|
|
|
|
aaFreApwGBQaJPUcdy4cfphrFpzmOClpOFuFbnV7ZvAk/wefBad3kUzsq/lK4HvB
|
|
|
|
7nPKeOB9kljphLrkzuLL/h2yOenMpO2ZdvwxyWN8HKmUNgvpBQjIr+Hka6cgy7Gp
|
|
|
|
pBVFHfSnad/eHeEvq91O/bHxrAxzH5N5DVagPDpkbiWYGl+0XVGP/h0CApr15Ael
|
|
|
|
+j2pJYc0ZlaXIp4KmNRqbd/fLe52JLrWbnFX4rRuY/DhoMqK8kjECEZ7gLiNSpCC
|
|
|
|
KlnlJ2LXX9c+d79ubzl5yLAJ3d6T4IJqkbAWJDuCrj821M9ZDk/qZwerayhrrvkF
|
|
|
|
tMYkQoGSe8MvSOU0rTEoH5iSRwDC7M0XzUe4l8/yZLFyD4Prz/dq6coqANfk/tlE
|
|
|
|
DnH3vDu9lmFvYrLcd6yDWzFfI3mWDJoUa6AKKoScCOaCkRfIM4Aew0i73+h1nJLO
|
|
|
|
59AAbZIkDYyWs53QniIG4EQteI9y/9j/628nPAVj68V5oIN76RDXfFHWDWq4DxmU
|
|
|
|
PpGVmoIKcKZmnl7RrDomRVpuGMdyQ+kCzIGH3XYe12v8Y5beHZBrd3OajgHZ/Tfp
|
|
|
|
jP873cT6h0hsGm9glgOYho8CAwEAAQ==
|
|
|
|
-----END PUBLIC KEY-----
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
ssh.privkey.path = <secrets/ssh.id_ed25519>;
|
|
|
|
ssh.pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAcZg+iLaPZ0SpLM+nANxIjZC/RIsansjyutK0+gPhIe ";
|
|
|
|
};
|
2017-07-20 21:40:58 +00:00
|
|
|
puyak = {
|
2017-08-31 17:15:09 +00:00
|
|
|
ci = true;
|
2017-07-20 21:40:58 +00:00
|
|
|
nets = {
|
|
|
|
retiolum = {
|
|
|
|
ip4.addr = "10.243.77.2";
|
|
|
|
aliases = [
|
|
|
|
"puyak.r"
|
2017-07-22 13:16:28 +00:00
|
|
|
"build.puyak.r"
|
2017-07-22 18:37:41 +00:00
|
|
|
"cgit.puyak.r"
|
2017-07-20 21:40:58 +00:00
|
|
|
];
|
|
|
|
tinc.pubkey = ''
|
|
|
|
-----BEGIN RSA PUBLIC KEY-----
|
|
|
|
MIIBCgKCAQEAwwDvaVKSJmAi1fpbsmjLz1DQVTgqnx56GkHKbz5sHwAfPVQej955
|
|
|
|
SwotAPBrOT5P3pZ52Pu326SR5nj9XWfN6GD0CkcDQddtRG5OOtUWlvkYzZraNh33
|
|
|
|
p9l8TBgHJKogGe6umbs+4v7pWfbS0k708L2ttwY0ceju6RL6UqShIYB6qhDzwalU
|
|
|
|
p8s7pypl7BwrsTwYkUGleIptiN78cYv/NHvXhvXBuVGz4J0tCH4GMvdTHCah1l1r
|
|
|
|
zwEpKlAq0FD6bgYTJL94Tvxe2xzyr8c+xn1+XbJtMudGmrRjIHS6YupzO/Y2MO7w
|
|
|
|
UkbMKDhYVhSPFEyk6PMm0SU9uAh4I1+8BQIDAQAB
|
|
|
|
-----END RSA PUBLIC KEY-----
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
ssh.privkey.path = <secrets/ssh.id_ed25519>;
|
|
|
|
ssh.pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPpVwKv9mQGfcn5oFwuitq+b6Dz4jBG9sGhVoCYFw5RY";
|
|
|
|
};
|
2015-10-25 13:07:51 +00:00
|
|
|
wolf = {
|
2017-08-31 17:15:09 +00:00
|
|
|
ci = true;
|
2015-10-25 13:07:51 +00:00
|
|
|
nets = {
|
2015-11-17 21:15:07 +00:00
|
|
|
shack = {
|
2016-04-08 01:53:34 +00:00
|
|
|
ip4.addr = "10.42.2.150" ;
|
2015-11-17 21:15:07 +00:00
|
|
|
aliases = [
|
|
|
|
"wolf.shack"
|
|
|
|
"graphite.shack"
|
|
|
|
"acng.shack"
|
|
|
|
"drivedroid.shack"
|
2018-09-16 16:23:00 +00:00
|
|
|
"mobile.lounge.mpd.shack"
|
|
|
|
"lounge.mpd.wolf.shack"
|
2015-11-17 21:15:07 +00:00
|
|
|
];
|
|
|
|
};
|
2015-10-25 13:07:51 +00:00
|
|
|
retiolum = {
|
2016-04-08 01:53:34 +00:00
|
|
|
ip4.addr = "10.243.77.1";
|
2015-10-25 13:07:51 +00:00
|
|
|
aliases = [
|
2017-04-12 09:27:22 +00:00
|
|
|
"wolf.r"
|
2017-04-19 08:06:36 +00:00
|
|
|
"build.wolf.r"
|
2017-04-12 09:27:22 +00:00
|
|
|
"cgit.wolf.r"
|
2018-09-16 16:23:00 +00:00
|
|
|
"lounge.mpd.wolf.r"
|
2015-10-25 13:07:51 +00:00
|
|
|
];
|
|
|
|
tinc.pubkey = ''
|
|
|
|
-----BEGIN RSA PUBLIC KEY-----
|
|
|
|
MIIBCgKCAQEAzpXyEATt8+ElxPq650/fkboEC9RvTWqN6UIAl/R4Zu+uDhAZ2ekb
|
|
|
|
HBjoSbRxu/0w2I37nwWUhEOemxGm4PXCgWrtO0jeRF4nVNYu3ZBppA3vuVALUWq7
|
|
|
|
apxRUEL9FdsWQlXGo4PVd20dGaDTi8M/Ggo755MStVTY0rRLluxyPq6VAa015sNg
|
|
|
|
4NOFuWm0NDn4e+qrahTCTiSjbCU8rWixm0GktV40kdg0QAiFbEcRhuXF1s9/yojk
|
|
|
|
7JT/nFg6LELjWUSSNZnioj5oSfVbThDRelIld9VaAKBAZZ5/zy6T2XSeDfoepytH
|
|
|
|
8aw6itEuTCy1M1DTiTG+12SPPw+ubG+NqQIDAQAB
|
|
|
|
-----END RSA PUBLIC KEY-----
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
ssh.privkey.path = <secrets/ssh.id_ed25519>;
|
|
|
|
ssh.pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKYMXMWZIK0jjnZDM9INiYAKcwjXs2241vew54K8veCR";
|
|
|
|
};
|
2018-12-11 22:11:40 +00:00
|
|
|
} // testHosts);
|
2016-02-06 17:54:01 +00:00
|
|
|
users = {
|
2017-07-13 22:17:58 +00:00
|
|
|
krebs = {
|
|
|
|
pubkey = "lol"; # TODO krebs.users.krebs.pubkey should be unnecessary
|
2015-10-25 13:07:51 +00:00
|
|
|
};
|
2017-07-25 22:21:29 +00:00
|
|
|
hotdog-repo-sync = {
|
|
|
|
name = "hotdog-repo-sync";
|
|
|
|
mail = "spam@krebsco.de";
|
|
|
|
pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILzTvaR3QqOD3oEEGHQzg/sRnNbKJnZYcV9htDvXmu53";
|
|
|
|
};
|
2017-07-22 13:19:05 +00:00
|
|
|
puyak-repo-sync = {
|
|
|
|
name = "puyak-repo-sync";
|
|
|
|
mail = "spam@krebsco.de";
|
2017-07-22 18:38:51 +00:00
|
|
|
pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ+18mG/cV1YbR9PXzuu3ScyV9kENy08OXUntpmgh9H2";
|
2017-07-22 13:19:05 +00:00
|
|
|
};
|
2017-07-22 13:16:28 +00:00
|
|
|
wolf-repo-sync = {
|
|
|
|
name = "wolf-repo-sync";
|
|
|
|
mail = "spam@krebsco.de";
|
|
|
|
pubkey = ''ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwuAZB3wtAvBJFYh+gWdyGaZU4mtqM2dFXmh2rORlbXeh02msu1uv07ck1VKkQ4LgvCBcBsAOeVa1NTz99eLqutwgcqMCytvRNUCibcoEWwHObsK53KhDJj+zotwlFhnPPeK9+EpOP4ngh/tprJikttos5BwBwe2K+lfiid3fmVPZcTTYa77nCwijimMvWEx6CEjq1wiXMUc4+qcEn8Swbwomz/EEQdNE2hgoC3iMW9RqduTFdIJWnjVi0KaxenX9CvQRGbVK5SSu2gwzN59D/okQOCP6+p1gL5r3QRHSLSSRiEHctVQTkpKOifrtLZGSr5zArEmLd/cOVyssHQPCX repo-sync@wolf'';
|
|
|
|
};
|
2018-07-01 13:00:45 +00:00
|
|
|
buildbotSlave = {
|
|
|
|
pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP7cre2crQMI6O4XtIfIiGl1GUqIi060fJlOQJgG0/NH";
|
|
|
|
};
|
2015-10-25 13:07:51 +00:00
|
|
|
};
|
|
|
|
}
|