Blame templates/hosts.suse.tmpl
|
Packit Service |
a04d08 |
## template:jinja
|
|
Packit Service |
a04d08 |
{#
|
|
Packit Service |
a04d08 |
This file /etc/cloud/templates/hosts.suse.tmpl is only utilized
|
|
Packit Service |
a04d08 |
if enabled in cloud-config. Specifically, in order to enable it
|
|
Packit Service |
a04d08 |
you need to add the following to config:
|
|
Packit Service |
a04d08 |
manage_etc_hosts: True
|
|
Packit Service |
a04d08 |
-#}
|
|
Packit Service |
a04d08 |
# Your system has configured 'manage_etc_hosts' as True.
|
|
Packit Service |
a04d08 |
# As a result, if you wish for changes to this file to persist
|
|
Packit Service |
a04d08 |
# then you will need to either
|
|
Packit Service |
a04d08 |
# a.) make changes to the master file in /etc/cloud/templates/hosts.suse.tmpl
|
|
Packit Service |
a04d08 |
# b.) change or remove the value of 'manage_etc_hosts' in
|
|
Packit Service |
a04d08 |
# /etc/cloud/cloud.cfg or cloud-config from user-data
|
|
Packit Service |
a04d08 |
#
|
|
Packit Service |
a04d08 |
# The following lines are desirable for IPv4 capable hosts
|
|
Packit Service |
751c4a |
127.0.1.1 {{fqdn}} {{hostname}}
|
|
Packit Service |
a04d08 |
127.0.0.1 localhost.localdomain localhost
|
|
Packit Service |
a04d08 |
127.0.0.1 localhost4.localdomain4 localhost4
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
# The following lines are desirable for IPv6 capable hosts
|
|
Packit Service |
a04d08 |
::1 {{fqdn}} {{hostname}}
|
|
Packit Service |
a04d08 |
::1 localhost.localdomain localhost
|
|
Packit Service |
a04d08 |
::1 localhost6.localdomain6 localhost6
|
|
Packit Service |
a04d08 |
::1 localhost ipv6-localhost ipv6-loopback
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
fe00::0 ipv6-localnet
|
|
Packit Service |
a04d08 |
ff00::0 ipv6-mcastprefix
|
|
Packit Service |
a04d08 |
ff02::1 ipv6-allnodes
|
|
Packit Service |
a04d08 |
ff02::2 ipv6-allrouters
|
|
Packit Service |
a04d08 |
ff02::3 ipv6-allhosts
|
|
Packit Service |
a04d08 |
|