home.switch-rack: use password for authentication

This commit is contained in:
Franzi 2023-03-28 22:52:10 +02:00 committed by Franzi
parent fe7d57aca0
commit 7eb2bf68d8
3 changed files with 13 additions and 4 deletions

View file

@ -15,3 +15,6 @@ for node in Path(join(repo_path, "nodes")).rglob("*.py"):
for name, data in nodes.items():
data.setdefault('hostname', '.'.join(reversed(name.split('.'))) + '.kunbox.net')
data.setdefault('metadata', {}).setdefault('hostname', '.'.join(reversed(name.split('.'))) + '.kunbox.net')
if 'password' in data:
data['password'] = vault.decrypt(data['password'])