=== Wulf4 is now known as Wulf [08:31] Wulf: cloud-init does fetch and use EC2 metadata; what specifically are you looking to do? [09:13] Odd_Bloke: how can I access this metadata from a userscript (x-shellscript mime part)? [09:14] Odd_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:15] Wulf: 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] Odd_Bloke: well, it's not available there [09:15] Wulf: I don't think cloud-init provides any particular way of doing this, though. [09:17] Wulf: That's the only place cloud-init fetches EC2 metadata from, so you may out of luck in that case. :( [09:17] Odd_Bloke: no, I mean it's not available from /var/lib/cloud [09:17] But I remember having seen it there. Some time ago. [09:17] Wulf: Oh, OK; in that case, you'll need to query the metadata server yourself. :) [09:20] Odd_Bloke: I could do that. But I don't want to reinvent the wheel [09:22] Wulf: If it isn't in /var/lib/cloud/ you aren't reinventing the wheel. :) [09:23] Odd_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] The wheel exists, it's right in front of me. But somehow I can't get it to spin [09:25] Wulf: You could try using the Python functions in http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/ec2_utils.py [09:25] Wulf: But I don't know that that's considered a public interface, so don't necessarily expect it to be stable. [09:27] To 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. ;) [10:01] this metaphor went too far [10:02] s/extend/over-extend/ [10:08] Odd_Bloke: I'm wondering where the car came from. Not every wheel is attached to a car. === rangerpbzzzz is now known as rangerpb === gfidente is now known as gfidente|afk [19:58] smoser: sorry for super late update (was on PTO for ~2 weeks), latest cloud-init works fine for me. Thanks! === Guest20454 is now known as mgagne [19:58] smoser: that was me ^ [20:01] no PTO allowed [20:01] lol [20:03] mgagne, horay! [20:03] tyvm all for your work! much appreciated [20:03] and that should be soon in xenial [20:04] (its in -proposed) [21:15] i have a cloud-config file. is there a way to get cloudinit to stop everything if a command fails? [21:17] (as in not run the rest of the commands - something like sh's set -e [21:17] ) [21:24] raylu not afaik [21:33] :( === rangerpb is now known as rangerpbzzzz