/srv/irclogs.ubuntu.com/2014/06/02/#cloud-init.txt

=== harlowja_ is now known as harlowja_away
=== zz_gondoi is now known as gondoi
=== harlowja_away is now known as harlowja_
=== gondoi is now known as zz_gondoi
=== zz_gondoi is now known as gondoi
smoserharlowja_, https://bugs.launchpad.net/cloud-init/+bug/1315501 is fun.20:36
harlowja_damn, u guys changed to interfaces.d20:36
harlowja_didn't know that existed (interfaces.d)20:38
smoseryeah, its nice. but not so nice. all at the same time.20:38
harlowja_:)20:39
harlowja_smoser so that shouldn't be to hard to fix though, depending how u want to do this20:41
smoserso i think the right thinkg to do is:20:41
smoser * read all interfaces.d files  (in order expected).20:42
harlowja_did the format for those files change?20:42
smoser * identify each interface and the file it was originally found in20:42
smoser * update the file that it was found in. 20:42
smoseralternatively, we could put a cloud-init file down that just was last in the order (and truped the others)20:42
smoserthe format didn't really change, the cloud iamge build process jsut started taking advantate fo the fact that /etc/network/interefaces can now do "#include interfaces.d" or whatever hte syntax is thre.20:43
harlowja_ah20:43
harlowja_u can probably then use my handy-dandy parser i suppose20:44
harlowja_http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/distros/net_util.py20:44
harlowja_and then scan all files, identify ones that u want to write, and as u said rewrite ones that match20:45
harlowja_*and leave the old way of doing this for pre-trusty?20:45
smoserwell, ideally, the new way would still work.20:49
smoserright?20:49
smoserbecause /etc/network/interfaces would not contain the 'source-directory interfaces.d'20:50
smoseror if it did, we'd still order the stuff all correctly and know where to replace.20:50
smoseri really dont know the best way to do it. between "update-the-right-stanza" (if there is even 1 stanza, they may be additive). and "write a 99_cloud-init" config file that just trumps at the end.20:51
harlowja_ya, damn them for making this so complex :-P20:57
=== gondoi is now known as zz_gondoi

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