forked from fediversity/fediversity
Compare commits
3 commits
8860c18e03
...
347bb7b242
| Author | SHA1 | Date | |
|---|---|---|---|
| 347bb7b242 | |||
| e5eb0cadb0 | |||
| 3a78837932 |
1 changed files with 3 additions and 12 deletions
|
|
@ -25,16 +25,12 @@ in
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
jq
|
jq
|
||||||
automake
|
|
||||||
autoconf
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# FIXME: sad times
|
# FIXME: sad times
|
||||||
system.extraDependencies = with pkgs; [
|
system.extraDependencies = with pkgs; [
|
||||||
jq
|
jq
|
||||||
jq.inputDerivation
|
jq.inputDerivation
|
||||||
automake
|
|
||||||
autoconf
|
|
||||||
];
|
];
|
||||||
|
|
||||||
system.extraDependenciesFromModule =
|
system.extraDependenciesFromModule =
|
||||||
|
|
@ -42,18 +38,16 @@ in
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
hello
|
hello
|
||||||
automake
|
|
||||||
autoconf
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
extraTestScript = ''
|
extraTestScript = ''
|
||||||
with subtest("Check the status before deployment"):
|
|
||||||
hello.fail("hello 1>&2")
|
|
||||||
|
|
||||||
${lib.concatStringsSep "\n" (
|
${lib.concatStringsSep "\n" (
|
||||||
lib.lists.map (nodeName: ''
|
lib.lists.map (nodeName: ''
|
||||||
|
with subtest("Check the status before deployment"):
|
||||||
|
${nodeName}.fail("${nodeName} 1>&2")
|
||||||
|
|
||||||
with subtest("Run the deployment for ${nodeName}"):
|
with subtest("Run the deployment for ${nodeName}"):
|
||||||
deployer.succeed("""
|
deployer.succeed("""
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
@ -77,8 +71,6 @@ in
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
hello
|
hello
|
||||||
automake
|
|
||||||
autoconf
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
@ -96,7 +88,6 @@ in
|
||||||
eval "export $(echo $json | jq -r 'to_entries | map("\(.key)=\(.value)") | @sh')"
|
eval "export $(echo $json | jq -r 'to_entries | map("\(.key)=\(.value)") | @sh')"
|
||||||
host="root@${nodeName}"
|
host="root@${nodeName}"
|
||||||
sshOpts=(
|
sshOpts=(
|
||||||
-o BatchMode=yes
|
|
||||||
-o StrictHostKeyChecking=no
|
-o StrictHostKeyChecking=no
|
||||||
-o "ConnectTimeout=1"
|
-o "ConnectTimeout=1"
|
||||||
-o "ServerAliveInterval=1"
|
-o "ServerAliveInterval=1"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue