Skip to content

Commit

Permalink
fixes for getting mongo url propertly
Browse files Browse the repository at this point in the history
  • Loading branch information
dfilppi committed May 23, 2015
1 parent c323f37 commit a9ccf71
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 0 additions & 2 deletions dproxy/example/nodejs/openstack-blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ node_templates:

- type: node_contained_in_nodejs
target: nodejs
- type: cloudify.relationships.depends_on
target: proxy

##
# The blueprint proxy to mongo
Expand Down
5 changes: 3 additions & 2 deletions dproxy/example/nodejs/scripts/mongo/set-mongo-url.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

set -e

ctx source instance runtime_properties mongo_ip_address $(ctx target instance runtime_properties outputs.server_info.value.ip_address)
ctx source instance runtime_properties mongo_port $(ctx target instance runtime_properties outputs.server_info.value.port)
ctx source instance runtime_properties mongo_ip_address $(ctx target instance runtime_properties outputs.endpoint.value.ip_address)
ctx source instance runtime_properties mongo_port $(ctx target instance runtime_properties outputs.endpoint.value.port)

8 changes: 3 additions & 5 deletions dproxy/example/nodejs/singlehost-blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,15 @@ node_templates:
# Setting the mongo connection
################################

# - type: node_connected_to_mongo
# target: mongod
#
- type: node_connected_to_mongo
target: mongod

################################
# Setting the nodejs connection
################################

- type: node_contained_in_nodejs
target: nodejs
- type: cloudify.relationships.depends_on
target: proxy

proxy:
type: cloudify.nodes.DeploymentProxy
Expand Down

0 comments on commit a9ccf71

Please sign in to comment.