apmec/devstack/settings
2018-05-07 13:25:56 +02:00

52 lines
1.8 KiB
Plaintext

APMEC_MODE=${APMEC_MODE:-all}
USE_BARBICAN=True
if [ "${APMEC_MODE}" == "all" ]; then
# Nova
disable_service n-net
VIRT_DRIVER=libvirt
#enable_service q-lbaas
#enable_service q-fwaas
# APMEC_NEUTRON_AGENTS can be disabled by adding
# APMEC_NEUTRON_AGENTS='' in local.conf if neutron agents are running on a separate node
APMEC_NEUTRON_AGENTS=${APMEC_NEUTRON_AGENTS:-q-agt,q-dhcp,q-meta,q-l3}
for i in $(echo $APMEC_NEUTRON_AGENTS | sed 's/,/ /g')
do
enable_service $i
done
enable_service q-svc
enable_service neutron
enable_service apmec
# enable apmec-conductor will make systemctl enable conductor service
enable_service apmec-conductor
# apmec-horizon isn't installable from pip
LIBS_FROM_GIT=apmec-horizon
MGMT_PHYS_NET=${MGMT_PHYS_NET:-mgmtphysnet0}
BR_MGMT=${BR_MGMT:-br-mgmt0}
NET_MGMT=${NET_MGMT:-net_mgmt}
SUBNET_MGMT=${SUBNET_MGMT:-subnet_mgmt}
FIXED_RANGE_MGMT=${FIXED_RANGE_MGMT:-192.168.120.0/24}
NETWORK_GATEWAY_MGMT=${NETWORK_GATEWAY_MGMT:-192.168.120.1}
NETWORK_GATEWAY_MGMT_IP=${NETWORK_GATEWAY_MGMT_IP:-192.168.120.1/24}
NET0=${NET0:-net0}
SUBNET0=${SUBNET0:-subnet0}
FIXED_RANGE0=${FIXED_RANGE0:-10.10.0.0/24}
NETWORK_GATEWAY0=${NETWORK_GATEWAY0:-10.10.0.1}
NET1=${NET1:-net1}
SUBNET1=${SUBNET1:-subnet1}
FIXED_RANGE1=${FIXED_RANGE1:-10.10.1.0/24}
NETWORK_GATEWAY1=${NETWORK_GATEWAY1:-10.10.1.1}
elif [ "${APMEC_MODE}" == "standalone" ]; then
# set the enabled services here. This will need apmec devstack plugin put as the last one in local.conf
ENABLED_SERVICES=key,horizon,apmec,apmec-conductor,mysql,dstat,barbican,mistral,mistral-api,mistral-engine,mistral-executor,mistral-event-engine
else
die $LINENO "invalid value: $APMEC_MODE for APMEC_MODE"
fi