Browse code

Merge "Allow mongod service to launch on Fedora"

Jenkins authored on 2013/03/12 02:35:04
Showing 2 changed files
... ...
@@ -1,2 +1,3 @@
1
+selinux-policy-targeted
1 2
 mongodb-server
2 3
 pymongo
... ...
@@ -88,9 +88,20 @@ function configure_ceilometer() {
88 88
     iniset $CEILOMETER_CONF keystone_authtoken admin_tenant_name $SERVICE_TENANT_NAME
89 89
     iniset $CEILOMETER_CONF keystone_authtoken signing_dir $CEILOMETER_AUTH_CACHE_DIR
90 90
 
91
+    configure_mongodb
92
+
91 93
     cleanup_ceilometer
92 94
 }
93 95
 
96
+function configure_mongodb() {
97
+    if is_fedora ; then
98
+        # ensure smallfiles selected to minimize freespace requirements
99
+        sudo sed -i '/--smallfiles/!s/OPTIONS=\"/OPTIONS=\"--smallfiles /' /etc/sysconfig/mongod
100
+
101
+        restart_service mongod
102
+    fi
103
+}
104
+
94 105
 # init_ceilometer() - Initialize etc.
95 106
 function init_ceilometer() {
96 107
     # Create cache dir