<div dir="ltr">I have another question, is it possible to get the stack name in the hot script?<div>E.g.</div><div><span style="font-size:13px">params:</span><br></div><div><span style="font-size:13px">         $stack_name: {get_global_variable: $<a href="http://stack.name">stack.name</a>}</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 27, 2015 at 3:53 AM, Qiming Teng <span dir="ltr"><<a href="mailto:tengqim@linux.vnet.ibm.com" target="_blank">tengqim@linux.vnet.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Jan 26, 2015 at 07:44:25PM +0200, Dmitry wrote:<br>
> thanks, exactly what I was looking for:<br>
> curl <a href="http://169.254.169.254/1.0/meta-data/instance-id" target="_blank">http://169.254.169.254/1.0/meta-data/instance-id</a><br>
<br>
</span>or, /var/lib/cloud/data/instance-id, if cloud-init is there.<br>
<br>
Regards,<br>
  Qiming<br>
<div class="HOEnZb"><div class="h5"><br>
> On Mon, Jan 26, 2015 at 7:31 PM, Zane Bitter <<a href="mailto:zbitter@redhat.com">zbitter@redhat.com</a>> wrote:<br>
><br>
> > On 25/01/15 10:41, Dmitry wrote:<br>
> ><br>
> >> Hello,<br>
> >> I need to receive instance id as part of the instance installation script.<br>
> >> Something like:<br>
> >> params:<br>
> >>            $current_id: {get_param: $<a href="http://this.id" target="_blank">this.id</a> <<a href="http://this.id" target="_blank">http://this.id</a>>}<br>
> >><br>
> ><br>
> > I have no idea what this is supposed to mean, sorry.<br>
> ><br>
> >  Is it possible?<br>
> >><br>
> ><br>
> > The get_resource function will return the server UUID for a server<br>
> > resource, but you can't use it from within that resource itself (it would<br>
> > be a circular reference).<br>
> ><br>
> > The UUID of a server is provided to the server through the Nova metadata;<br>
> > you should retrieve it from there in your user_data script.<br>
> ><br>
> > cheers,<br>
> > Zane.<br>
> ><br>
> ><br>
> > __________________________________________________________________________<br>
> > OpenStack Development Mailing List (not for usage questions)<br>
> > Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> > <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
> ><br>
<br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div>