
This changeset contains updates for Newton. Notable changes include: - Ubuntu 14.04 LTS (trusty) replaced by Ubuntu 16.04 LTS (xenial) - Higher RAM requirements, the controller VM needs 5120 MB - Script order changed (install-guide changes) - By default, mariadb does not use a root password but socket auth (sudo) - Nova does not configure any default flavors anymore; we create m1.nano and that's all there is when the cluster is built. - Remaining differences to install-guide marked in the source code - As always, new races fixed Change-Id: Id59e145140252c4384584a3899e01a38e8a57158
48 lines
1.4 KiB
Bash
Executable File
48 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -o errexit -o nounset
|
|
|
|
TOP_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
|
|
|
source "$TOP_DIR/config/paths"
|
|
source "$CONFIG_DIR/credentials"
|
|
source "$LIB_DIR/functions.guest.sh"
|
|
source "$CONFIG_DIR/openstack"
|
|
|
|
exec_logfile
|
|
|
|
indicate_current_auto
|
|
|
|
#------------------------------------------------------------------------------
|
|
# NoSQL database for Ubuntu
|
|
# http://docs.openstack.org/project-install-guide/telemetry/newton/database/environment-nosql-database-ubuntu.html
|
|
#------------------------------------------------------------------------------
|
|
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# Install and configure components
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
echo "Installing the MongoDB packages."
|
|
sudo apt-get install -y mongodb-server mongodb-clients python-pymongo
|
|
|
|
echo "Configuring mongodb.conf."
|
|
conf=/etc/mongodb.conf
|
|
iniset_sudo_no_section $conf bind_ip "$(hostname_to_ip controller)"
|
|
iniset_sudo_no_section $conf smallfiles true
|
|
|
|
echo "Stopping mongodb."
|
|
sudo service mongodb stop
|
|
|
|
echo "Removing initial journal files (if any)."
|
|
sudo rm -vf /var/lib/mongodb/journal/prealloc.*
|
|
|
|
echo "Starting mongodb."
|
|
sudo service mongodb start
|
|
|
|
echo -n "Waiting for mongodb to start."
|
|
while sudo service mongodb status 2>/dev/null | grep "stop"; do
|
|
sleep 2
|
|
echo -n .
|
|
done
|
|
echo
|