Docs update: puppet does mysql install for gerrit

Change-Id: If88889554913f8f8dbd91d4455e0a91926e8bd5f
Reviewed-on: https://review.openstack.org/19313
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: shengjie min
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
This commit is contained in:
Elizabeth Krumbach 2013-01-09 09:33:22 -08:00 committed by Jenkins
parent 5f12699abd
commit 4df9996990
2 changed files with 2 additions and 28 deletions

View File

@ -42,7 +42,7 @@ master_doc = 'index'
# General information about the project.
project = u'OpenStack Project Infrastructure'
copyright = u'2012, OpenStack Infastructure Team - see git repo for details'
copyright = u'2012-2013, OpenStack Infastructure Team - see git repo for details'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the

View File

@ -47,34 +47,8 @@ host for use by the OpenStack project.
Install MySQL
-------------
You should setup MySQL as follows, changing 'secret' to a suitable password:
.. code-block:: bash
mysql -u root -p
.. code-block:: mysql
CREATE USER 'gerrit2'@'localhost' IDENTIFIED BY 'secret';
CREATE DATABASE reviewdb;
ALTER DATABASE reviewdb charset=latin1;
GRANT ALL ON reviewdb.* TO 'gerrit2'@'localhost';
FLUSH PRIVILEGES;
Then create the gerrit2 system user as follows:
.. code-block:: bash
sudo useradd -mr gerrit2
sudo chsh gerrit2 -s /bin/bash
sudo su - gerrit2
With Gerrit 2.2.2 onwards edit /etc/mysql/my.cnf with the following:
.. code-block:: ini
[mysqld]
default-storage-engine=INNODB
Basic configuration of MySQL is handled via puppet.
Install Gerrit
--------------