X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=trusty%2Fdebian%2Fneutron-common.config.in;h=46e8e8ed55a2e9d5491ed749209dcf94e879fd47;hb=HEAD;hp=c890d4eda32250bc22817ebbd5106224499c9fa6;hpb=e839df91c398fa2a44c07d0db2dd4d22124ba7cb;p=openstack-build%2Fneutron-build.git diff --git a/trusty/debian/neutron-common.config.in b/trusty/debian/neutron-common.config.in index c890d4eda..46e8e8ed5 100644 --- a/trusty/debian/neutron-common.config.in +++ b/trusty/debian/neutron-common.config.in @@ -87,6 +87,14 @@ db_go db_get neutron/plugin-select NEUTRON_PLUGIN_NAME=${RET} +read_nova_admin_credentials () { + pkgos_read_config -p high ${N_CONF} nova url neutron/nova_url + pkgos_read_config -p high ${N_CONF} nova region_name neutron/nova_region + pkgos_read_config -p medium ${N_CONF} nova project_name neutron/nova_admin_tenant_name + pkgos_read_config -p medium ${N_CONF} nova username neutron/nova_admin_username + pkgos_read_config -p high ${N_CONF} nova password neutron/nova_admin_password +} + # OVS specific configurations (if that's the one selected) if [ "${NEUTRON_PLUGIN_NAME}" = "OpenVSwitch" ] ; then # Various network config... @@ -94,6 +102,8 @@ if [ "${NEUTRON_PLUGIN_NAME}" = "OpenVSwitch" ] ; then pkgos_read_config ${OVS_CONF} OVS enable_tunneling neutron/enable_tunneling pkgos_read_config ${OVS_CONF} OVS tunnel_id_ranges neutron/tunnel_id_ranges + read_nova_admin_credentials + # Guess values to put in the local_ip directive IF=`LC_ALL=C route | grep default |awk -- '{ print $8 }'` guessed_ip_addr=`LC_ALL=C ifconfig ${IF} | grep 'inet addr' | sed 's/.\+inet addr:\([0-9.]\+\).\+/\1/'`