summaryrefslogtreecommitdiffstats
path: root/blueprints/pgaas-cluster.yaml-template
diff options
context:
space:
mode:
authorTony Hansen <tony@att.com>2017-11-01 21:10:10 +0000
committerTony Hansen <tony@att.com>2017-11-01 21:10:18 +0000
commitbfff05b1fc28255729e5afcfacc2fe3352652413 (patch)
tree95035542cb9a7dfba0a8643298a048d285f49b6a /blueprints/pgaas-cluster.yaml-template
parent73e66b913bfad7105f94a84f3f957620fb12bcba (diff)
refix syntax error, fix IP address
retrieve the proper value for the IP address to register in Consul Change-Id: I8742d15bf4d80bad1914cb92dd7033aaa944aef0 Signed-off-by: Tony Hansen <tony@att.com> Issue-ID: DCAEGEN2-185
Diffstat (limited to 'blueprints/pgaas-cluster.yaml-template')
-rw-r--r--blueprints/pgaas-cluster.yaml-template6
1 files changed, 3 insertions, 3 deletions
diff --git a/blueprints/pgaas-cluster.yaml-template b/blueprints/pgaas-cluster.yaml-template
index 9a85288..a08df40 100644
--- a/blueprints/pgaas-cluster.yaml-template
+++ b/blueprints/pgaas-cluster.yaml-template
@@ -129,7 +129,7 @@ inputs:
*00 ) WRITE=-write ;;
*01 ) WRITE= ;;
esac
- curl -v -X PUT -H "Content-Type: application/json" "http://${LOCATION_PREFIX}cnsl00.${LOCATION_DOMAIN}:8500/v1/agent/service/register" -d '{"name" : "${CLUSTER_NAME}${WRITE}", "Address" : "${LOCAL_IP}", "Port" : 5432}"'
+ curl -v -X PUT -H "Content-Type: application/json" "http://${LOCATION_PREFIX}cnsl00.${LOCATION_DOMAIN}:8500/v1/agent/service/register" -d "{\"name\" : \"${CLUSTER_NAME}${WRITE}\", \"Address\" : \"${LOCAL_IP}\", \"Port\" : 5432}"
echo ALL DONE
@@ -236,7 +236,7 @@ node_templates:
- { get_property: [ dns_pgrs00, fqdn ] }
- "'\n"
- "LOCAL_IP='"
- - { get_attribute: [ host_pgrs00, ip ] }
+ - { get_attribute: [ floatingip_pgrs00, floating_ip_address ] }
- "'\n"
- "PG_NODES='"
- { get_property: [ dns_pgrs00, fqdn ] }
@@ -338,7 +338,7 @@ node_templates:
- { get_property: [ dns_pgrs00, fqdn ] }
- "'\n"
- "LOCAL_IP='"
- - { get_attribute: [ host_pgrs01, ip ] }
+ - { get_attribute: [ floatingip_pgrs01, floating_ip_address ] }
- "'\n"
- "PG_NODES='"
- { get_property: [ dns_pgrs00, fqdn ] }