Hi, I am not sure if this is alrady addressed in the fix, but if you mark distro as "rhel" in /etc/cloud/cloud.cfg:
[...]
system_info:
distro: rhel
[...]
and enable update_etc_hosts module (which is enabled by default), you get:
2013-01-24 16:15:37,362 - cloud.py[WARNING]: No template found at /etc/cloud/templates/hosts.rhel.tmpl for template named hosts.rhel
2013-01-24 16:15:37,362 - util.py[WARNING]: Running update_etc_hosts (<module 'cloudinit.config.cc_update_etc_hosts' from '/usr/lib/python2.6/site-packages/cloudinit/config/cc_update_etc_hosts.pyc'>) failed
as there is no hosts.redhat.tmpl.
When I do
ln -s /etc/cloud/templates/hosts.redhat.tmpl /etc/cloud/templates/hosts.rhel.tmpl
and re-run update_etc_hosts, then it works properly
Hi, I am not sure if this is alrady addressed in the fix, but if you mark distro as "rhel" in /etc/cloud/ cloud.cfg:
[...]
system_info:
distro: rhel
[...]
and enable update_etc_hosts module (which is enabled by default), you get:
2013-01-24 16:15:37,362 - cloud.py[WARNING]: No template found at /etc/cloud/ templates/ hosts.rhel. tmpl for template named hosts.rhel config. cc_update_ etc_hosts' from '/usr/lib/ python2. 6/site- packages/ cloudinit/ config/ cc_update_ etc_hosts. pyc'>) failed
2013-01-24 16:15:37,362 - util.py[WARNING]: Running update_etc_hosts (<module 'cloudinit.
as there is no hosts.redhat.tmpl.
When I do templates/ hosts.redhat. tmpl /etc/cloud/ templates/ hosts.rhel. tmpl
ln -s /etc/cloud/
and re-run update_etc_hosts, then it works properly