Skip to content

if i have instances with 2 deployments, how can i get the 2 IPS of the host? #253

@junneyang

Description

@junneyang

nova-net example:

my_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

outputs:
myhost:
value:
myhost_ip: { get_attribute: [my_host, ip] }

but this will not work!
could you please help me, thanks very much !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions