Skip to content

Commit

Permalink
Merge branch 'change-host-check' of https://github.com/swetharepakula…
Browse files Browse the repository at this point in the history
…/routing-release into develop
  • Loading branch information
rosenhouse committed Oct 2, 2017
2 parents c0ff24c + b61462e commit dca19fb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion jobs/gorouter/spec
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ properties:
default: TLSv1.2
router.dns_health_check_host:
description: "Host to ping for confirmation of DNS resolution, only used when Routing API is enabled"
default: "consul.service.cf.internal"
default: "uaa.service.cf.internal"
router.tls_pem:
description: "Array of private keys and certificates used for TLS handshakes with downstream clients. Each element in the array is an object containing fields 'private_key' and 'cert_chain', each of which supports a PEM block. Required if router.enable_ssl is true."
example: |
Expand Down
2 changes: 1 addition & 1 deletion jobs/gorouter/templates/run_gorouter.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source /var/vcap/packages/routing_utils/syslog_utils.sh
<% if p("routing_api.enabled") %>
set +e

host <%= p("router.dns_health_check_host") %>
host -r <%= p("router.dns_health_check_host") %>
if [[ "0" != "$?" ]]; then
echo "DNS is not up"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion jobs/routing-api/spec
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ properties:

dns_health_check_host:
description: "Host to ping for confirmation of DNS resolution"
default: consul.service.cf.internal
default: uaa.service.cf.internal

routing_api.sqldb.host:
description: "Host for SQL database"
Expand Down
2 changes: 1 addition & 1 deletion jobs/routing-api/templates/routing-api_ctl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ case $1 in
tee_output_to_sys_log "${LOG_DIR}" "routing_api"

set +e
host <%= p("dns_health_check_host") %>
host -r <%= p("dns_health_check_host") %>
if [[ "0" != "$?" ]]; then
echo "DNS is not up"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion jobs/tcp_router/spec
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ properties:

dns_health_check_host:
description: "Host to ping for confirmation of DNS resolution"
default: consul.service.cf.internal
default: uaa.service.cf.internal

metron.port:
description: "The port used to emit dropsonde messages to the Metron agent."
Expand Down
2 changes: 1 addition & 1 deletion jobs/tcp_router/templates/tcp_router_ctl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ case $1 in
echo -n "Starting ${NAME}."

set +e
host <%= p("dns_health_check_host") %>
host -r <%= p("dns_health_check_host") %>
if [[ "0" != "$?" ]]; then
echo "DNS is not up"
exit 1
Expand Down

0 comments on commit dca19fb

Please sign in to comment.