Skip to content

Commit

Permalink
Merge pull request #64 from PaaS-TA/working-logging-service
Browse files Browse the repository at this point in the history
[service-deployment] service-deployment 5.1.17
  • Loading branch information
yu-jin-song authored Dec 14, 2022
2 parents 314a955 + f4870f6 commit 4f2c876
Show file tree
Hide file tree
Showing 21 changed files with 259 additions and 350 deletions.
2 changes: 1 addition & 1 deletion gateway-service/vars.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# STEMCELL
stemcell_os: "ubuntu-bionic" # stemcell os
stemcell_version: "1.107" # stemcell version
stemcell_version: "1.122" # stemcell version

# VM_TYPE
vm_type_default: "medium" # vm type default
Expand Down
2 changes: 1 addition & 1 deletion glusterfs/vars.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# STEMCELL
stemcell_os: "ubuntu-bionic" # stemcell os
stemcell_version: "1.107" # stemcell version
stemcell_version: "1.122" # stemcell version


# NETWORK
Expand Down
2 changes: 1 addition & 1 deletion lifecycle-service/vars.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# STEMCELL
stemcell_os: "ubuntu-bionic" # stemcell os
stemcell_version: "1.107" # stemcell version
stemcell_version: "1.122" # stemcell version

# VM_TYPE
vm_type_default: "medium" # vm type default
Expand Down
45 changes: 36 additions & 9 deletions logging-service/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,39 @@
#!/bin/bash

# VARIABLES
COMMON_VARS_PATH="<COMMON_VARS_FILE_PATH>" # common_vars.yml File Path (e.g. ../../common/common_vars.yml)
CURRENT_IAAS="${CURRENT_IAAS}" # IaaS Information (PaaS-TA에서 제공되는 create-bosh-login.sh 미 사용시 aws/azure/gcp/openstack/vsphere 입력)
BOSH_ENVIRONMENT="${BOSH_ENVIRONMENT}" # bosh director alias name (PaaS-TA에서 제공되는 create-bosh-login.sh 미 사용시 bosh envs에서 이름을 확인하여 입력)

# DEPLOY
bosh -e ${BOSH_ENVIRONMENT} -n -d logging-service deploy --no-redact logging-service.yml \
-o operations/${CURRENT_IAAS}-network.yml \
-l ${COMMON_VARS_PATH} \
-l vars.yml
COMMON_VARS_PATH="<COMMON_VARS_FILE_PATH>" # common_vars.yml File Path (e.g. ../../common/common_vars.yml)
BOSH_ENVIRONMENT="${BOSH_ENVIRONMENT}" # bosh director alias name (PaaS-TA에서 제공되는 create-bosh-login.sh 미 사용시 bosh envs에서 이름을 확인하여 입력)


# Portal 설치 타입 및 프로토콜 종류에 따라 옵션 파일 사용 여부를 분기한다.
PORTAL_TYPE=`grep portal_deploy_type vars.yml | cut -d "#" -f1`
FLUENTD_TRANSPORT=`grep fluentd_transport vars.yml`


if [[ "${PORTAL_TYPE}" =~ "app" ]]; then
if [[ "${FLUENTD_TRANSPORT}" =~ "tcp" ]]; then
bosh -e ${BOSH_ENVIRONMENT} -d logging-service -n deploy logging-service.yml \
-o operations/portal-app-type.yml \
-o operations/use-protocol-tcp.yml \
-l vars.yml \
-l ${COMMON_VARS_PATH}
else
bosh -e ${BOSH_ENVIRONMENT} -d logging-service -n deploy logging-service.yml \
-o operations/portal-app-type.yml \
-l vars.yml \
-l ${COMMON_VARS_PATH}
fi
elif [[ "${PORTAL_TYPE}" =~ "vm" ]]; then
if [[ "${FLUENTD_TRANSPORT}" =~ "tcp" ]]; then
bosh -e ${BOSH_ENVIRONMENT} -d logging-service -n deploy logging-service.yml \
-o operations/use-protocol-tcp.yml \
-l vars.yml \
-l ${COMMON_VARS_PATH}
else
bosh -e ${BOSH_ENVIRONMENT} -d logging-service -n deploy logging-service.yml \
-l vars.yml \
-l ${COMMON_VARS_PATH}
fi
else
echo "Logging Service can't install. Please check 'portal_deploy_type'."
fi
Loading

0 comments on commit 4f2c876

Please sign in to comment.