=== zz_gondoi is now known as gondoi | ||
Faizal | Can we run just one module for ex:- users-group module when we run the cloud init manually? | 16:48 |
---|---|---|
Faizal | When we run "cloudinit init" it will execute all the modules... Right...? | 16:50 |
Faizal | What if I want to run just users-group module | 16:50 |
Faizal | Pls help | 16:53 |
izalmul | Anyone here | 17:09 |
harmw | always nice when ppl drop questions and leave... | 18:07 |
kwadronaut | didn't we have irc logs somewhere? | 18:08 |
kwadronaut | no need to stick around, just grab the rss of the public logs ;-) | 18:09 |
andreyst | Hi all, cloud-init doesn't seem to execute user-data for some reason | 20:56 |
andreyst | I see that it reads it and puts in userdata.txt | 20:56 |
andreyst | But I see no script output (it writes to /tmp/test.log), when I manually execute bash user-data.txt it works ok | 20:56 |
andreyst | What could be the reason? | 20:56 |
andreyst | Do I have to explicitly specify the need to execute user data in config somehow? | 20:57 |
larsks | andreyst: what does your user-data look like? | 21:10 |
andreyst | just a simple bash script | 21:10 |
andreyst | @larsks #!/bin/bash then some echos | 21:10 |
larsks | Hmm. 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 |
andreyst | larsks: I see its contents in /var/lib/cloud/instance, in user-data.txt and scripts/part-001 | 21:11 |
andreyst | larsks: I see it is getting read, I see no errors and no indication that it was executed whatsoever | 21:11 |
andreyst | also I see on the internet some reference to /etc/init.d/cloud-init-user-scripts, I don't have this file for some reason | 21:12 |
larsks | Anyway, to answer one of your earlier questions, you shouldn't need to perform any explicit configuration to get it to execute. | 21:12 |
andreyst | larsks: yeah, that's how it worked for me earlier | 21:12 |
andreyst | thought something might have changed since then | 21:12 |
larsks | What distribution are you booting? | 21:12 |
andreyst | ubuntu@ip-10-222-222-127:/var/lib/cloud/instance$ uname -a | 21:12 |
andreyst | Linux 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/Linux | 21:12 |
andreyst | it is AWS provided ubuntu server ami | 21:13 |
larsks | Do you have the AMI ID handy? I can try booting it myself and see what happens. | 21:15 |
andreyst | yeah, sec | 21:15 |
andreyst | ami-234ecc54 | 21:16 |
andreyst | it's in eu-west-1 | 21:16 |
larsks | Okay. Let me see about getting that booted... | 21:16 |
andreyst | this is my userdata: http://pastie.org/9992180 | 21:17 |
andreyst | oh man, this dumb version actually works. Guess it is something in the script after all! | 21:18 |
larsks | Yay! | 21:18 |
andreyst | Thanks a ton for your help, man! | 21:18 |
larsks | Eh, I did nothin'. Glad it's working, though. | 21:19 |
andreyst | you listened | 21:19 |
andreyst | you know that's almost always a solution :) | 21:19 |
larsks | Yup! :) | 21:19 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!