lass: add echelon

This commit is contained in:
lassulus 2015-09-05 12:15:31 +02:00
parent 74137b8884
commit f3c1727659
2 changed files with 73 additions and 0 deletions

View file

@ -216,6 +216,37 @@ let
lass-imp = {
hosts = addNames {
echelon = {
cores = 4;
dc = "lass"; #dc = "cac";
nets = rec {
internet = {
addrs4 = ["162.248.167.198"];
aliases = [
"echelon.internet"
];
};
retiolum = {
via = internet;
addrs4 = ["10.243.206.103"];
addrs6 = ["42:941e:2816:35f4:5c5e:206b:3f0b:f763"];
aliases = [
"echelon.retiolum"
"cgit.echelon.retiolum"
];
tinc.pubkey = ''
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEA92ybhDahtGybpAkUNlG5Elxw05MVY4Pg7yK0dQugB4nVq+pnmi78
DOMeIciecMHmJM8n9UlUU0eWZVCgHeVd23d6J0hTHCv24p24uHEGGy7XlO/dPJ6A
IjROYU0l8c03pipdJ3cDBx6riArSglwmZJ7xH/Iw0BUhRZrPqbtijY7EcG2wc+8K
N9N9mBofVMl4EcBiDR/eecK+ro8OkeOmYPtYgFJLvxTYXiPIhOxMAlkOY2fpin/t
cgFLUFuN4ag751XjjcNpVovVq95vdg+VhKrrNVWZjJt03owW81BzoryY6CD2kIPq
UxK89zEdeYOUT7AxaT/5V5v41IvGFZxCzwIDAQAB
-----END RSA PUBLIC KEY-----
'';
};
};
};
cloudkrebs = {
cores = 1;
dc = "lass"; #dc = "cac";

42
lass/1systems/echelon.nix Normal file
View file

@ -0,0 +1,42 @@
{ config, pkgs, ... }:
{
imports = [
../../tv/2configs/CAC-Developer-2.nix
../../tv/2configs/CAC-CentOS-7-64bit.nix
../2configs/base.nix
../2configs/retiolum.nix
../2configs/fastpoke-pages.nix
../2configs/new-repos.nix
{
networking.interfaces.enp2s1.ip4 = [
{
address = "162.248.167.198";
prefixLength = 24;
}
];
networking.defaultGateway = "162.248.167.1";
networking.nameservers = [
"8.8.8.8"
];
}
];
krebs.build = {
user = config.krebs.users.lass;
target = "root@162.248.167.198";
host = config.krebs.hosts.echelon;
deps = {
secrets = {
url = "/home/lass/secrets/${config.krebs.build.host.name}";
};
stockholm = {
url = toString ../..;
};
};
};
networking.hostName = "cloudkrebs";
}