Allow for arbitrary arguments to nomadJob and terraformModule

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-06-29 18:58:27 +02:00
parent 0d4698ab78
commit 158ffab7c5
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
2 changed files with 6 additions and 4 deletions

View file

@ -1,11 +1,12 @@
{}:
{ jobspec
, vars ? {}
}:
, ...
}@args:
{
jobspec = "\${file(\"${jobspec}\")}";
hcl2 = {
enabled = true;
inherit vars;
};
}
} // builtins.removeAttrs args [ "name" "source" ]

View file

@ -5,7 +5,8 @@
{
name
, source
}:
, ...
}@args:
{
source =
let
@ -24,4 +25,4 @@
mkdir -p $out/
ln -s ${module} $out/main.tf.json
'';
}
} // builtins.removeAttrs args [ "name" "source" ]