forked from DGNum/infrastructure
feat(infra): Add nodeMeta argument
This commit is contained in:
parent
f63c95e4d9
commit
cbdbed1099
4 changed files with 12 additions and 11 deletions
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
config,
|
||||
meta,
|
||||
name,
|
||||
lib,
|
||||
nodeMeta,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -24,13 +23,13 @@ in
|
|||
register = true;
|
||||
update_all = true;
|
||||
virtual = {
|
||||
enabled = meta.nodes.${name}.vm-cluster != null;
|
||||
cluster_name = meta.nodes.${name}.vm-cluster;
|
||||
enabled = nodeMeta.vm-cluster != null;
|
||||
cluster_name = nodeMeta.vm-cluster;
|
||||
};
|
||||
purge_old_devices = true;
|
||||
hostname_cmd = "echo ${hostName}.${domain}";
|
||||
datacenter_location = {
|
||||
driver = "cmd:echo ${meta.nodes.${name}.site}";
|
||||
driver = "cmd:echo ${nodeMeta.site}";
|
||||
regex = "(.*)";
|
||||
};
|
||||
device = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue