Merge "Allow mongod service to launch on Fedora"

This commit is contained in:
Jenkins 2013-03-11 17:35:04 +00:00 committed by Gerrit Code Review
commit c3b658c8df
2 changed files with 12 additions and 0 deletions

View File

@ -1,2 +1,3 @@
selinux-policy-targeted
mongodb-server
pymongo

View File

@ -88,9 +88,20 @@ function configure_ceilometer() {
iniset $CEILOMETER_CONF keystone_authtoken admin_tenant_name $SERVICE_TENANT_NAME
iniset $CEILOMETER_CONF keystone_authtoken signing_dir $CEILOMETER_AUTH_CACHE_DIR
configure_mongodb
cleanup_ceilometer
}
function configure_mongodb() {
if is_fedora ; then
# ensure smallfiles selected to minimize freespace requirements
sudo sed -i '/--smallfiles/!s/OPTIONS=\"/OPTIONS=\"--smallfiles /' /etc/sysconfig/mongod
restart_service mongod
fi
}
# init_ceilometer() - Initialize etc.
function init_ceilometer() {
# Create cache dir