From d71749c72f935906f4858c50702a7d08352f038b Mon Sep 17 00:00:00 2001 From: Matt Van Dijk Date: Fri, 16 Oct 2015 15:12:35 -0400 Subject: MongoDB elements switch to YAML MongoDB 3.0.7 changed the default conf layout to use YAML. The elements modify this file and so need updating. Change-Id: I2c3ae3ac719d35c0a34bf8c64bbb8cc8aed01ad5 Closes-Bug: bug/1506979 --- scripts/files/elements/ubuntu-mongodb/install.d/10-mongodb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/files/elements/ubuntu-mongodb/install.d/10-mongodb b/scripts/files/elements/ubuntu-mongodb/install.d/10-mongodb index b32f148..12e5712 100755 --- a/scripts/files/elements/ubuntu-mongodb/install.d/10-mongodb +++ b/scripts/files/elements/ubuntu-mongodb/install.d/10-mongodb @@ -30,8 +30,8 @@ echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3. apt-get update apt-get install -y mongodb-org -# the following config changes are needed: smallfiles set to true, and bind_ip -# set to default -sed -i '/bind_ip/d' /etc/mongod.conf -sed -i '/smallfiles/d' /etc/mongod.conf -echo 'smallfiles = true' >> /etc/mongod.conf +# MongoDB configuration settings +# use the default bindIP +sed -i '/bindIp/d' /etc/mongod.conf +# need to use smallFiles until the device is mounted +sed -i 's/# mmapv1:/ mmapv1:\n smallFiles: true/' /etc/mongod.conf -- cgit v1.2.1