mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
Allow for arbitrary arguments to nomadJob
and terraformModule
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
0d4698ab78
commit
158ffab7c5
|
@ -1,11 +1,12 @@
|
||||||
{}:
|
{}:
|
||||||
{ jobspec
|
{ jobspec
|
||||||
, vars ? {}
|
, vars ? {}
|
||||||
}:
|
, ...
|
||||||
|
}@args:
|
||||||
{
|
{
|
||||||
jobspec = "\${file(\"${jobspec}\")}";
|
jobspec = "\${file(\"${jobspec}\")}";
|
||||||
hcl2 = {
|
hcl2 = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
inherit vars;
|
inherit vars;
|
||||||
};
|
};
|
||||||
}
|
} // builtins.removeAttrs args [ "name" "source" ]
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
{
|
{
|
||||||
name
|
name
|
||||||
, source
|
, source
|
||||||
}:
|
, ...
|
||||||
|
}@args:
|
||||||
{
|
{
|
||||||
source =
|
source =
|
||||||
let
|
let
|
||||||
|
@ -24,4 +25,4 @@
|
||||||
mkdir -p $out/
|
mkdir -p $out/
|
||||||
ln -s ${module} $out/main.tf.json
|
ln -s ${module} $out/main.tf.json
|
||||||
'';
|
'';
|
||||||
}
|
} // builtins.removeAttrs args [ "name" "source" ]
|
||||||
|
|
Loading…
Reference in a new issue