~smoser/cloud-init/lp-1077700

« back to all changes in this revision

Viewing changes to templates/hosts.ubuntu.tmpl

  • Committer: Scott Moser
  • Author(s): Joshua Harlow
  • Date: 2012-07-09 20:41:45 UTC
  • Revision ID: smoser@ubuntu.com-20120709204145-56utzctrbvy22u5u
Revert back to using cheetah + adjust resultant code + templates

At this point there is a mixture of "double hash" cheetah comments and '#*'
cheetah comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{{# This file /etc/cloud/templates/hosts.tmpl is only utilized
2
 
    if enabled in cloud-config.  Specifically, in order to enable it
3
 
    you need to add the following to config:
4
 
      manage_etc_hosts: True}}
 
1
## This file (/etc/cloud/templates/hosts.tmpl) is only utilized
 
2
## if enabled in cloud-config.  Specifically, in order to enable it
 
3
## you need to add the following to config:
 
4
##    manage_etc_hosts: True
 
5
##
 
6
## Note, double-hash commented lines will not appear in /etc/hosts
5
7
6
8
# Your system has configured 'manage_etc_hosts' as True.
7
9
# As a result, if you wish for changes to this file to persist
10
12
# b.) change or remove the value of 'manage_etc_hosts' in
11
13
#     /etc/cloud/cloud.cfg or cloud-config from user-data
12
14
13
 
# The following lines are desirable for IPv4 capable hosts
14
 
127.0.1.1 {{fqdn}} {{hostname}}
 
15
## The value '$hostname' will be replaced with the local-hostname
 
16
127.0.1.1 $fqdn $hostname
15
17
127.0.0.1 localhost
16
18
 
17
19
# The following lines are desirable for IPv6 capable hosts
21
23
ff02::1 ip6-allnodes
22
24
ff02::2 ip6-allrouters
23
25
ff02::3 ip6-allhosts
24