Hello,
Somehow I see that user data section is not working for me. Rest all works fine
Here is a simple template.
heat_template_version: 2013-05-23
description: A simple server.
resources:
server:
type: OS::Nova::Server
properties:
flavor: m1.tiny
networks:
- network: demo-net
key_name: demo-key-new
image: httpd
user_data:
#!/bin/bash
mkdir -p /opt/test
touch /usr/bin/test/1.txt
echo "hello" >> /usr/bin/test/1.txt
outputs:
HttpIP:
description: IP of HTTP server
value:
str_replace:
template: http://host
params:
host: { get_attr: [server, first_address] }
Regards
Ashish
________________________________________
From: [email protected] <[email protected]>
Sent: Wednesday, May 06, 2015 9:12 PM
To: [email protected]; [email protected]
Subject: ["Potential Spoofed"] Re: [Openstack] heat: Using IP address of one VM
with-in another VM
Thanks a lot Chris. That is helpful.
Regards
Ashish
________________________________________
From: Chris Friesen <[email protected]>
Sent: Wednesday, May 06, 2015 7:16 PM
To: [email protected]
Subject: Re: [Openstack] heat: Using IP address of one VM with-in another VM
On 05/06/2015 06:20 AM, [email protected] wrote:
> Hi,
>
>
> Is it possible to somehow pass IP of a VM to another VM during heat
> deployment.
> For example IP of a DB server in a VM to a client in another VM.
Yes. As an example take a look at
"https://github.com/openstack/heat-templates/blob/master/hot/F20/WordPress_2_Instances.yaml".
The "WebServer" is configured with the IP address of the "DatabaseServer":
db_ipaddr: { get_attr: [DatabaseServer, networks, private, 0] }
Chris
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not the
intended recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this message and
any attachments. WARNING: Computer viruses can be transmitted via email. The
recipient should check this email and any attachments for the presence of
viruses. The company accepts no liability for any damage caused by any virus
transmitted by this email. www.wipro.com
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not the
intended recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this message and
any attachments. WARNING: Computer viruses can be transmitted via email. The
recipient should check this email and any attachments for the presence of
viruses. The company accepts no liability for any damage caused by any virus
transmitted by this email. www.wipro.com
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack