Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug 1054168 - documents v1 and v2 Image API details bug 1073003 - debian listed twice bug 1073005 - NTP best practices bug 1073370 - mismatch in sept/oct Folsom date listings bug 1068971 - adds PostgreSQL description for nova database, rather than keystone thinking of rewriting entire database into one section anyway... so this may be a poor fix to the bug but would like input. Rebase against master. Change-Id: I1e678ae98448928ca5096da5fdc01a5bb9c8bddf
- Loading branch information
1 parent
fbf91c2
commit 84eee9a
Showing
8 changed files
with
124 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
doc/src/docbkx/openstack-install/compute-database-postgresql.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<section xml:id="setting-up-sql-database-postgresql" | ||
xmlns="http://docbook.org/ns/docbook" | ||
xmlns:xi="http://www.w3.org/2001/XInclude" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"> | ||
<title>Configuring the SQL Database (PostgreSQL) on the Cloud Controller</title> | ||
<para>Optionally, if you choose not to use MySQL, you can install and configure PostgreSQL for all your databases. Here's a walkthrough for the Nova database:</para> | ||
<screen><userinput><prompt>$</prompt> sudo apt-get install postgresql postgresql-client</userinput></screen> | ||
<para>Start the PostgreSQL command line client by running:</para> | ||
<para><userinput>sudo su - postgres</userinput></para> | ||
<para>Enter the postgresql root user's password if prompted.</para> | ||
<para>To configure the database, create the nova database. </para> | ||
<para><screen>postgres> psql | ||
postgres=# CREATE USER novadbadmin; | ||
postgres=# ALTER USER novadbadmin WITH PASSWORD '<replaceable>[YOUR_NOVADB_PASSWORD]</replaceable>'; | ||
postgres=# CREATE DATABASE nova; | ||
postgres=# GRANT ALL PRIVILEGES ON DATABASE nova TO novadbadmin; | ||
postgres=# \q | ||
postgres> exit</screen></para> | ||
<para>The database is created and we have a privileged user that controls the database. Now we have to install the packages that will help Nova access the database.</para> | ||
|
||
<screen><userinput><prompt>$</prompt> sudo apt-get install python-sqlalchemy python-psycopg2</userinput></screen> | ||
|
||
<para>Configure the <filename>/etc/nova/nova.conf</filename> file, to ensure it knows to use the PostgreSQL database:</para> | ||
|
||
<literallayout class="monospaced">connection = postgres://novadbadmin:[<replaceable>[YOUR_NOVADB_PASSWORD]</replaceable>]@127.0.0.1/nova</literallayout> | ||
<para>The command to populate the database is described later in the | ||
documentation, in the section entitled <link | ||
linkend="compute-db-sync">Configuring the Database for Compute</link>. | ||
</para> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters