From 46941f532ee9912c03077cc76fdfcbc338170981 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Wed, 14 Jul 2021 12:41:22 +0200 Subject: [PATCH] wip --- bundles/hostname/metadata.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bundles/hostname/metadata.py b/bundles/hostname/metadata.py index 71595b1..6729088 100644 --- a/bundles/hostname/metadata.py +++ b/bundles/hostname/metadata.py @@ -1,5 +1,10 @@ +hostname = '.'.join([*reversed(node.name.split('.')), 'ckn', 'li']) + defaults = { - 'hostname': '.'.join([*reversed(node.name.split('.')), 'ckn', 'li']), + 'hostname': hostname, + 'hosts': { + '127.0.0.1': [hostname], + }, }