bundlewrap/bundles/hostname/files/hosts

16 lines
431 B
Plaintext
Raw Normal View History

127.0.0.1 localhost ${node.name} ${node.hostname}
2020-09-27 14:46:54 +00:00
% if 'hostname' in node.metadata:
127.0.0.1 ${node.metadata['hostname']}
% endif
::1 ip6-localhost
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
2020-08-20 08:01:34 +00:00
% for ip, entries in sorted(node.metadata.get('hosts', {}).get('entries', {}).items()):
${ip} ${' '.join(sorted(entries))}
% endfor