krebs.*: make StrictHostKeyChecking configurable
This commit is contained in:
parent
5206c11026
commit
fc64fd18cb
@ -17,7 +17,8 @@
|
|||||||
{ current-date ? abort "current-date not defined"
|
{ current-date ? abort "current-date not defined"
|
||||||
, current-host-name ? abort "current-host-name not defined"
|
, current-host-name ? abort "current-host-name not defined"
|
||||||
, current-user-name ? builtins.getEnv "LOGNAME"
|
, current-user-name ? builtins.getEnv "LOGNAME"
|
||||||
}@current:
|
, StrictHostKeyChecking ? "yes"
|
||||||
|
}@args:
|
||||||
|
|
||||||
let stockholm = {
|
let stockholm = {
|
||||||
# The generated scripts to deploy (or infest) systems can be found in the
|
# The generated scripts to deploy (or infest) systems can be found in the
|
||||||
@ -47,7 +48,7 @@ let stockholm = {
|
|||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
};
|
};
|
||||||
|
|
||||||
krebs = import ./krebs (current // { inherit lib stockholm; });
|
krebs = import ./krebs (args // { inherit lib stockholm; });
|
||||||
|
|
||||||
lib =
|
lib =
|
||||||
let
|
let
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
, current-user-name
|
, current-user-name
|
||||||
, lib
|
, lib
|
||||||
, stockholm
|
, stockholm
|
||||||
|
, StrictHostKeyChecking ? "yes"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let out = {
|
let out = {
|
||||||
@ -260,7 +261,10 @@ let out = {
|
|||||||
in out;
|
in out;
|
||||||
|
|
||||||
rootssh = target: script:
|
rootssh = target: script:
|
||||||
"ssh root@${target} -T ${doc ''
|
let
|
||||||
|
flags = "-o StrictHostKeyChecking=${StrictHostKeyChecking}";
|
||||||
|
in
|
||||||
|
"ssh ${flags} root@${target} -T ${doc ''
|
||||||
set -efu
|
set -efu
|
||||||
${script}
|
${script}
|
||||||
''}";
|
''}";
|
||||||
|
Loading…
Reference in New Issue
Block a user