/srv/irclogs.ubuntu.com/2016/06/29/#cloud-init.txt

=== Wulf4 is now known as Wulf
Odd_BlokeWulf: cloud-init does fetch and use EC2 metadata; what specifically are you looking to do?08:31
WulfOdd_Bloke: how can I access this metadata from a userscript (x-shellscript mime part)?09:13
WulfOdd_Bloke: what I'm looking for is information about the hard drives. I need to get a list of all instance store drives and temp ebs drives attached on launch.  Other ebs drives must be excluded.09:14
Odd_BlokeWulf: You could poke around in /var/lib/cloud to see if it's available to you there; if not, then you can always query the metadata server yourself.09:15
WulfOdd_Bloke: well, it's not available there09:15
Odd_BlokeWulf: I don't think cloud-init provides any particular way of doing this, though.09:15
Odd_BlokeWulf: That's the only place cloud-init fetches EC2 metadata from, so you may out of luck in that case. :(09:17
WulfOdd_Bloke: no, I mean it's not available from /var/lib/cloud09:17
WulfBut I remember having seen it there. Some time ago.09:17
Odd_BlokeWulf: Oh, OK; in that case, you'll need to query the metadata server yourself. :)09:17
WulfOdd_Bloke: I could do that. But I don't want to reinvent the wheel09:20
Odd_BlokeWulf: If it isn't in /var/lib/cloud/ you aren't reinventing the wheel. :)09:22
WulfOdd_Bloke: but I know that cloud-init has some code for reading the meta data. Just want to know how to use it.09:23
WulfThe wheel exists, it's right in front of me. But somehow I can't get it to spin09:23
Odd_BlokeWulf: You could try using the Python functions in http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/ec2_utils.py09:25
Odd_BlokeWulf: But I don't know that that's considered a public interface, so don't necessarily expect it to be stable.09:25
Odd_BlokeTo extend your analogy, you can try using that wheel, but don't be surprised if the car it's attached to drives off and runs your fingers over. ;)09:27
sfrieselthis metaphor went too far10:01
Odd_Blokes/extend/over-extend/10:02
WulfOdd_Bloke: I'm wondering where the car came from. Not every wheel is attached to a car.10:08
=== rangerpbzzzz is now known as rangerpb
=== gfidente is now known as gfidente|afk
Guest20454smoser: sorry for super late update (was on PTO for ~2 weeks), latest cloud-init works fine for me. Thanks!19:58
=== Guest20454 is now known as mgagne
mgagnesmoser: that was me ^19:58
harlowjano PTO allowed20:01
harlowjalol20:01
smosermgagne, horay!20:03
mgagnetyvm all for your work! much appreciated20:03
smoserand that should be soon in xenial20:03
smoser(its in -proposed)20:04
raylui have a cloud-config file. is there a way to get cloudinit to stop everything if a command fails?21:15
raylu(as in not run the rest of the commands - something like sh's set -e21:17
raylu)21:17
harlowjaraylu not afaik21:24
raylu:(21:33
=== rangerpb is now known as rangerpbzzzz

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