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

=== rangerpbzzzz is now known as rangerpb
impaquehey guys, quick question: how can i use the variables provided by the (cloudstack) metadata, such as local-hostname, in my scripts?14:11
impaquedoes cloud-init expose them somehow somewhere?14:11
larsksIt does not, currently (wish it did!).  You can talk to the metadata service yourself using a simple HTTP api.14:12
larsksThere is a 'cloud-init query' command, but it appears to be unimplemented at this time.14:12
impaquelarsks: thanks!14:14
impaquealthough, i believe they *are* exposed in cloud-config scripts14:14
impaquefrom some coreOS page:14:15
impaque#cloud-config  coreos:   fleet:       public-ip: $public_ipv4       metadata: region=us-west14:15
impaque(merged to one line, but you get the idea)14:15
impaquehmmmm14:15
larsksNote that coreos has their own version of cloud-init.14:16
impaqueah :/14:16
smoserlarsks, yeah, we need cloud-init query14:32
smoserso... impaque we will fix that for you in 2.0... its in the plans.14:32
smosercloud-inti will expose (via json or versioned python module/access) objects to get you that stuff.14:32
impaquesmoser: so basically, the only way to get that meta-data is by writing a module, if i get that correclty, via cloudinit.util?14:36
=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious
=== zz_natorious is now known as natorious
weasealdoes anyone know if it is possible to detect AWS resources such as RDS, ELB, etc by only feeding in a VPC ID?16:24
weasealusing cloud-init16:24
smoser"detect" ?17:40
=== natorious is now known as zz_natorious
=== zz_natorious is now known as natorious
=== rangerpb is now known as rangerpbzzzz

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