<div dir="ltr">Thank you very much!!!!</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 27, 2015 at 1:06 PM, Angus Salkeld <span dir="ltr"><<a href="mailto:asalkeld@mirantis.com" target="_blank">asalkeld@mirantis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Tue, Jan 27, 2015 at 7:00 PM, Dmitry <span dir="ltr"><<a href="mailto:meytin@gmail.com" target="_blank">meytin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" target="_blank">stack.name</a>}</span></div></div></blockquote><div><br></div></span><div>See: <a href="http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#pseudo-parameters" target="_blank">http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#pseudo-parameters</a><br><br></div><div>Regards<span class="HOEnZb"><font color="#888888"><br>Angus<br></font></span></div><div><div class="h5"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>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><div><br>
> On Mon, Jan 26, 2015 at 7:31 PM, Zane Bitter <<a href="mailto:zbitter@redhat.com" target="_blank">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>
</div></div><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></blockquote></div></div></div><br></div></div>
<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></blockquote></div><br></div>