Blame templates/hosts.debian.tmpl
|
Packit Service |
a04d08 |
## template:jinja
|
|
Packit Service |
a04d08 |
{#
|
|
Packit Service |
a04d08 |
This file (/etc/cloud/templates/hosts.debian.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.debian.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 value '{{hostname}}' will be replaced with the local-hostname -#}
|
|
Packit Service |
a04d08 |
127.0.1.1 {{fqdn}} {{hostname}}
|
|
Packit Service |
a04d08 |
127.0.0.1 localhost
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
# The following lines are desirable for IPv6 capable hosts
|
|
Packit Service |
a04d08 |
::1 ip6-localhost ip6-loopback
|
|
Packit Service |
a04d08 |
fe00::0 ip6-localnet
|
|
Packit Service |
a04d08 |
ff00::0 ip6-mcastprefix
|
|
Packit Service |
a04d08 |
ff02::1 ip6-allnodes
|
|
Packit Service |
a04d08 |
ff02::2 ip6-allrouters
|
|
Packit Service |
a04d08 |
ff02::3 ip6-allhosts
|
|
Packit Service |
a04d08 |
|