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"
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}
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}"
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}"
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}"
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})
49 export NETWORK_MAPPING=${NETWORK_MAPPING:-"management=${MANAGEMENT_INTERFACE},tenant=${TENANT_INTERFACE},storage=${STORAGE_INTERFACE},external=${PUBLIC_INTERFACE}"}
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=""