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

=== praneshp_ is now known as praneshp
=== harlowja is now known as harlowja_away
=== Wulf4 is now known as Wulf
=== zz_gondoi is now known as gondoi
=== harlowja_away is now known as harlowja
jmicklehi all17:40
jmickleif anyone is around i have 2 questions probably config related that i have been racking my brain on 17:40
jmickleif someone could assist it would be greatly appreciated17:40
smoserjmickle, whats up ?17:49
smoserin general, "don't ask to ask, just ask"17:49
smoserif someone sees your question and knows how to reply they will.17:49
jmicklehey smoser first thanks for responding and sure thing i didnt know how it worked in here so i didnt want to be rude 17:49
jmicklesmoser: I am running cloud-init on centos with openstack and when it runs it does not seem to be adding the user to sudo17:49
jmicklealso growpart does not seem to be running although when i run growpart manually after logging in and rebooting it works17:50
smoseron an older kernel to make it all "just work", you'll need a drakut module cloud-initramfs-growroot17:51
smoseron 3.8 and later, cloud-init can do it all on mounted filesystems.17:51
smoseri think though that reboot would probably get you what you needed. 17:51
jmickleinteresting ok17:52
jmicklewhat about sudo ? it seems to be running the add ssh key17:52
jmicklebut not adding the sudo line for the user17:52
jmicklethough i did turn off the disable root login17:52
smosercan you paste cloud-init config ? /etc/cloud/cloud.cfg and anything in /etc/cloud/cloud.cfg.d/*17:52
jmicklethe only thing i changed was disable root: 1 to 017:52
smoserroot login should be disabled by default.17:52
smoseroh. i see.17:53
jmickleyeah i turned it off temporarily because i had a networkign issue at first17:53
jmickleand keys werent getting added17:53
jmickleso i needed to login with the root17:53
jmicklecould that be why?17:53
smosernah. it should still do it.17:53
smoserwhat cloud-init version ?17:54
jmickle0.7.417:54
smoser- RH: require sudo >= 1.7.2p2-3 (with sudoers.d/)17:54
smoserhtats just to verifiy that its not writing the file but sudo not caring17:55
jmickleim sorry i lost you17:55
jmickleyou mean use cloud-init >= 1.7.2?17:55
smosersudo17:55
smoserrpm -qi sudo17:55
jmickleah17:56
jmickle1.8.6p3 17:56
smoserk. that would seem san.e17:56
smoserhttp://paste.ubuntu.com/7634815/17:56
smoserso your config has to have a 'sudo' line for the user17:56
smoser(default_user)17:56
jmicklegot it which the default config from epel does not17:56
jmickleok17:56
smoserand also see the new style17:56
smoserusers:17:56
smoser   - default17:56
smoserrather than17:56
smoseruser: <foo>17:57
jmickleok17:57
jmicklethank you so much17:57
jmickleil try the reboot with the grow part17:58
jmicklemaybe it is running and just needs a reboot to kick in or something17:58
smoserif you run growpart on kernel < 3.817:59
smoseryou have to reboot17:59
jmickleok yeah centos 6.5 is 2.617:59
jmicklety so much17:59
smoserthe fix is to add that dracut module17:59
smoserand then it resizes in the initramfs18:00
smoserwhen the filesystem is not mounted18:00
jmickleok do you have an example of that or documentation for it by chance?18:00
smoser(older kernels will not allow updates to partition tables of "physical disks" that have filesystems mounted on them)18:00
jmickleor is it in that config?18:00
jmickleok18:01
smoserhttp://docs.openstack.org/image-guide/content/ch_openstack_images.html18:01
smoserhttps://apps.fedoraproject.org/packages/cloud-initramfs-tools/changelog18:02
jmicklety18:04
=== praneshp_ is now known as praneshp
jmickleis there a way to pass the hostname into the node-name variable in cloud init config for chef?21:19
=== praneshp_ is now known as praneshp
=== gondoi is now known as zz_gondoi
=== praneshp_ is now known as praneshp

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