cloudify-cosmo / cloudify-nodecellar-example

A sample Cloudify 3 application consisted of a nodejs server and mongodb database.
Apache License 2.0
18 stars 46 forks source link

how to get multi instances's ip address #85

Open junneyang opened 8 years ago

junneyang commented 8 years ago

django_host: type: nscloud.nodes.MonitoredServer

###########################################################
# Setting the nodejs_host initial number of instances to 2.
# The default values for instances.deploy is 1.
###########################################################

\ instances: deploy: 2**

relationships:
  - target: django_security_group
    type: cloudify.openstack.server_connected_to_security_group
  - target: server_keypair
    type: cloudify.openstack.server_connected_to_keypair

///////////////// apptest: value: apptest_ip0: { get_attribute: [django_host, ip, 0] } apptest_ip1: { get_attribute: [django_host, ip, 1] }

then how to get multi instances's ip address in outputs? thanks very much!