On 21/06/15 15:27, Binan AL Halabi wrote:
Hi all,
I have this part of my Heat template:
# Autoscaling group definition
auto-scaling-group:
type: OS::Heat::AutoScalingGroup
properties:
min_size: 1
max_size: 1
resource:
type: OS::Nova::Server
properties:
flavor: { get_param: flavor }
image: { get_param: image }
key_name: { get_param: key }
networks:
- port: { get_resource: server_port }
user_data_format: SOFTWARE_CONFIG
software_config_transport: POLL_SERVER_HEAT
deployment:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: config
server: { get_attr: [auto-scaling-group, resource] }
??????????????????????????????????
input_values:
foo: fooooo
bar: baaaaa
signal_transport : CFN_SIGNAL
The SoftwareDeployment is applied to the servers in the autoscaling
group. The question: how i specify the server field in the
SoftwareDeployment to refrence to the server in autoscaling group ?
The scaling resource in your auto-scaling-group needs to be a template
resource instead of an OS::Nova::Server. The server and the deployment
resource should be inside that template resource, ie
auto-scaling-group:
type: OS::Heat::AutoScalingGroup
properties:
min_size: 1
max_size: 1
resource:
type: server.yaml
server.yaml
===========
parameters:
...
resources:
server:
type: OS::Nova::Server
properties:
flavor: { get_param: flavor }
...
deployment:
type: OS::Heat::SoftwareDeployment
properties:
server: { get_resource: server }
...
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack