<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 9, 2015 at 10:41 PM, Paul Seymour <span dir="ltr"><<a href="mailto:Paul.Seymour@ig.com" target="_blank">Paul.Seymour@ig.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello,<br>
<br>
Is it possible to create a heat template with Autoscaling groups with named instances so they can have a prefix and then suffixed with an incrementing id/number ?<br></blockquote><div><br></div><div>Only with ResouceGroups.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
I have looked at the various examples out there and nothing leaps out I have tried it with<br>
<br>
hosts:<br>
    depends_on: external_router_interface<br>
    type: OS::Heat::AutoScalingGroup<br>
    properties:<br>
      desired_capacity: {get_param: node_count}<br>
      cooldown: 60<br>
      min_size: 0<br>
      max_size: 100<br>
      resource:<br>
        type: host.yaml<br>
        properties:<br>
          image: {get_param: server_image}<br>
          flavor: {get_param: flavor}<br>
          key_name: {get_param: ssh_key_name}<br>
          external_network: {get_param: external_network}<br>
          fixed_network: {get_resource: fixed_network}<br>
          fixed_subnet: {get_resource: fixed_subnet}<br>
<br>
With this being called as host.yaml:-<br>
resources:<br>
  indexed_group:<br>
    type: OS::Heat::ResourceGroup<br>
    properties:<br>
      index_var: suffix<br>
      resource_def:<br>
        type: OS::Nova::Server<br>
        properties:<br>
          name: instanceprefix_suffix<br></blockquote><div><br></div><div>This should work, try with the default index_var "%index%"</div><div>if it is still not working for you please raise a bug.</div><div>(<a href="https://bugs.launchpad.net/heat">https://bugs.launchpad.net/heat</a>)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
          image: {get_param: image}<br>
          flavor: {get_param: flavor}<br>
          key_name: {get_param: key_name}<br>
          networks:<br>
            - port: {get_resource: port}<br>
          admin_user: cloud-user<br>
          user_data_format: RAW<br>
<br>
But this creates with the same instance name. </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Thanks<br>
Paul<br>
The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44(020 7896 0011) and then delete the email and any copies of it. Opinions, conclusion (etc) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG is a trading name of IG Markets Limited (a company registered in England and Wales, company number 04008957) and IG Index Limited (a company registered in England and Wales, company number 01190902). Registered address at Cannon Bridge House, 25 Dowgate Hill, London EC4R 2YA. Both IG Markets Limited (register number 195355) and IG Index Limited (register number 114059) are authorised and regulated by the Financial Conduct Authority.<br>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</blockquote></div><br></div></div>