summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJens Sandmann <sandmann@b1-systems.de>2017-06-12 11:43:37 +0200
committerScott Moser <smoser@brickies.net>2017-06-15 14:31:19 -0400
commit97b71cf5bb941811fb9513a8f62ae979fe46ca6d (patch)
tree5b99aae2aa1bcc0a52e0d7fd73803e7ce0335f05 /templates
parent0fe6a0607408d387f4b0d4482b95afbc5d3f3909 (diff)
downloadvyos-cloud-init-97b71cf5bb941811fb9513a8f62ae979fe46ca6d.tar.gz
vyos-cloud-init-97b71cf5bb941811fb9513a8f62ae979fe46ca6d.zip
suse: add hostname and fully qualified domain to template.
This just adds an entry for hostname and fqdn to 127.0.0.1 in templates/hosts.suse.tmpl.
Diffstat (limited to 'templates')
-rw-r--r--templates/hosts.suse.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/hosts.suse.tmpl b/templates/hosts.suse.tmpl
index b6082692..399ec9b4 100644
--- a/templates/hosts.suse.tmpl
+++ b/templates/hosts.suse.tmpl
@@ -14,9 +14,12 @@ you need to add the following to config:
#
# The following lines are desirable for IPv4 capable hosts
127.0.0.1 localhost
+127.0.0.1 {{fqdn}} {{hostname}}
+
# The following lines are desirable for IPv6 capable hosts
::1 localhost ipv6-localhost ipv6-loopback
+::1 {{fqdn}} {{hostname}}
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix