[Openstack] OpenStack RC file from within heat

Pavlo Shchelokovskyy pshchelokovskyy at mirantis.com
Fri Feb 19 11:34:27 UTC 2016


Davio,

yes, you could do that, but for local files only from CLI, not Horizon. You
could use a "str_replace" and "get_file" functions.

As an example, here
https://github.com/pshchelo/stackdev/blob/master/templates/autoscaling/asg.yaml#L33-L45
I am dropping a local file through the Nova's user data to the VM.

Though I must stress that passing real user cloud credentials inside VM is
a security risk, VMs by default should be better considered as vulnerable.

Best regards,

On Fri, Feb 19, 2016 at 1:08 PM Davíð Örn Jóhannsson <davidoj at siminn.is>
wrote:

> ​Is it possible to gain access to OpenStack RC file from within a heat
> template, in order to place it on a host during cloud init?
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
-- 
Dr. Pavlo Shchelokovskyy
Senior Software Engineer
Mirantis Inc
www.mirantis.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160219/3a902161/attachment.html>


More information about the Openstack mailing list