=== Wulf4 is now known as Wulf | ||
Odd_Bloke | Wulf: cloud-init does fetch and use EC2 metadata; what specifically are you looking to do? | 08:31 |
---|---|---|
Wulf | Odd_Bloke: how can I access this metadata from a userscript (x-shellscript mime part)? | 09:13 |
Wulf | 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:14 |
Odd_Bloke | 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 |
Wulf | Odd_Bloke: well, it's not available there | 09:15 |
Odd_Bloke | Wulf: I don't think cloud-init provides any particular way of doing this, though. | 09:15 |
Odd_Bloke | Wulf: That's the only place cloud-init fetches EC2 metadata from, so you may out of luck in that case. :( | 09:17 |
Wulf | Odd_Bloke: no, I mean it's not available from /var/lib/cloud | 09:17 |
Wulf | But I remember having seen it there. Some time ago. | 09:17 |
Odd_Bloke | Wulf: Oh, OK; in that case, you'll need to query the metadata server yourself. :) | 09:17 |
Wulf | Odd_Bloke: I could do that. But I don't want to reinvent the wheel | 09:20 |
Odd_Bloke | Wulf: If it isn't in /var/lib/cloud/ you aren't reinventing the wheel. :) | 09:22 |
Wulf | 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 |
Wulf | The wheel exists, it's right in front of me. But somehow I can't get it to spin | 09:23 |
Odd_Bloke | 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 |
Odd_Bloke | Wulf: But I don't know that that's considered a public interface, so don't necessarily expect it to be stable. | 09:25 |
Odd_Bloke | 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. ;) | 09:27 |
sfriesel | this metaphor went too far | 10:01 |
Odd_Bloke | s/extend/over-extend/ | 10:02 |
Wulf | Odd_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 | ||
Guest20454 | smoser: 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 | ||
mgagne | smoser: that was me ^ | 19:58 |
harlowja | no PTO allowed | 20:01 |
harlowja | lol | 20:01 |
smoser | mgagne, horay! | 20:03 |
mgagne | tyvm all for your work! much appreciated | 20:03 |
smoser | and that should be soon in xenial | 20:03 |
smoser | (its in -proposed) | 20:04 |
raylu | i 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 -e | 21:17 |
raylu | ) | 21:17 |
harlowja | raylu not afaik | 21: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!