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