1## template:jinja
2{#
3This file /etc/cloud/templates/hosts.redhat.tmpl is only utilized
4if enabled in cloud-config.  Specifically, in order to enable it
5you need to add the following to config:
6  manage_etc_hosts: True
7-#}
8# Your system has configured 'manage_etc_hosts' as True.
9# As a result, if you wish for changes to this file to persist
10# then you will need to either
11# a.) make changes to the master file in /etc/cloud/templates/hosts.redhat.tmpl
12# b.) change or remove the value of 'manage_etc_hosts' in
13#     /etc/cloud/cloud.cfg or cloud-config from user-data
14#
15# The following lines are desirable for IPv4 capable hosts
16127.0.0.1 {{fqdn}} {{hostname}}
17127.0.0.1 localhost.localdomain localhost
18127.0.0.1 localhost4.localdomain4 localhost4
19
20# The following lines are desirable for IPv6 capable hosts
21::1 {{fqdn}} {{hostname}}
22::1 localhost.localdomain localhost
23::1 localhost6.localdomain6 localhost6
24
25