58 lines
1.6 KiB
INI
58 lines
1.6 KiB
INI
#### Env variable configs
|
|
# Khai bao ve network
|
|
eth0_address=`/sbin/ifconfig eth0|awk '/inet addr/ {print $2}'|cut -f2 -d ":" `
|
|
eth1_address=`/sbin/ifconfig eth1|awk '/inet addr/ {print $2}'|cut -f2 -d ":" `
|
|
eth0_netmask=`/sbin/ifconfig eth0|awk '/inet addr/ {print $4}'|cut -f2 -d ":" `
|
|
eth1_netmask=`/sbin/ifconfig eth1|awk '/inet addr/ {print $4}'|cut -f2 -d ":" `
|
|
|
|
LOCAL_IP=$eth0_address
|
|
MASTER=$eth1_address
|
|
NETMASK_LOCAL=$eth0_netmask
|
|
NETMASK_MASTER=$eth1_netmask
|
|
GATEWAY_IP=`route -n | grep 'UG[ \t]' | awk '{print $2}'`
|
|
|
|
br_ex_address=`/sbin/ifconfig br-ex|awk '/inet addr/ {print $2}'|cut -f2 -d ":" `
|
|
BR_EX_IP=$br_ex_address
|
|
|
|
# Set password
|
|
DEFAULT_PASS='Welcome123'
|
|
|
|
RABBIT_PASS="$DEFAULT_PASS"
|
|
MYSQL_PASS="$DEFAULT_PASS"
|
|
TOKEN_PASS="$DEFAULT_PASS"
|
|
ADMIN_PASS="$DEFAULT_PASS"
|
|
SERVICE_PASSWORD="$DEFAULT_PASS"
|
|
METADATA_SECRET="$DEFAULT_PASS"
|
|
|
|
SERVICE_TENANT_NAME="service"
|
|
ADMIN_TENANT_NAME="admin"
|
|
DEMO_TENANT_NAME="demo"
|
|
INVIS_TENANT_NAME="invisible_to_admin"
|
|
ADMIN_USER_NAME="admin"
|
|
DEMO_USER_NAME="demo"
|
|
|
|
# Environment variable for OPS service
|
|
KEYSTONE_PASS="$DEFAULT_PASS"
|
|
GLANCE_PASS="$DEFAULT_PASS"
|
|
NOVA_PASS="$DEFAULT_PASS"
|
|
NEUTRON_PASS="$DEFAULT_PASS"
|
|
CINDER_PASS="$DEFAULT_PASS"
|
|
SWIFT_PASS="$DEFAULT_PASS"
|
|
HEAT_PASS="$DEFAULT_PASS"
|
|
|
|
# Environment variable for DB
|
|
KEYSTONE_DBPASS="$DEFAULT_PASS"
|
|
GLANCE_DBPASS="$DEFAULT_PASS"
|
|
NOVA_DBPASS="$DEFAULT_PASS"
|
|
NEUTRON_DBPASS="$DEFAULT_PASS"
|
|
CINDER_DBPASS="$DEFAULT_PASS"
|
|
HEAT_DBPASS="$DEFAULT_PASS"
|
|
|
|
# User declaration in Keystone
|
|
ADMIN_ROLE_NAME="admin"
|
|
MEMBER_ROLE_NAME="Member"
|
|
KEYSTONEADMIN_ROLE_NAME="KeystoneAdmin"
|
|
KEYSTONESERVICE_ROLE_NAME="KeystoneServiceAdmin"
|
|
|
|
# OS PASS ROOT
|