aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/conf/compass.conf
blob: 78dd141b800c3e1a7d6291e281026b5aadf42e58 (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
export COMPASS_VIRT_CPUS=4
export COMPASS_VIRT_MEM=4096
export COMPASS_SERVER=$INSTALL_IP
export COMPASS_DECK_PORT="5050"
export COMPASS_SERVER_URL="http://$INSTALL_IP:$COMPASS_DECK_PORT/api"
export HTTP_SERVER_URL="http://$INSTALL_IP:$COMPASS_DECK_PORT/api"
export COMPASS_USER_EMAIL="admin@huawei.com"
export COMPASS_USER_PASSWORD="admin"
export COMPASS_DNS1=${COMPASS_DNS1:-'8.8.8.8'}
export COMPASS_DNS2=${COMPASS_DNS2:-}
export COMPASS_EXTERNAL_IP=${COMPASS_EXTERNAL_IP:-}
export COMPASS_EXTERNAL_MASK=${COMPASS_EXTERNAL_MASK:-}
export COMPASS_EXTERNAL_GW=${COMPASS_EXTERNAL_GW:-}
export LANGUAGE="EN"
export TIMEZONE="America/Los_Angeles"
export NTP_SERVER="$COMPASS_SERVER"
export NAMESERVERS=${USER_NAMESERVER:-"$COMPASS_SERVER"}
export COMPASS_REPO_PORT="5151"
export OFFLINE_DEPLOY=${OFFLINE_DEPLOY:-'Disable'}

if [ "$COMPASS_ARCH" = "aarch64" ]; then
  # Docker images for aarch64

  # Arm images are temporarily held at dockerhub linaro repo
  COMPASS_DOCKER_REPO=${COMPASS_DOCKER_REPO:-linaro}

  export COMPASS_DECK="$COMPASS_DOCKER_REPO/compass-deck"
  export COMPASS_TASKS="$COMPASS_DOCKER_REPO/compass-tasks-osa"

  if [[ "x"$KUBERNETES_VERSION != "x" ]]; then
    export COMPASS_TASKS="$COMPASS_DOCKER_REPO/compass-tasks-k8s"
  fi

  export COMPASS_DB="$COMPASS_DOCKER_REPO/compass-db"
  export COMPASS_MQ="$COMPASS_DOCKER_REPO/compass-mq"
  export COMPASS_REPO="$COMPASS_DOCKER_REPO/compass-repo-osa-ubuntu:euphrates"
  export COMPASS_COBBLER="$COMPASS_DOCKER_REPO/compass-cobbler"

else
  # Docker images for x86_64

  export COMPASS_DECK="compass4nfv/compass-deck"
  export COMPASS_TASKS="yifei0van0xue/compass-tasks-osa"

  if [[ "x"$KUBERNETES_VERSION != "x" ]]; then
    export COMPASS_TASKS="compass4nfv/compass-tasks-k8s"
  fi

  export COMPASS_DB="compass4nfv/compass-db"
  export COMPASS_MQ="compass4nfv/compass-mq"
  export COMPASS_REPO="compass4nfv/compass-repo-osa-ubuntu:euphrates"
  export COMPASS_COBBLER="yifei0van0xue/compass-cobbler"

fi