d8e8d5125a04c0b78dc2b83552d8ea35842fa312
[genesis.git] / compass / deploy / conf / base.conf
1 export ISO_URL=http://192.168.123.11:9999/xh/work/build/work/compass.iso
2 export INSTALL_IP=${INSTALL_IP:-10.1.0.12}
3 export INSTALL_MASK=${INSTALL_MASK:-255.255.255.0}
4 export INSTALL_GW=${INSTALL_GW:-10.1.0.1}
5 export INSTALL_IP_START=${INSTALL_IP_START:-10.1.0.1}
6 export INSTALL_IP_END=${INSTALL_IP_END:-10.1.0.254}
7 export MGMT_IP=${MGMT_IP:-192.168.200.2}
8 export MGMT_MASK=${MAGMT_MASK:-255.255.252.0}
9 export MGMT_GW=${MAGMT_GW:-192.168.200.1}
10 export MGMT_IP_START=${MGMT_IP_START:-192.168.200.3}
11 export MGMT_IP_END=${MGMT_IP_END:-192.168.200.254}
12 export OM_NIC=${OM_NIC:-eth3}
13 export OM_IP=${OM_IP:-192.168.123.11/22}
14 export OM_GW=${OM_GW:-192.168.120.1}
15 export COMPASS_VIRT_CPUS=4
16 export COMPASS_VIRT_MEM=4096
17 export COMPASS_SERVER=$INSTALL_IP
18 export COMPASS_SERVER_URL="http://$COMPASS_SERVER/api"
19 export COMPASS_USER_EMAIL="admin@huawei.com"
20 export COMPASS_USER_PASSWORD="admin"
21 export CLUSTER_NAME="opnfv2"
22 export LANGUAGE="EN"
23 export TIMEZONE="America/Los_Angeles"
24 export NTP_SERVER="$COMPASS_SERVER"
25 export NAMESERVERS="$COMPASS_SERVER"
26 export DOMAIN="ods.com"
27 export PARTITIONS="/home=5%,/tmp=5%,/var=20%"
28 export SUBNETS="10.1.0.0/24,172.16.2.0/24,172.16.3.0/24,172.16.4.0/24"
29 export MANAGEMENT_IP_START=${MANAGEMENT_IP_START:-'10.1.0.50'}
30 export TENANT_IP_START=${TENANT_IP_START:-'172.16.2.50'}
31 export PUBLIC_IP_START=${PUBLIC_IP_START:-'172.16.3.50'}
32 export STORAGE_IP_START=${STORAGE_IP_START:-'172.16.4.50'}
33 export MANAGEMENT_INTERFACE=${MANAGEMENT_INTERFACE:-eth0}
34 export TENANT_INTERFACE=${TENANT_INTERFACE:-eth1}
35 export STORAGE_INTERFACE=${STORAGE_INTERFACE:-eth3}
36 export PUBLIC_INTERFACE=${PUBLIC_INTERFACE:-eth2}
37
38
39 function next_ip {
40     ip_addr=$1
41     ip_base="$(echo $ip_addr | cut -d. -f'1 2 3')"
42     ip_last="$(echo $ip_addr | cut -d. -f4)"
43     let ip_last_next=$ip_last+1
44     echo "${ip_base}.${ip_last_next}"
45 }
46
47 if [ -z "$HOST_NETWORKS" ]; then
48     IFS=, read -a HOSTNAME_LIST <<< "$HOSTNAMES"
49     MANAGE_IP=${MANAGEMENT_IP_START}
50     TENANT_IP=${TENANT_IP_START}
51     PUBLIC_IP=${PUBLIC_IP_START}
52     STORAGE_IP=${STORAGE_IP_START}
53     for HOSTNAME in ${HOSTNAME_LIST[@]}; do
54         if [ -z "$HOST_NETWORKS" ]; then
55             HOST_NETWORKS="${HOSTNAME}:${MANAGEMENT_INTERFACE}=${MANAGE_IP}|is_mgmt,${TENANT_INTERFACE}=${TENANT_IP},${PUBLIC_INTERFACE}=${PUBLIC_IP}|is_promiscuous,${STORAGE_INTERFACE}=${STORAGE_IP}"
56         else
57             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}"
58         fi
59         MANAGE_IP=$(next_ip ${MANAGE_IP})
60         TENANT_IP=$(next_ip ${TENANT_IP})
61         PUBLIC_IP=$(next_ip ${PUBLIC_IP})
62         STORAGE_IP=$(next_ip ${STORAGE_IP})
63     done
64     export HOST_NETWORKS
65 fi
66
67 export NETWORK_MAPPING=${NETWORK_MAPPING:-"management=${MANAGEMENT_INTERFACE},tenant=${TENANT_INTERFACE},storage=${STORAGE_INTERFACE},external=${PUBLIC_INTERFACE}"}
68
69 export PROXY=""
70 export IGNORE_PROXY=""
71 export SEARCH_PATH="ods.com"
72 export GATEWAY="10.1.0.1"
73 export SERVER_CREDENTIAL="root=root"
74 export LOCAL_REPO_URL=""
75 export OS_CONFIG_FILENAME=""
76 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"
77 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"
78 export PACKAGE_CONFIG_FILENAME=""