/srv/irclogs.ubuntu.com/2015/03/01/#cloud-init.txt

=== zz_gondoi is now known as gondoi
FaizalCan we run just one module for ex:- users-group module when we run the cloud init manually?16:48
FaizalWhen we run "cloudinit init"  it will execute all the modules... Right...?16:50
FaizalWhat if I want to run just users-group module16:50
FaizalPls help16:53
izalmulAnyone here17:09
harmwalways nice when ppl drop questions and leave...18:07
kwadronautdidn't we have irc logs somewhere? 18:08
kwadronautno need to stick around, just grab the rss of the public logs ;-)18:09
andreystHi all, cloud-init doesn't seem to execute user-data for some reason20:56
andreystI see that it reads it and puts in userdata.txt20:56
andreystBut I see no script output (it writes to /tmp/test.log), when I manually execute bash user-data.txt it works ok20:56
andreystWhat could be the reason?20:56
andreystDo I have to explicitly specify the need to execute user data in config somehow?20:57
larsksandreyst: what does your user-data look like?21:10
andreystjust a simple bash script21:10
andreyst@larsks #!/bin/bash then some echos21:10
larsksHmm.  And looking in /var/log/cloud-init.log (or cloud-init-output.log) are there any errors (or any indication that it executed)?21:11
andreystlarsks: I see its contents in /var/lib/cloud/instance, in user-data.txt and scripts/part-00121:11
andreystlarsks: I see it is getting read, I see no errors and no indication that it was executed whatsoever21:11
andreystalso I see on the internet some reference to /etc/init.d/cloud-init-user-scripts, I don't have this file for some reason21:12
larsksAnyway, to answer one of your earlier questions, you shouldn't need to perform any explicit configuration to get it to execute.21:12
andreystlarsks: yeah, that's how it worked for me earlier21:12
andreystthought something might have changed since then21:12
larsksWhat distribution are you booting?21:12
andreystubuntu@ip-10-222-222-127:/var/lib/cloud/instance$ uname -a21:12
andreystLinux ip-10-222-222-127 3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux21:12
andreystit is AWS provided ubuntu server ami21:13
larsksDo you have the AMI ID handy?  I can try booting it myself and see what happens.21:15
andreystyeah, sec21:15
andreystami-234ecc5421:16
andreystit's in eu-west-121:16
larsksOkay. Let me see about getting that booted...21:16
andreystthis is my userdata: http://pastie.org/999218021:17
andreystoh man, this dumb version actually works. Guess it is something in the script after all! 21:18
larsksYay!21:18
andreystThanks a ton for your help, man!21:18
larsksEh, I did nothin'.  Glad it's working, though.21:19
andreystyou listened21:19
andreystyou know that's almost always a solution :)21:19
larsksYup! :)21:19

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