/srv/irclogs.ubuntu.com/2017/08/23/#cloud-init.txt

sdeI need to override the search domain set through DHCP, but of course resolv.conf is generated by NetworkManager from /etc/sysconfig/network-scripts/ifcfg-eth0, which in turn is generated by cloud-init. Been digging, but can't get cloud-init to alter ifcfg-eth0.14:41
sdeThis on a Redhat image in AWS14:41
rharperI don't think the RedHat AWS image has cloud-init new enough to generate networking config; it's likely the ifcfg-eth0 is baked into the image as-is (dhcp on eth0 was a common default in cloud-images).    It may be possible to have a dhcp hook script which can append/prepend DNS settings14:47
sdeThe image I'm working on is using cloud-init 0.7.9, which seems to tie with the docs I was looking at that suggested this was possible, and at the top of the ifcfg-eth0 it states it was generated by cloud-init.14:49
sdeI've tried putting in cloud.cfg -14:50
sdemanage_resolv_conf: true  resolv_conf:   searchdomains:     - vpc01.grn.poc.tbaws.com   domain: vpc01.grn.poc.tbaws.com14:50
sde(mangled format in cut-n-paste, sorry)14:50
rharperAh, 0.7.9 is new enough14:50
rharperit maybe that the fallback network configuration doesn't look at those cloud-configs;  would you be able to file a bug against cloud-init on launchpad with details? https://bugs.launchpad.net/cloud-init/+filebug14:52
sdeSure, I can do that. Have I got the settings in the right location and format through? I've never looked at cloud-init before today, and I got confused reading the docs about exactly where I should be putting things14:54
rharpersde: w.r.t format, not quite sure since your paste didn't have newlines.  but I suspect you want it to look something like: http://paste.ubuntu.com/25376871/14:58
sdeYes, that's exactly what I've got. Directly in cloud.cfg is the correct/acceptable location for that, rather than as a separate file under cloud.cfg.d/ ?15:00
sdeNeed to step away, but thanks for your assist, appreciate the time. I'll get that bug raised later. Thanks15:11
smoserrharper, wrt "what image for development release on ec2"15:11
smoser http://paste.ubuntu.com/25376930/15:11
rharperah, search by ami number15:14
smoserimage status is https://github.com/smoser/talk-simplestreams/blob/master/bin/image-status16:03
smoserrharper, blackboxsw fyi, the instance-data roadmap entry16:45
smoser https://trello.com/c/AYaCdQyT16:45
rharperk16:48
blackboxswrharper: /smoser trial run  ipv6 from AWS metadata :) https://us-east-2.console.aws.amazon.com/ec2/v2/home?region=us-east-2#Instances:sort=desc:statusChecks19:54
blackboxswoops19:54
blackboxswhttp://paste.ubuntu.com/25378444/19:54
blackboxswlooks like generating the network V1 worked19:55
blackboxswI'm throwing together some unit test coverage19:55
blackboxswehem, I mean I'm all TDD and must already have the unit tests around some place19:55

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