diff options
author | Robert Schweikert <rjschwei@suse.com> | 2017-11-08 15:45:53 -0500 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-11-10 17:05:39 -0500 |
commit | 22a14a6a6d45ae55d2c2307d7b097eef9863bb0c (patch) | |
tree | 5e8922298f5477b4d8f5cd90c78d3c5b1bd954ec /cloudinit/config | |
parent | 9bc4ce0596544ffa56d9d67245b00e07006a8662 (diff) | |
download | vyos-cloud-init-22a14a6a6d45ae55d2c2307d7b097eef9863bb0c.tar.gz vyos-cloud-init-22a14a6a6d45ae55d2c2307d7b097eef9863bb0c.zip |
hosts: Fix openSUSE and SLES setup for /etc/hosts and clarify docs.
The etc/hosts file is was not properly setup for openSUSE or SLES
when manage_etc_hosts is set in the config file.
Improve the doc to address the fact that the 'localhost' ip is
distribution dependent (not always 127.0.0.1).
LP: #1731022
Diffstat (limited to 'cloudinit/config')
-rw-r--r-- | cloudinit/config/cc_update_etc_hosts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/config/cc_update_etc_hosts.py b/cloudinit/config/cc_update_etc_hosts.py index b3947849..c96eede1 100644 --- a/cloudinit/config/cc_update_etc_hosts.py +++ b/cloudinit/config/cc_update_etc_hosts.py @@ -23,8 +23,8 @@ using the template located in ``/etc/cloud/templates/hosts.tmpl``. In the If ``manage_etc_hosts`` is set to ``localhost``, then cloud-init will not rewrite ``/etc/hosts`` entirely, but rather will ensure that a entry for the -fqdn with ip ``127.0.1.1`` is present in ``/etc/hosts`` (i.e. -``ping <hostname>`` will ping ``127.0.1.1``). +fqdn with a distribution dependent ip is present in ``/etc/hosts`` (i.e. +``ping <hostname>`` will ping ``127.0.0.1`` or ``127.0.1.1`` or other ip). .. note:: if ``manage_etc_hosts`` is set ``true`` or ``template``, the contents |