Add missing swift configuration

Swift service is already included in undercloud but
doesn't work properly - missing endpoint, misconfigured
swift-proxy service. This patch fixes the issues.

Swift is needed by Heat for using "tempurl" signallig.

Change-Id: I8676423684080e1281da1089449a177e80939d4e
This commit is contained in:
Jan Provaznik 2015-02-03 09:41:19 -05:00
parent 9c2462c222
commit e131b46f4b
3 changed files with 18 additions and 1 deletions

View File

@ -198,6 +198,7 @@ class { 'neutron::agents::ml2::ovs':
# swift proxy
include ::memcached
include ::swift::proxy
include ::swift::ringbuilder
include ::swift::proxy::proxy_logging
include ::swift::proxy::healthcheck
include ::swift::proxy::cache
@ -227,6 +228,20 @@ $swift_components = ['account', 'container', 'object']
swift::storage::filter::recon { $swift_components : }
swift::storage::filter::healthcheck { $swift_components : }
$controller_host = hiera('controller_host')
@@ring_object_device { "${controller_host}:6000/1":
zone => 1,
weight => 1,
}
@@ring_container_device { "${controller_host}:6001/1":
zone => 1,
weight => 1,
}
@@ring_account_device { "${controller_host}:6002/1":
zone => 1,
weight => 1,
}
# Ceilometer
include ::ceilometer
include ::ceilometer::api

View File

@ -53,7 +53,8 @@ ENDPOINT_LIST="--glance-password $UNDERCLOUD_GLANCE_PASSWORD
--nova-password $UNDERCLOUD_NOVA_PASSWORD
--tuskar-password $UNDERCLOUD_TUSKAR_PASSWORD
--ironic-password $UNDERCLOUD_IRONIC_PASSWORD
--ceilometer-password $UNDERCLOUD_CEILOMETER_PASSWORD"
--ceilometer-password $UNDERCLOUD_CEILOMETER_PASSWORD
--swift-password $UNDERCLOUD_SWIFT_PASSWORD"
REGISTER_SERVICE_OPTS=

View File

@ -44,6 +44,7 @@ export UNDERCLOUD_NEUTRON_PASSWORD=${UNDERCLOUD_NEUTRON_PASSWORD:-$(tripleo os-m
export UNDERCLOUD_NOVA_PASSWORD=${UNDERCLOUD_NOVA_PASSWORD:-$(tripleo os-make-password)}
export UNDERCLOUD_IRONIC_PASSWORD=${UNDERCLOUD_IRONIC_PASSWORD:-$(tripleo os-make-password)}
export UNDERCLOUD_TUSKAR_PASSWORD=${UNDERCLOUD_TUSKAR_PASSWORD:-$(tripleo os-make-password)}
export UNDERCLOUD_SWIFT_PASSWORD=${UNDERCLOUD_SWIFT_PASSWORD:-$(tripleo os-make-password)}
if [ -z "$INSTACK_ROOT" ]; then
sudo -E /usr/share/instack-undercloud/undercloud-stack-config/install.d/02-undercloud-stack-heat-metadata