summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-07-14 00:17:58 +0200
committertv <tv@krebsco.de>2017-07-14 00:21:02 +0200
commit58380c82848c3db0bd6c3d74904153f3464c2098 (patch)
treedcefa424c037ef13edba18967143b3290dc739cb
parentc213968c44befe32f115ec0122accebdabd89582 (diff)
merge shared into krebs
-rw-r--r--Makefile2
-rw-r--r--krebs/1systems/test-all-krebs-modules/config.nix (renamed from shared/1systems/test-all-krebs-modules/config.nix)5
-rw-r--r--krebs/1systems/test-all-krebs-modules/source.nix3
-rw-r--r--krebs/1systems/test-arch/config.nix (renamed from shared/1systems/test-arch/config.nix)3
-rw-r--r--krebs/1systems/test-arch/source.nix3
-rw-r--r--krebs/1systems/test-centos6/config.nix (renamed from shared/1systems/test-centos6/config.nix)5
-rw-r--r--krebs/1systems/test-centos6/source.nix3
-rw-r--r--krebs/1systems/test-centos7/config.nix17
-rw-r--r--krebs/1systems/test-centos7/source.nix3
-rw-r--r--krebs/1systems/test-failing/config.nix (renamed from shared/1systems/test-failing/config.nix)3
-rw-r--r--krebs/1systems/test-failing/source.nix3
-rw-r--r--krebs/1systems/test-minimal-deploy/config.nix (renamed from shared/1systems/test-minimal-deploy/config.nix)5
-rw-r--r--krebs/1systems/test-minimal-deploy/source.nix3
-rw-r--r--krebs/1systems/wolf/config.nix (renamed from shared/1systems/wolf/config.nix)35
-rw-r--r--krebs/1systems/wolf/source.nix3
-rw-r--r--krebs/2configs/central-stats-client.nix (renamed from shared/2configs/central-stats-client.nix)0
-rw-r--r--krebs/2configs/cgit-mirror.nix (renamed from shared/2configs/cgit-mirror.nix)0
-rw-r--r--krebs/2configs/collectd-base.nix (renamed from shared/2configs/collectd-base.nix)0
-rw-r--r--krebs/2configs/default.nix (renamed from shared/2configs/default.nix)3
-rw-r--r--krebs/2configs/graphite.nix (renamed from shared/2configs/graphite.nix)0
-rw-r--r--krebs/2configs/os-templates/CAC-CentOS-6.5-64bit.nix (renamed from shared/2configs/os-templates/CAC-CentOS-6.5-64bit.nix)0
-rw-r--r--krebs/2configs/os-templates/CAC-CentOS-7-64bit.nix (renamed from shared/2configs/os-templates/CAC-CentOS-7-64bit.nix)0
-rw-r--r--krebs/2configs/repo-sync.nix (renamed from shared/2configs/repo-sync.nix)0
-rw-r--r--krebs/2configs/save-diskspace.nix (renamed from shared/2configs/save-diskspace.nix)0
-rw-r--r--krebs/2configs/shack/bincache.nix (renamed from shared/2configs/shack/bincache.nix)0
-rw-r--r--krebs/2configs/shack/drivedroid.nix (renamed from shared/2configs/shack/drivedroid.nix)0
-rw-r--r--krebs/2configs/shack/mqtt_sub.nix (renamed from shared/2configs/shack/mqtt_sub.nix)0
-rw-r--r--krebs/2configs/shack/muell_caller.nix (renamed from shared/2configs/shack/muell_caller.nix)0
-rw-r--r--krebs/2configs/shack/nix-cacher.nix (renamed from shared/2configs/shack/nix-cacher.nix)0
-rw-r--r--krebs/2configs/shack/radioactive.nix (renamed from shared/2configs/shack/radioactive.nix)0
-rw-r--r--krebs/2configs/shack/share.nix (renamed from shared/2configs/shack/share.nix)0
-rw-r--r--krebs/2configs/shack/worlddomination.nix (renamed from shared/2configs/shack/worlddomination.nix)0
-rw-r--r--krebs/2configs/shared-buildbot.nix (renamed from shared/2configs/shared-buildbot.nix)10
-rw-r--r--krebs/2configs/temp/dirs.nix (renamed from shared/2configs/temp/dirs.nix)0
-rw-r--r--krebs/2configs/temp/networking.nix (renamed from shared/2configs/temp/networking.nix)0
-rw-r--r--krebs/3modules/default.nix2
-rw-r--r--krebs/3modules/krebs/default.nix (renamed from krebs/3modules/shared/default.nix)8
-rwxr-xr-xkrebs/5pkgs/test/infest-cac-centos7/notes8
-rw-r--r--krebs/6tests/data/secrets/grafana_security.nix (renamed from shared/6tests/data/secrets/grafana_security.nix)0
-rw-r--r--krebs/6tests/data/secrets/retiolum.rsa_key.priv (renamed from shared/6tests/data/secrets/retiolum.rsa_key.priv)0
-rw-r--r--krebs/6tests/data/secrets/ssh.id_ed25519 (renamed from shared/6tests/data/secrets/ssh.id_ed25519)0
-rw-r--r--krebs/source.nix (renamed from shared/source.nix)10
-rw-r--r--shared/1systems/test-all-krebs-modules/source.nix3
-rw-r--r--shared/1systems/test-arch/source.nix3
-rw-r--r--shared/1systems/test-centos6/source.nix3
-rw-r--r--shared/1systems/test-centos7/config.nix16
-rw-r--r--shared/1systems/test-centos7/source.nix3
-rw-r--r--shared/1systems/test-failing/source.nix3
-rw-r--r--shared/1systems/test-minimal-deploy/source.nix3
-rw-r--r--shared/1systems/wolf/source.nix3
-rw-r--r--shared/3modules/default.nix5
-rw-r--r--shared/default.nix8
52 files changed, 90 insertions, 97 deletions
diff --git a/Makefile b/Makefile
index 962eae00..0a9b4f29 100644
--- a/Makefile
+++ b/Makefile
@@ -109,7 +109,7 @@ populate:
pkgs:;@$(error no package selected)
pkgs.%:;@$(call build,$@)
-# usage: make LOGNAME=shared system=wolf eval.config.krebs.build.host.name
+# usage: make LOGNAME=krebs system=wolf eval.config.krebs.build.host.name
eval eval.:;@$(call evaluate,$${expr-eval})
eval.%:;@$(call evaluate,$@)
diff --git a/shared/1systems/test-all-krebs-modules/config.nix b/krebs/1systems/test-all-krebs-modules/config.nix
index 7ebcf3b5..c0c14b71 100644
--- a/shared/1systems/test-all-krebs-modules/config.nix
+++ b/krebs/1systems/test-all-krebs-modules/config.nix
@@ -3,11 +3,12 @@ let
en = { enable = true;};
in {
imports = [
- <stockholm/shared>
+ <stockholm/krebs>
+ <stockholm/krebs/2configs>
];
krebs = {
enable = true;
- build.user = config.krebs.users.shared;
+ build.user = config.krebs.users.krebs;
build.host = config.krebs.hosts.test-all-krebs-modules;
Reaktor.test = {};
apt-cacher-ng.enable = true;
diff --git a/krebs/1systems/test-all-krebs-modules/source.nix b/krebs/1systems/test-all-krebs-modules/source.nix
new file mode 100644
index 00000000..66fdaa77
--- /dev/null
+++ b/krebs/1systems/test-all-krebs-modules/source.nix
@@ -0,0 +1,3 @@
+import <stockholm/krebs/source.nix> {
+ name = "test-all-krebs-modules";
+}
diff --git a/shared/1systems/test-arch/config.nix b/krebs/1systems/test-arch/config.nix
index 453483d4..b5a4234e 100644
--- a/shared/1systems/test-arch/config.nix
+++ b/krebs/1systems/test-arch/config.nix
@@ -2,7 +2,8 @@
{
imports = [
- <stockholm/shared>
+ <stockholm/krebs>
+ <stockholm/krebs/2configs>
{
boot.loader.grub = {
device = "/dev/sda";
diff --git a/krebs/1systems/test-arch/source.nix b/krebs/1systems/test-arch/source.nix
new file mode 100644
index 00000000..bff9d432
--- /dev/null
+++ b/krebs/1systems/test-arch/source.nix
@@ -0,0 +1,3 @@
+import <stockholm/krebs/source.nix> {
+ name = "test-arch";
+}
diff --git a/shared/1systems/test-centos6/config.nix b/krebs/1systems/test-centos6/config.nix
index a81ff7c5..968f8b8f 100644
--- a/shared/1systems/test-centos6/config.nix
+++ b/krebs/1systems/test-centos6/config.nix
@@ -7,8 +7,9 @@ let
gw = "168.235.148.1";
in {
imports = [
- <stockholm/shared>
- <stockholm/shared/2configs/os-templates/CAC-CentOS-6.5-64bit.nix>
+ <stockholm/krebs>
+ <stockholm/krebs/2configs>
+ <stockholm/krebs/2configs/os-templates/CAC-CentOS-6.5-64bit.nix>
{
networking.interfaces.enp11s0.ip4 = [
{
diff --git a/krebs/1systems/test-centos6/source.nix b/krebs/1systems/test-centos6/source.nix
new file mode 100644
index 00000000..3693bbb2
--- /dev/null
+++ b/krebs/1systems/test-centos6/source.nix
@@ -0,0 +1,3 @@
+import <stockholm/krebs/source.nix> {
+ name = "test-centos6";
+}
diff --git a/krebs/1systems/test-centos7/config.nix b/krebs/1systems/test-centos7/config.nix
new file mode 100644
index 00000000..732bc4f1
--- /dev/null
+++ b/krebs/1systems/test-centos7/config.nix
@@ -0,0 +1,17 @@
+{ config, lib, pkgs, ... }:
+
+let
+ inherit (lib) head;
+
+in {
+ imports = [
+ <stockholm/krebs>
+ <stockholm/krebs/2configs>
+ <stockholm/krebs/2configs/os-templates/CAC-CentOS-7-64bit.nix>
+ <stockholm/krebs/2configs/temp/networking.nix>
+ <stockholm/krebs/2configs/temp/dirs.nix>
+ ];
+
+ sound.enable = false;
+ krebs.build.host = config.krebs.hosts.test-centos7;
+}
diff --git a/krebs/1systems/test-centos7/source.nix b/krebs/1systems/test-centos7/source.nix
new file mode 100644
index 00000000..44230f08
--- /dev/null
+++ b/krebs/1systems/test-centos7/source.nix
@@ -0,0 +1,3 @@
+import <stockholm/krebs/source.nix> {
+ name = "test-centos7";
+}
diff --git a/shared/1systems/test-failing/config.nix b/krebs/1systems/test-failing/config.nix
index fb6a5839..0dc8e6bf 100644
--- a/shared/1systems/test-failing/config.nix
+++ b/krebs/1systems/test-failing/config.nix
@@ -2,7 +2,8 @@
{
imports = [
- <stockholm/shared>
+ <stockholm/krebs>
+ <stockholm/krebs/2configs>
];
programs.ssh.startAgent = true;
programs.ssh.startAgent = false;
diff --git a/krebs/1systems/test-failing/source.nix b/krebs/1systems/test-failing/source.nix
new file mode 100644
index 00000000..60b77a0a
--- /dev/null
+++ b/krebs/1systems/test-failing/source.nix
@@ -0,0 +1,3 @@
+import <stockholm/krebs/source.nix> {
+ name = "test-failing";
+}
diff --git a/shared/1systems/test-minimal-deploy/config.nix b/krebs/1systems/test-minimal-deploy/config.nix
index eab70367..9974b4f7 100644
--- a/shared/1systems/test-minimal-deploy/config.nix
+++ b/krebs/1systems/test-minimal-deploy/config.nix
@@ -1,11 +1,12 @@
{ config, pkgs, lib, ... }:
{
imports = [
- <stockholm/shared>
+ <stockholm/krebs>
+ <stockholm/krebs/2configs>
];
krebs = {
enable = true;
- build.user = config.krebs.users.shared;
+ build.user = config.krebs.users.krebs;
build.host = config.krebs.hosts.test-all-krebs-modules;
};
# just get the system to eval in nixos without errors
diff --git a/krebs/1systems/test-minimal-deploy/source.nix b/krebs/1systems/test-minimal-deploy/source.nix
new file mode 100644
index 00000000..032ab12b
--- /dev/null
+++ b/krebs/1systems/test-minimal-deploy/source.nix
@@ -0,0 +1,3 @@
+import <stockholm/krebs/source.nix> {
+ name = "test-minimal-deploy";
+}
diff --git a/shared/1systems/wolf/config.nix b/krebs/1systems/wolf/config.nix
index 636f8e82..b8cc1b4a 100644
--- a/shared/1systems/wolf/config.nix
+++ b/krebs/1systems/wolf/config.nix
@@ -4,24 +4,25 @@ let
in
{
imports = [
- <stockholm/shared>
+ <stockholm/krebs>
+ <stockholm/krebs/2configs>
<nixpkgs/nixos/modules/profiles/qemu-guest.nix>
- <stockholm/shared/2configs/collectd-base.nix>
- <stockholm/shared/2configs/central-stats-client.nix>
- <stockholm/shared/2configs/save-diskspace.nix>
-
- <stockholm/shared/2configs/cgit-mirror.nix>
- <stockholm/shared/2configs/graphite.nix>
- <stockholm/shared/2configs/repo-sync.nix>
- <stockholm/shared/2configs/shared-buildbot.nix>
-
- <stockholm/shared/2configs/shack/worlddomination.nix>
- <stockholm/shared/2configs/shack/drivedroid.nix>
- # <stockholm/shared/2configs/shack/nix-cacher.nix>
- <stockholm/shared/2configs/shack/mqtt_sub.nix>
- <stockholm/shared/2configs/shack/muell_caller.nix>
- <stockholm/shared/2configs/shack/radioactive.nix>
- <stockholm/shared/2configs/shack/share.nix>
+ <stockholm/krebs/2configs/collectd-base.nix>
+ <stockholm/krebs/2configs/central-stats-client.nix>
+ <stockholm/krebs/2configs/save-diskspace.nix>
+
+ <stockholm/krebs/2configs/cgit-mirror.nix>
+ <stockholm/krebs/2configs/graphite.nix>
+ <stockholm/krebs/2configs/repo-sync.nix>
+ <stockholm/krebs/2configs/shared-buildbot.nix>
+
+ <stockholm/krebs/2configs/shack/worlddomination.nix>
+ <stockholm/krebs/2configs/shack/drivedroid.nix>
+ # <stockholm/krebs/2configs/shack/nix-cacher.nix>
+ <stockholm/krebs/2configs/shack/mqtt_sub.nix>
+ <stockholm/krebs/2configs/shack/muell_caller.nix>
+ <stockholm/krebs/2configs/shack/radioactive.nix>
+ <stockholm/krebs/2configs/shack/share.nix>
];
# use your own binary cache, fallback use cache.nixos.org (which is used by
diff --git a/krebs/1systems/wolf/source.nix b/krebs/1systems/wolf/source.nix
new file mode 100644
index 00000000..c292bfa6
--- /dev/null
+++ b/krebs/1systems/wolf/source.nix
@@ -0,0 +1,3 @@
+import <stockholm/krebs/source.nix> {
+ name = "wolf";
+}
diff --git a/shared/2configs/central-stats-client.nix b/krebs/2configs/central-stats-client.nix
index 0412eba9..0412eba9 100644
--- a/shared/2configs/central-stats-client.nix
+++ b/krebs/2configs/central-stats-client.nix
diff --git a/shared/2configs/cgit-mirror.nix b/krebs/2configs/cgit-mirror.nix
index c2326a5c..c2326a5c 100644
--- a/shared/2configs/cgit-mirror.nix
+++ b/krebs/2configs/cgit-mirror.nix
diff --git a/shared/2configs/collectd-base.nix b/krebs/2configs/collectd-base.nix
index 440f83fc..440f83fc 100644
--- a/shared/2configs/collectd-base.nix
+++ b/krebs/2configs/collectd-base.nix
diff --git a/shared/2configs/default.nix b/krebs/2configs/default.nix
index 2146f42e..53ad56d6 100644
--- a/shared/2configs/default.nix
+++ b/krebs/2configs/default.nix
@@ -5,8 +5,7 @@ with import <stockholm/lib>;
krebs.enable = true;
krebs.tinc.retiolum.enable = true;
- # TODO rename shared user to "krebs"
- krebs.build.user = mkDefault config.krebs.users.shared;
+ krebs.build.user = mkDefault config.krebs.users.krebs;
networking.hostName = config.krebs.build.host.name;
diff --git a/shared/2configs/graphite.nix b/krebs/2configs/graphite.nix
index 64222e43..64222e43 100644
--- a/shared/2configs/graphite.nix
+++ b/krebs/2configs/graphite.nix
diff --git a/shared/2configs/os-templates/CAC-CentOS-6.5-64bit.nix b/krebs/2configs/os-templates/CAC-CentOS-6.5-64bit.nix
index b5ec722a..b5ec722a 100644
--- a/shared/2configs/os-templates/CAC-CentOS-6.5-64bit.nix
+++ b/krebs/2configs/os-templates/CAC-CentOS-6.5-64bit.nix
diff --git a/shared/2configs/os-templates/CAC-CentOS-7-64bit.nix b/krebs/2configs/os-templates/CAC-CentOS-7-64bit.nix
index 168d1d97..168d1d97 100644
--- a/shared/2configs/os-templates/CAC-CentOS-7-64bit.nix
+++ b/krebs/2configs/os-templates/CAC-CentOS-7-64bit.nix
diff --git a/shared/2configs/repo-sync.nix b/krebs/2configs/repo-sync.nix
index 637a26e3..637a26e3 100644
--- a/shared/2configs/repo-sync.nix
+++ b/krebs/2configs/repo-sync.nix
diff --git a/shared/2configs/save-diskspace.nix b/krebs/2configs/save-diskspace.nix
index ab074c75..ab074c75 100644
--- a/shared/2configs/save-diskspace.nix
+++ b/krebs/2configs/save-diskspace.nix
diff --git a/shared/2configs/shack/bincache.nix b/krebs/2configs/shack/bincache.nix
index 9cd7fae2..9cd7fae2 100644
--- a/shared/2configs/shack/bincache.nix
+++ b/krebs/2configs/shack/bincache.nix
diff --git a/shared/2configs/shack/drivedroid.nix b/krebs/2configs/shack/drivedroid.nix
index 12e4a39c..12e4a39c 100644
--- a/shared/2configs/shack/drivedroid.nix
+++ b/krebs/2configs/shack/drivedroid.nix
diff --git a/shared/2configs/shack/mqtt_sub.nix b/krebs/2configs/shack/mqtt_sub.nix
index a8427dde..a8427dde 100644
--- a/shared/2configs/shack/mqtt_sub.nix
+++ b/krebs/2configs/shack/mqtt_sub.nix
diff --git a/shared/2configs/shack/muell_caller.nix b/krebs/2configs/shack/muell_caller.nix
index 2d8d78e3..2d8d78e3 100644
--- a/shared/2configs/shack/muell_caller.nix
+++ b/krebs/2configs/shack/muell_caller.nix
diff --git a/shared/2configs/shack/nix-cacher.nix b/krebs/2configs/shack/nix-cacher.nix
index 8feeca9a..8feeca9a 100644
--- a/shared/2configs/shack/nix-cacher.nix
+++ b/krebs/2configs/shack/nix-cacher.nix
diff --git a/shared/2configs/shack/radioactive.nix b/krebs/2configs/shack/radioactive.nix
index 378b5405..378b5405 100644
--- a/shared/2configs/shack/radioactive.nix
+++ b/krebs/2configs/shack/radioactive.nix
diff --git a/shared/2configs/shack/share.nix b/krebs/2configs/shack/share.nix
index 247b9ee7..247b9ee7 100644
--- a/shared/2configs/shack/share.nix
+++ b/krebs/2configs/shack/share.nix
diff --git a/shared/2configs/shack/worlddomination.nix b/krebs/2configs/shack/worlddomination.nix
index d0f9f5fa..d0f9f5fa 100644
--- a/shared/2configs/shack/worlddomination.nix
+++ b/krebs/2configs/shack/worlddomination.nix
diff --git a/shared/2configs/shared-buildbot.nix b/krebs/2configs/shared-buildbot.nix
index 1d6883af..efb41cc3 100644
--- a/shared/2configs/shared-buildbot.nix
+++ b/krebs/2configs/shared-buildbot.nix
@@ -1,9 +1,9 @@
{ lib, config, pkgs, ... }:
# The buildbot config is self-contained and currently provides a way
-# to test "shared" configuration (infrastructure to be used by every krebsminister).
+# to test "krebs" configuration (infrastructure to be used by every krebsminister).
# You can add your own test, test steps as required. Deploy the config on a
-# shared host like wolf and everything should be fine.
+# krebs host like wolf and everything should be fine.
# TODO for all users schedule a build for fast tests
{
@@ -56,7 +56,7 @@
test-cac-infest-master = ''
# files everyone depends on or are part of the share branch
def shared_files(change):
- r =re.compile("^((krebs|shared)/.*|Makefile|default.nix)")
+ r =re.compile("^(krebs/.*|Makefile|default.nix|shell.nix)")
for file in change.files:
if r.match(file):
return True
@@ -78,7 +78,7 @@
grab_repo = steps.Git(repourl=stockholm_repo, mode='incremental')
env = {
- "LOGNAME": "shared",
+ "LOGNAME": "krebs",
"NIX_REMOTE": "daemon",
"dummy_secrets": "true",
}
@@ -173,6 +173,6 @@
packages = with pkgs; [ gnumake jq nix populate ];
# all nix commands will need a working nixpkgs installation
extraEnviron = {
- NIX_PATH="nixpkgs=/var/src/nixpkgs:nixos-config=./shared/1systems/wolf.nix"; };
+ NIX_PATH="nixpkgs=/var/src/nixpkgs:nixos-config=./krebs/1systems/wolf.nix"; };
};
}
diff --git a/shared/2configs/temp/dirs.nix b/krebs/2configs/temp/dirs.nix
index 958608a5..958608a5 100644
--- a/shared/2configs/temp/dirs.nix
+++ b/krebs/2configs/temp/dirs.nix
diff --git a/shared/2configs/temp/networking.nix b/krebs/2configs/temp/networking.nix
index 958608a5..958608a5 100644
--- a/shared/2configs/temp/networking.nix
+++ b/krebs/2configs/temp/networking.nix
diff --git a/krebs/3modules/default.nix b/krebs/3modules/default.nix
index 081724cf..6123b6dd 100644
--- a/krebs/3modules/default.nix
+++ b/krebs/3modules/default.nix
@@ -94,10 +94,10 @@ let
imp = lib.mkMerge [
{ krebs = import ./lass { inherit config; }; }
+ { krebs = import ./krebs { inherit config; }; }
{ krebs = import ./makefu { inherit config; }; }
{ krebs = import ./mv { inherit config; }; }
{ krebs = import ./nin { inherit config; }; }
- { krebs = import ./shared { inherit config; }; }
{ krebs = import ./tv { inherit config; }; }
{
krebs.dns.providers = {
diff --git a/krebs/3modules/shared/default.nix b/krebs/3modules/krebs/default.nix
index 17179a39..780aeb1c 100644
--- a/krebs/3modules/shared/default.nix
+++ b/krebs/3modules/krebs/default.nix
@@ -8,7 +8,7 @@ let
"test-centos7"
"test-all-krebs-modules"
] (name: {
- owner = config.krebs.users.shared;
+ owner = config.krebs.users.krebs;
inherit name;
cores = 1;
nets = {
@@ -31,7 +31,7 @@ let
in {
hosts = {
wolf = {
- owner = config.krebs.users.shared;
+ owner = config.krebs.users.krebs;
nets = {
shack = {
ip4.addr = "10.42.2.150" ;
@@ -67,9 +67,9 @@ in {
};
} // testHosts;
users = {
- shared = {
+ krebs = {
mail = "spam@krebsco.de";
- pubkey = "lol"; # TODO krebs.users.shared.pubkey should be unnecessary
+ pubkey = "lol"; # TODO krebs.users.krebs.pubkey should be unnecessary
};
};
}
diff --git a/krebs/5pkgs/test/infest-cac-centos7/notes b/krebs/5pkgs/test/infest-cac-centos7/notes
index 2a3ebd6f..e89edffc 100755
--- a/krebs/5pkgs/test/infest-cac-centos7/notes
+++ b/krebs/5pkgs/test/infest-cac-centos7/notes
@@ -15,7 +15,7 @@ krebs_cred=${krebs_cred-./cac.json}
# tinc retiolum key for host
retiolum_key=${retiolum_key-./retiolum.rsa_key.priv}
# build this host
-user=${user:-shared}
+user=${user:-krebs}
system=${target_system:-test-centos7}
log(){
@@ -125,9 +125,9 @@ done
clear_defer >/dev/null
defer "cac-api delete $id;$old_trapstr"
-mkdir -p shared/2configs/temp
+mkdir -p krebs/2configs/temp
cac-api generatenetworking $id > \
- shared/2configs/temp/networking.nix
+ krebs/2configs/temp/networking.nix
# new temporary ssh key we will use to log in after install
ssh-keygen -f $krebs_ssh -N ""
cp "$retiolum_key" $krebs_secrets/retiolum.rsa_key.priv
@@ -135,7 +135,7 @@ cp "$retiolum_key" $krebs_secrets/retiolum.rsa_key.priv
# additionally we set the ssh key we generated
ip=$(cac-api getserver $id | jq -r .ip)
-cat > shared/2configs/temp/dirs.nix <<EOF
+cat > krebs/2configs/temp/dirs.nix <<EOF
_: {
krebs.build.source = {
secrets.file = "$krebs_secrets";
diff --git a/shared/6tests/data/secrets/grafana_security.nix b/krebs/6tests/data/secrets/grafana_security.nix
index 0967ef42..0967ef42 100644
--- a/shared/6tests/data/secrets/grafana_security.nix
+++ b/krebs/6tests/data/secrets/grafana_security.nix
diff --git a/shared/6tests/data/secrets/retiolum.rsa_key.priv b/krebs/6tests/data/secrets/retiolum.rsa_key.priv
index e69de29b..e69de29b 100644
--- a/shared/6tests/data/secrets/retiolum.rsa_key.priv
+++ b/krebs/6tests/data/secrets/retiolum.rsa_key.priv
diff --git a/shared/6tests/data/secrets/ssh.id_ed25519 b/krebs/6tests/data/secrets/ssh.id_ed25519
index e69de29b..e69de29b 100644
--- a/shared/6tests/data/secrets/ssh.id_ed25519
+++ b/krebs/6tests/data/secrets/ssh.id_ed25519
diff --git a/shared/source.nix b/krebs/source.nix
index 762a0c64..1995d2b3 100644
--- a/shared/source.nix
+++ b/krebs/source.nix
@@ -2,14 +2,14 @@ with import <stockholm/lib>;
host@{ name, secure ? false }: let
builder = if getEnv "dummy_secrets" == "true"
then "buildbot"
- else "shared";
- _file = <stockholm> + "/shared/1systems/${name}/source.nix";
+ else "krebs";
+ _file = <stockholm> + "/krebs/1systems/${name}/source.nix";
in
evalSource (toString _file) {
- nixos-config.symlink = "stockholm/shared/1systems/${name}/config.nix";
+ nixos-config.symlink = "stockholm/krebs/1systems/${name}/config.nix";
secrets.file = getAttr builder {
- buildbot = toString <stockholm/shared/6tests/data/secrets>;
- shared = "${getEnv "HOME"}/secrets/krebs/${host.name}";
+ buildbot = toString <stockholm/krebs/6tests/data/secrets>;
+ krebs = "${getEnv "HOME"}/secrets/krebs/${host.name}";
};
stockholm.file = toString <stockholm>;
nixpkgs.git = {
diff --git a/shared/1systems/test-all-krebs-modules/source.nix b/shared/1systems/test-all-krebs-modules/source.nix
deleted file mode 100644
index 58d72365..00000000
--- a/