mirror_lxc/hooks
Scott Moser cb0c6c0203 hooks/ubuntu-cloud-prep: add hostname to meta-data
prior to my enabling of the clone hook, the setting of the hostname
was being done by writing to /etc/hostname.  Instead of relying on that
we're now writing 'local-hostname' into the metadata for the instance.

cloud-init then reads this and sets the hostname properly.

We are also writing /etc/hostname with the new hostname explicitly.  This is
useful/necessary because on network bringup of eth0, dhclient will submit its
hosname.  The updating done by cloud-init occurs to late, and thus
the dhcp request goes out with the un-configured hostname and dns doens't
work correctly.

Signed-off-by: Scott Moser <smoser@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
2013-08-22 15:29:06 -05:00
..
clonehostname add clonehostname hook 2013-07-10 14:08:43 -05:00
Makefile.am hooks/Makefile.am: add ubuntu-cloud-prep 2013-08-14 09:57:12 -05:00
mountcgroups mountcgroups: use the right configuration file! 2013-08-13 00:06:32 -05:00
mountecryptfsroot Add example hooks from Ubuntu package 2013-02-19 23:34:07 -05:00
ubuntu-cloud-prep hooks/ubuntu-cloud-prep: add hostname to meta-data 2013-08-22 15:29:06 -05:00