-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcheck_env.sh
executable file
·38 lines (29 loc) · 1.88 KB
/
check_env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# clear
# database settings
: ${CB_DB_ENV_USER:?"Please set the database user. Check the following entry in the env_props.sh file: CB_DB_ENV_USER="}
: ${CB_DB_ENV_PASS:?"Please set the database password. Check the following entry in the env_props.sh file: CB_DB_ENV_PASS="}
# default db properties
: ${CB_HBM2DDL_STRATEGY:="update"}
: ${CB_DB_ENV_DB:="cloudbreak"}
: ${CB_UI_ADDR:="http://localhost:8081"}
# SMTP properties
: ${CB_SMTP_SENDER_USERNAME:?"Please add the SMTP username. Check the following entry in the env_props.sh file: CB_SMTP_SENDER_USERNAME="}
: ${CB_SMTP_SENDER_PASSWORD:?"Please add the SMTP password. Check the following entry in the env_props.sh file: CB_SMTP_SENDER_PASSWORD="}
: ${CB_SMTP_SENDER_HOST:?"Please add the SMTP host. Check the following entry in the env_props.sh file: CB_SMTP_SENDER_HOST="}
: ${CB_SMTP_SENDER_PORT:?"Please add the SMTP port. Check the following entry in the env_props.sh file: CB_SMTP_SENDER_PORT="}
: ${CB_SMTP_SENDER_FROM:?"Please add the address to appear in the 'From:' field of emails sent by the system: CB_SMTP_SENDER_FROM="}
# Azure
: ${CB_AZURE_IMAGE_URI:="http://vmdepoteastus.blob.core.windows.net/linux-community-store/community-62091-a59dcdc1-d82d-4e76-9094-27b8c018a4a1-1.vhd"}
# Ambari
: ${CB_MANAGEMENT_CONTEXT_PATH:="/"}
: ${CB_BLUEPRINT_DEFAULTS:="lambda-architecture,multi-node-hdfs-yarn,single-node-hdfs-yarn"}
# AWS related (optional) settings - not setting them causes AWS related operations to fail
: ${AWS_ACCESS_KEY_ID:?"Please set the AWS access key. Check the following entry in the env_props.sh file:AWS_ACCESS_KEY_ID="}
: ${AWS_SECRET_KEY:?"Please set the AWS secret. Check the following entry in the env_props.sh file: AWS_SECRET_KEY="}
# AWS SNS subscriptions should use HTTPS endpoints or not
: ${CB_SNS_SSL:="false"}
echo Starting cloudbreak with the following settings:
for p in "${!CB_@}"; do
echo $p=${!p}
done