summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/backups.nix88
-rw-r--r--lass/2configs/buildbot-standalone.nix2
2 files changed, 76 insertions, 14 deletions
diff --git a/lass/2configs/backups.nix b/lass/2configs/backups.nix
index b20e15dd9..abc55a0e1 100644
--- a/lass/2configs/backups.nix
+++ b/lass/2configs/backups.nix
@@ -2,6 +2,8 @@
with import <stockholm/lib>;
{
+ # TODO add timerConfig to krebs.backup and randomize startup
+ # TODO define plans more abstract
krebs.backup.plans = {
} // mapAttrs (_: recursiveUpdate {
snapshots = {
@@ -17,6 +19,12 @@ with import <stockholm/lib>;
dst = { host = config.krebs.hosts.prism; path = "/bku/dishfire-http"; };
startAt = "03:00";
};
+ dishfire-http-icarus = {
+ method = "pull";
+ src = { host = config.krebs.hosts.dishfire; path = "/srv/http"; };
+ dst = { host = config.krebs.hosts.icarus; path = "/bku/dishfire-http"; };
+ startAt = "03:10";
+ };
dishfire-http-mors = {
method = "pull";
src = { host = config.krebs.hosts.dishfire; path = "/srv/http"; };
@@ -26,7 +34,7 @@ with import <stockholm/lib>;
dishfire-http-shodan = {
method = "pull";
src = { host = config.krebs.hosts.dishfire; path = "/srv/http"; };
- dst = { host = config.krebs.hosts.shodan; path = "/bku/dishfire-http"; };
+ dst = { host = config.krebs.hosts.shodan; path = "/bku/dishfire-http"; };
startAt = "03:10";
};
dishfire-sql-prism = {
@@ -35,6 +43,12 @@ with import <stockholm/lib>;
dst = { host = config.krebs.hosts.prism; path = "/bku/dishfire-sql"; };
startAt = "03:15";
};
+ dishfire-sql-icarus = {
+ method = "pull";
+ src = { host = config.krebs.hosts.dishfire; path = "/bku/sql_dumps"; };
+ dst = { host = config.krebs.hosts.icarus; path = "/bku/dishfire-sql"; };
+ startAt = "03:25";
+ };
dishfire-sql-mors = {
method = "pull";
src = { host = config.krebs.hosts.dishfire; path = "/bku/sql_dumps"; };
@@ -44,21 +58,33 @@ with import <stockholm/lib>;
dishfire-sql-shodan = {
method = "pull";
src = { host = config.krebs.hosts.dishfire; path = "/bku/sql_dumps"; };
- dst = { host = config.krebs.hosts.shodan; path = "/bku/dishfire-sql"; };
+ dst = { host = config.krebs.hosts.shodan; path = "/bku/dishfire-sql"; };
+ startAt = "03:25";
+ };
+ prism-bitlbee-icarus = {
+ method = "pull";
+ src = { host = config.krebs.hosts.prism; path = "/var/lib/bitlbee"; };
+ dst = { host = config.krebs.hosts.icarus; path = "/bku/prism-bitlbee"; };
startAt = "03:25";
};
prism-bitlbee-mors = {
method = "pull";
src = { host = config.krebs.hosts.prism; path = "/var/lib/bitlbee"; };
- dst = { host = config.krebs.hosts.mors; path = "/bku/prism-bitlbee"; };
+ dst = { host = config.krebs.hosts.mors; path = "/bku/prism-bitlbee"; };
startAt = "03:25";
};
prism-bitlbee-shodan = {
method = "pull";
- src = { host = config.krebs.hosts.prism; path = "/var/lib/bitlbee"; };
+ src = { host = config.krebs.hosts.prism; path = "/var/lib/bitlbee"; };
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-bitlbee"; };
startAt = "03:25";
};
+ prism-chat-icarus = {
+ method = "pull";
+ src = { host = config.krebs.hosts.prism; path = "/home/chat"; };
+ dst = { host = config.krebs.hosts.icarus; path = "/bku/prism-chat"; };
+ startAt = "03:35";
+ };
prism-chat-mors = {
method = "pull";
src = { host = config.krebs.hosts.prism; path = "/home/chat"; };
@@ -67,10 +93,16 @@ with import <stockholm/lib>;
};
prism-chat-shodan = {
method = "pull";
- src = { host = config.krebs.hosts.prism; path = "/home/chat"; };
+ src = { host = config.krebs.hosts.prism; path = "/home/chat"; };
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-chat"; };
startAt = "03:35";
};
+ prism-sql-icarus = {
+ method = "pull";
+ src = { host = config.krebs.hosts.prism; path = "/bku/sql_dumps"; };
+ dst = { host = config.krebs.hosts.icarus; path = "/bku/prism-sql_dumps"; };
+ startAt = "03:45";
+ };
prism-sql-mors = {
method = "pull";
src = { host = config.krebs.hosts.prism; path = "/bku/sql_dumps"; };
@@ -79,10 +111,16 @@ with import <stockholm/lib>;
};
prism-sql-shodan = {
method = "pull";
- src = { host = config.krebs.hosts.prism; path = "/bku/sql_dumps"; };
+ src = { host = config.krebs.hosts.prism; path = "/bku/sql_dumps"; };
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-sql_dumps"; };
startAt = "03:45";
};
+ prism-http-icarus = {
+ method = "pull";
+ src = { host = config.krebs.hosts.prism; path = "/srv/http"; };
+ dst = { host = config.krebs.hosts.icarus; path = "/bku/prism-http"; };
+ startAt = "03:55";
+ };
prism-http-mors = {
method = "pull";
src = { host = config.krebs.hosts.prism; path = "/srv/http"; };
@@ -91,21 +129,45 @@ with import <stockholm/lib>;
};
prism-http-shodan = {
method = "pull";
- src = { host = config.krebs.hosts.prism; path = "/srv/http"; };
+ src = { host = config.krebs.hosts.prism; path = "/srv/http"; };
dst = { host = config.krebs.hosts.shodan; path = "/bku/prism-http"; };
startAt = "03:55";
};
- shodan-home-mors = {
- method = "pull";
- src = { host = config.krebs.hosts.shodan; path = "/home"; };
- dst = { host = config.krebs.hosts.mors; path = "/bku/shodan-home"; };
- startAt = "04:00";
+ icarus-home-mors = {
+ method = "push";
+ src = { host = config.krebs.hosts.icarus; path = "/home"; };
+ dst = { host = config.krebs.hosts.mors; path = "/bku/icarus-home"; };
+ startAt = "05:00";
+ };
+ icarus-home-shodan = {
+ method = "push";
+ src = { host = config.krebs.hosts.icarus; path = "/home"; };
+ dst = { host = config.krebs.hosts.shodan; path = "/bku/icarus-home"; };
+ startAt = "05:00";
+ };
+ mors-home-icarus = {
+ method = "push";
+ src = { host = config.krebs.hosts.mors; path = "/home"; };
+ dst = { host = config.krebs.hosts.icarus; path = "/bku/mors-home"; };
+ startAt = "05:00";
};
mors-home-shodan = {
method = "push";
- src = { host = config.krebs.hosts.mors; path = "/home"; };
+ src = { host = config.krebs.hosts.mors; path = "/home"; };
dst = { host = config.krebs.hosts.shodan; path = "/bku/mors-home"; };
startAt = "05:00";
};
+ shodan-home-icarus = {
+ method = "pull";
+ src = { host = config.krebs.hosts.shodan; path = "/home"; };
+ dst = { host = config.krebs.hosts.icarus; path = "/bku/shodan-home"; };
+ startAt = "04:00";
+ };
+ shodan-home-mors = {
+ method = "pull";
+ src = { host = config.krebs.hosts.shodan; path = "/home"; };
+ dst = { host = config.krebs.hosts.mors; path = "/bku/shodan-home"; };
+ startAt = "04:00";
+ };
};
}
diff --git a/lass/2configs/buildbot-standalone.nix b/lass/2configs/buildbot-standalone.nix
index 86e7880db..e1fe9fd23 100644
--- a/lass/2configs/buildbot-standalone.nix
+++ b/lass/2configs/buildbot-standalone.nix
@@ -80,7 +80,7 @@ in {
]
)
- for i in [ "test-all-krebs-modules", "test-centos7", "test-minimal-deploy", "wolf" ]:
+ for i in [ "puyak", "test-all-krebs-modules", "test-centos7", "test-minimal-deploy", "wolf" ]:
build_host("krebs", i)
for i in [ "mors", "uriel", "shodan", "icarus", "cloudkrebs", "echelon", "dishfire", "prism" ]: