devstack/lib/neutron_plugins/services/placement
Slawek Kaplonski 7f6d9283b8 Rehome functions to enable Neutron's placement integration
Those functions were part of the neutron devstack plugin but we
discussed it during last PTG [1] and decided to move to the Devstack
repo as plugins which are used by e.g. CI jobs which are defined outside
of the neutron repository.
Placement integration is used e.g. in the tempest-slow job which is
defined in tempest and used by many different OpenStack projects.

[1] https://etherpad.opendev.org/p/neutron-yoga-ptg#L142

Change-Id: Ib86071881f16de1b69c0f9b1b19b6df8b7e66a07
2021-10-27 16:40:30 +02:00

22 lines
835 B
Bash

#!/bin/bash
function configure_placement_service_plugin {
neutron_service_plugin_class_add "placement"
}
function configure_placement_neutron {
iniset $NEUTRON_CONF placement auth_type "$NEUTRON_PLACEMENT_AUTH_TYPE"
iniset $NEUTRON_CONF placement auth_url "$KEYSTONE_SERVICE_URI"
iniset $NEUTRON_CONF placement username "$NEUTRON_PLACEMENT_USERNAME"
iniset $NEUTRON_CONF placement password "$SERVICE_PASSWORD"
iniset $NEUTRON_CONF placement user_domain_name "$SERVICE_DOMAIN_NAME"
iniset $NEUTRON_CONF placement project_name "$SERVICE_TENANT_NAME"
iniset $NEUTRON_CONF placement project_domain_name "$SERVICE_DOMAIN_NAME"
iniset $NEUTRON_CONF placement region_name "$REGION_NAME"
}
function configure_placement_extension {
configure_placement_service_plugin
configure_placement_neutron
}