rhysi’ve spent a day trying to get this to work, but can anyone tell me why the resolv-conf module does not work on centos 7 in AWS ?18:12
rhysi’ve notice that systemd is configured to execute init, config, and final all separately. i use the init chunk to install the newest version of cloud-init, and to add the “resolv-conf” module to cloud_config_modules. i then pass it user-data that includes manage-resolv-conf: true, exactly from the examples. all other directives i pass in user-data execute successfully.18:14
rhysi turn off the auto-updating of /etc/resolv.conf in /etc/sysconfig/network-scripts/ifcfg-eth0, so that dhclient doesn’t override it. but no matter what i do resolv.conf remains untouches.18:15
rhysoh. is this not the same cloud-init thats version cloud-init-0.7.6-2.el7 ? openstack and canonical have different cloud-inits? :(18:16
smatzekrhys:  I believe the samples are wrong here.  It needs to be manage_resolv_conf note the underscore character.18:33
rhyssmatzek: also the module is named ‘resolv-conf’ with a dash yes?18:34
smatzekfor module names in cloud.cfg they can be either dash or underscore, they get normalized in the code, but for directives that the individual modules look for in userdata, they need to match what the code is looking for.18:35
smatzekin this case the code is looking for 'manage_resolv_conf'.   http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/config/cc_resolv_conf.py#L9718:37
rhyssmatzek: welp there was a day of my life gone18:38
rhysthank you so much18:38
smatzekOdd_Bloke:  are you there?18:41
smatzekrhys:  I've opened this bug to try and address the change in the documentation:  https://bugs.launchpad.net/cloud-init/+bug/153158218:55
rhysthanks. i really appreciate it. i should have noticed the disparity18:55
rhysbecause i was using manage_etc_hosts too18:55
smatzekthe resolv.conf one and the lock_passwd one have sucked many hours of my time and others time in the past.18:55
rhyssmatzek, the interesting thing is that while its now working, its writing the resolv.conf template raw18:56
rhysits not evaluating the template18:56
rhysactually thats now true of all modules.18:57
rhyslike etc/hosts now has {{fqdn}} {{hostname}}18:57
rhysin the logs. Jan  6 18:54:48 localhost cloud-init: 2016-01-06 18:54:48,271 - templater.py[WARNING]: Jinja not available as the selected renderer for desired template, reverting to the basic renderer.18:58
rhyspackage build problem. found the bug19:01
=== jgrimm is now known as jgrimm-afk
harlowjasmoser did u guys meetup in england yet?23:14
=== jgrimm-afk is now known as jgrimm

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