From 6dddf16cb8dea2e1a96b3d613b81087df247fd3d Mon Sep 17 00:00:00 2001 From: Chuck Short Date: Mon, 6 Apr 2009 23:04:48 +0100 Subject: * ec2-set-hostname.py: - Use template for /etc/hosts creation. - Dont use public_hostname in /etc/hosts. (LP: #352745) * debian/control: - Add python-cheetah as a depends. * templates/sources.list.tmpl: - Update template. * debian/init: - Run the ec2-user-data script last so that the users get a stable system before running the user scripts. --- templates/hosts.tmpl | 10 ++++++++++ templates/sources.list.tmpl | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 templates/hosts.tmpl (limited to 'templates') diff --git a/templates/hosts.tmpl b/templates/hosts.tmpl new file mode 100644 index 00000000..642e7a7e --- /dev/null +++ b/templates/hosts.tmpl @@ -0,0 +1,10 @@ +127.0.0.1 localhost +127.0.1.1 $hostname + +# The following lines are desirable for IPv6 capable hosts +::1 ip6-localhost ip6-loopback +fe00::0 ip6-localnet +ff00::0 ip6-mcastprefix +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +ff02::3 ip6-allhosts diff --git a/templates/sources.list.tmpl b/templates/sources.list.tmpl index bd999dda..59dfa959 100644 --- a/templates/sources.list.tmpl +++ b/templates/sources.list.tmpl @@ -1,4 +1,6 @@ deb $mirror $codename main universe +deb-src $mirror $codename main universe deb $mirror $codename-updates main universe +deb-src $mirror $codename-updates main universe deb http://security.ubuntu.com/ubuntu $codename-security main restricted deb-src http://security.ubuntu.com/ubuntu $codename-security main restricted -- cgit v1.2.3