allow setting hostname in metadata

This commit is contained in:
Franzi 2020-09-27 16:46:54 +02:00
parent 5d1e71e83e
commit c2c9913514
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 10 additions and 2 deletions

View file

@ -1,4 +1,7 @@
127.0.0.1 localhost ${node.name} ${node.hostname}
% if 'hostname' in node.metadata:
127.0.0.1 ${node.metadata['hostname']}
% endif
::1 ip6-localhost
fe00::0 ip6-localnet