[Openstack] Template for wordpress

Chinasubbareddy M chinasubbareddy_m at persistent.co.in
Thu Sep 4 13:15:47 UTC 2014


Hi ,

You can mention default network inside the template itself  or can   pass as a parameter  while creating the stack.
Here is the example ,



As parameter:

heat stack-create  -f  /root/rsoft-intall.yaml --parameters="server_name=r1m5;key_name=test;flavor=m1.small;image=aaf91618-ed6e-48e4-a6cc-e6f74dc6c82d;private_net_id=25993771-5cdf-4e66-84dd-a6c19d932e0d" wp-stack5

Note: you should give network id not name of the network.



Inside template:


private_net_id:
    type: string
    description: ID of private network into which servers get deployed

networks:
        - port: { get_resource: my_instance_port }

  my_instance_port:
    type: OS::Neutron::Port
    properties:
      network_id: { get_param: private_net_id }


regards,
subbareddy
persistent systems ltd.

From: yalla.gnan.kumar at accenture.com [mailto:yalla.gnan.kumar at accenture.com]
Sent: Thursday, September 04, 2014 5:50 PM
To: openstack at lists.openstack.org
Subject: [Openstack] Template for wordpress

Hi All,

I am trying to implement autoscaling using the template attached for multiple neutron networks.
While creating the server in the webservergroup,   it is failing by showing the below error :

------
web_server_group       | c6189de2-d748-44f2-9b60-0d2e708e1d1f | Error: Resource CREATE failed: Error: Resource CREATE failed: BadRequest: Multiple possible networks found
--------


I have attached the template to this mail.   Please check it and  let me know how to specify  a network ID in the websergroup   .


Thanks
Kumar

________________________________

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com<http://www.accenture.com>

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140904/18d5472f/attachment.html>


More information about the Openstack mailing list