borgbackup: fix requirement that client and server roles must be defined
This commit is contained in:
@@ -54,7 +54,7 @@
|
|||||||
authorizedKeys = [ (builtins.readFile (borgbackupIpMachinePath machineName)) ];
|
authorizedKeys = [ (builtins.readFile (borgbackupIpMachinePath machineName)) ];
|
||||||
# };
|
# };
|
||||||
# }) machinesWithKey;
|
# }) machinesWithKey;
|
||||||
}) roles.client.machines;
|
}) (roles.client.machines or { });
|
||||||
in
|
in
|
||||||
hosts;
|
hosts;
|
||||||
};
|
};
|
||||||
@@ -187,7 +187,7 @@
|
|||||||
config.clan.core.vars.generators.borgbackup.files."borgbackup.ssh".path
|
config.clan.core.vars.generators.borgbackup.files."borgbackup.ssh".path
|
||||||
} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=Yes";
|
} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=Yes";
|
||||||
};
|
};
|
||||||
}) (builtins.attrNames roles.server.machines);
|
}) (builtins.attrNames (roles.server.machines or { }));
|
||||||
in
|
in
|
||||||
(builtins.listToAttrs destinations);
|
(builtins.listToAttrs destinations);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user