/srv/irclogs.ubuntu.com/2014/10/28/#cloud-init.txt

=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
=== harlowja is now known as harlowja_away
=== zz_gondoi is now known as gondoi
=== harlowja_away is now known as harlowja
j12tThere seems to be a update_etc_hosts. How does it work? Can't find a description in the docs... I'd like to add a line to that file.17:37
harlowjaj12t i'm working on some docs of all that stuff, its the start @ https://code.launchpad.net/~harlowja/cloud-init/start-module-docs17:53
harlowjaadditions welcome17:53
j12tMy python is basically non-existent ... do I see this correctly that I cannot actually add an arbitrary line to /etc/hosts via update_etc_hosts?17:58
j12tThe only thing I can do is get a template file filled in, with current hostname and fqdn?17:59
j12tharlowja: my problem is that I don't really understand how it works!18:00
harlowjahmmm18:00
j12tI did write down something that may or may not have any place in the docs: http://indieboxproject.org/blog/2014/10/virtualbox-and-cloud-init/18:01
harlowjaupdate_etc_hosts is python code, so its not likely so easy to just add arbitrary lines to things, unless that python code understands how to honor whatever u want it to write18:01
harlowjahttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/config/cc_update_etc_hosts.py#L29 is the code that is doing this18:02
harlowjaits nothing so special18:02
harlowjatime to learn python ;)18:04
j12tI know!18:06
=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
=== gondoi is now known as zz_gondoi

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!