Skip to content

Commit

Permalink
manual bum p multi services (#8594)
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Shankar <vshankar@progress.com>
  • Loading branch information
vivekshankar1 authored Sep 17, 2024
1 parent 9a17d13 commit efccfba
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/automate-backend-deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ This provides the `automate-backend-deployment` package.

This package will build a package using terraform/a2ha-terraform, inspecs, test, certs and Makefile.


This is the heart of the a2ha because this component will set up a workspace for a2ha and all the a2ha command will get available after installing this package.
1 change: 1 addition & 0 deletions components/automate-cli/habitat/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ do_after() {
# being placed in a specific location in the hab package. Therefore, instead
# of relying on the scaffolding install we'll do it manually to please the
# updater and chef-automate cli zip creator in expeditor.

local bin_root="${pkg_prefix}/static/linux"
mkdir -p "${bin_root}"

Expand Down
1 change: 1 addition & 0 deletions components/automate-cs-nginx/habitat/hooks/health-check
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh
#

curlOpts="-sS --fail --max-time 2"
curlOpts="$curlOpts --resolve automate-cs-nginx:{{cfg.service.port}}:127.0.0.1"
curlOpts="$curlOpts --noproxy automate-cs-nginx"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh
#

curlOpts="-X GET -sS --fail --max-time 2"
curlOpts="$curlOpts --cert {{pkg.svc_config_path}}/service.crt"
curlOpts="$curlOpts --key {{pkg.svc_config_path}}/service.key"
Expand Down
1 change: 1 addition & 0 deletions components/automate-deployment/habitat/hooks/health-check
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh


# Client-side code we use in health-check reads this env var. See deployment/address.go
export DEPLOYMENT_SERVICE_ADDRESS="127.0.0.1:{{cfg.service.port}}"

Expand Down
1 change: 1 addition & 0 deletions components/automate-es-gateway/habitat/hooks/health-check
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!{{pkgPathFor "core/bash"}}/bin/bash
#

curlOpts="-sS --fail --max-time 2"
# shellcheck disable=SC2086
output=$({{pkgPathFor "core/curl"}}/bin/curl $curlOpts "http://localhost:{{cfg.service.port}}/automate_es_gateway_status")
Expand Down
1 change: 1 addition & 0 deletions components/automate-pg-gateway/habitat/hooks/health-check
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ set -uo pipefail
exec 2>&1

rc=0

STATUS_SOCK={{pkg.svc_var_path}}/status.sock
JQ_FILTER=".[] | select(.field.name == \"Name\").value.value"

Expand Down

0 comments on commit efccfba

Please sign in to comment.