[Openstack] ["Potential Spoofed"] Re: ["Potential Spoofed"] Re: heat: Using IP address of one VM with-in another VM
ashish.jain14 at wipro.com
ashish.jain14 at wipro.com
Thu May 7 11:10:11 UTC 2015
Does the images need to have cloud-init pre-installed for user_data section to work?
________________________________________
From: ashish.jain14 at wipro.com <ashish.jain14 at wipro.com>
Sent: Thursday, May 07, 2015 1:21 PM
To: chris.friesen at windriver.com; openstack at lists.openstack.org
Subject: ["Potential Spoofed"] Re: [Openstack] ["Potential Spoofed"] Re: heat: Using IP address of one VM with-in another VM
Just to add another point I am using docker container here as the image. Can that be a issue.
________________________________________
From: Ashish Jain (WT01 - BAS)
Sent: Thursday, May 07, 2015 12:56 PM
To: chris.friesen at windriver.com; openstack at lists.openstack.org
Subject: Re: ["Potential Spoofed"] Re: [Openstack] heat: Using IP address of one VM with-in another VM
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: ashish.jain14 at wipro.com <ashish.jain14 at wipro.com>
Sent: Wednesday, May 06, 2015 9:12 PM
To: chris.friesen at windriver.com; openstack at lists.openstack.org
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 <chris.friesen at windriver.com>
Sent: Wednesday, May 06, 2015 7:16 PM
To: openstack at lists.openstack.org
Subject: Re: [Openstack] heat: Using IP address of one VM with-in another VM
On 05/06/2015 06:20 AM, ashish.jain14 at wipro.com 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 : openstack at lists.openstack.org
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 : openstack at lists.openstack.org
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 : openstack at lists.openstack.org
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
More information about the Openstack
mailing list