[openstack-dev] [heat][hot]

Dmitry meytin at gmail.com
Tue Jan 27 09:00:34 UTC 2015


I have another question, is it possible to get the stack name in the hot
script?
E.g.
params:
         $stack_name: {get_global_variable: $stack.name}

On Tue, Jan 27, 2015 at 3:53 AM, Qiming Teng <tengqim at linux.vnet.ibm.com>
wrote:

> On Mon, Jan 26, 2015 at 07:44:25PM +0200, Dmitry wrote:
> > thanks, exactly what I was looking for:
> > curl http://169.254.169.254/1.0/meta-data/instance-id
>
> or, /var/lib/cloud/data/instance-id, if cloud-init is there.
>
> Regards,
>   Qiming
>
> > On Mon, Jan 26, 2015 at 7:31 PM, Zane Bitter <zbitter at redhat.com> wrote:
> >
> > > On 25/01/15 10:41, Dmitry wrote:
> > >
> > >> Hello,
> > >> I need to receive instance id as part of the instance installation
> script.
> > >> Something like:
> > >> params:
> > >>            $current_id: {get_param: $this.id <http://this.id>}
> > >>
> > >
> > > I have no idea what this is supposed to mean, sorry.
> > >
> > >  Is it possible?
> > >>
> > >
> > > The get_resource function will return the server UUID for a server
> > > resource, but you can't use it from within that resource itself (it
> would
> > > be a circular reference).
> > >
> > > The UUID of a server is provided to the server through the Nova
> metadata;
> > > you should retrieve it from there in your user_data script.
> > >
> > > cheers,
> > > Zane.
> > >
> > >
> > >
> __________________________________________________________________________
> > > OpenStack Development Mailing List (not for usage questions)
> > > Unsubscribe:
> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> > >
>
> >
> __________________________________________________________________________
> > OpenStack Development Mailing List (not for usage questions)
> > Unsubscribe:
> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150127/8e5bb848/attachment.html>


More information about the OpenStack-dev mailing list