Corrected links associated with release docs. To be updated along with the previous...
[genesis.git] / compass / deploy / conf / base.conf
1 export COMPASS_SERVER_URL="http://10.1.0.12/api"
2 export COMPASS_USER_EMAIL="admin@huawei.com"
3 export COMPASS_USER_PASSWORD="admin"
4 export CLUSTER_NAME="opnfv2"
5 export LANGUAGE="EN"
6 export TIMEZONE="America/Los_Angeles"
7 export NTP_SERVER="10.1.0.12"
8 export NAMESERVERS="10.1.0.12"
9 export DOMAIN="ods.com"
10 export PARTITIONS="/home=5%,/tmp=5%,/var=20%"
11 export SUBNETS="10.1.0.0/24,172.16.2.0/24,172.16.3.0/24,172.16.4.0/24"
12 export MANAGEMENT_IP_START=${MANAGEMENT_IP_START:-'10.1.0.50'}
13 export TENANT_IP_START=${TENANT_IP_START:-'172.16.2.50'}
14 export PUBLIC_IP_START=${PUBLIC_IP_START:-'172.16.3.50'}
15 export STORAGE_IP_START=${STORAGE_IP_START:-'172.16.4.50'}
16 export MANAGEMENT_INTERFACE=${MANAGEMENT_INTERFACE:-eth0}
17 export TENANT_INTERFACE=${TENANT_INTERFACE:-eth1}
18 export STORAGE_INTERFACE=${STORAGE_INTERFACE:-eth3}
19 export PUBLIC_INTERFACE=${PUBLIC_INTERFACE:-eth2}
20
21 function next_ip {
22     ip_addr=$1
23     ip_base="$(echo $ip_addr | cut -d. -f'1 2 3')"
24     ip_last="$(echo $ip_addr | cut -d. -f4)"
25     let ip_last_next=$ip_last+1
26     echo "${ip_base}.${ip_last_next}"
27 }
28
29 if [ -z "$HOST_NETWORKS" ]; then
30     IFS=, read -a HOSTNAME_LIST <<< "$HOSTNAMES"
31     MANAGE_IP=${MANAGEMENT_IP_START}
32     TENANT_IP=${TENANT_IP_START}
33     PUBLIC_IP=${PUBLIC_IP_START}
34     STORAGE_IP=${STORAGE_IP_START}
35     for HOSTNAME in ${HOSTNAME_LIST[@]}; do
36         if [ -z "$HOST_NETWORKS" ]; then
37             HOST_NETWORKS="${HOSTNAME}:${MANAGEMENT_INTERFACE}=${MANAGE_IP}|is_mgmt,${TENANT_INTERFACE}=${TENANT_IP},${PUBLIC_INTERFACE}=${PUBLIC_IP}|is_promiscuous,${STORAGE_INTERFACE}=${STORAGE_IP}"
38         else
39             HOST_NETWORKS="${HOST_NETWORKS};${HOSTNAME}:${MANAGEMENT_INTERFACE}=${MANAGE_IP}|is_mgmt,${TENANT_INTERFACE}=${TENANT_IP},${PUBLIC_INTERFACE}=${PUBLIC_IP}|is_promiscuous,${STORAGE_INTERFACE}=${STORAGE_IP}"
40         fi
41         MANAGE_IP=$(next_ip ${MANAGE_IP})
42         TENANT_IP=$(next_ip ${TENANT_IP})
43         PUBLIC_IP=$(next_ip ${PUBLIC_IP})
44         STORAGE_IP=$(next_ip ${STORAGE_IP})
45     done
46     export HOST_NETWORKS
47 fi
48
49 export NETWORK_MAPPING=${NETWORK_MAPPING:-"management=${MANAGEMENT_INTERFACE},tenant=${TENANT_INTERFACE},storage=${STORAGE_INTERFACE},external=${PUBLIC_INTERFACE}"}
50
51 export PROXY=""
52 export IGNORE_PROXY=""
53 export SEARCH_PATH="ods.com"
54 export GATEWAY="10.1.0.1"
55 export SERVER_CREDENTIAL="root=root"
56 export LOCAL_REPO_URL=""
57 export OS_CONFIG_FILENAME=""
58 export SERVICE_CREDENTIALS="image:service=service,compute:service=service,dashboard:service=service,identity:service=service,metering:service=service,rabbitmq:service=service,volume:service=service,mysql:service=service"
59 export CONSOLE_CREDENTIALS="admin:console=console,compute:console=console,dashboard:console=console,image:console=console,metering:console=console,network:console=console,object-store:console=console,volume:console=console"
60 export PACKAGE_CONFIG_FILENAME=""