No PostgreSQL description
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-manuals |
Fix Released
|
Medium
|
Anne Gentle |
Bug Description
Make sure the /var/lib/
This example shows PostgreSQL.
Install PostgreSQL:
$ sudo apt-get install postgresql postgresql-client
Create a database use and a database for Keystone:
$ sudo su - postgres
postgres> psql
postgres=# CREATE USER keystonedbadmin;
postgres=# ALTER USER keystonedbadmin WITH PASSWORD 'passwd';
postgres=# CREATE DATABASE keystone;
postgres=# GRANT ALL PRIVILEGES ON DATABASE keystone TO keystonedbadmin;
postgres=# \q
postgres> exit
$
The database is created and we have a privileged user that controls the database. Now we have to install the packages that will help Keystone to access our database.
$ sudo apt-get install python-sqlalchemy python-psycopg2
With sqlalchemy installed we can move over to Keystone:
$ sudo apt-get install -y keystone
Configure the /etc/keystone/
$ sudo sed -i 's/^log_config = /etc/keystone/
$ sudo sed -i 's/^use_syslog = False/use_syslog = True/'
$ sudo sed -i 's/^# syslog_log_facility = LOG_LOCAL0/
Next we gonna tell Keystone how to contact our PostgresSQL database:
connection = postgres:
Follow rest of manual as for MySQL (admin_token, etc)
Changed in openstack-manuals: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Anne Gentle (annegentle) |
Fix proposed to branch: master /review. openstack. org/15151
Review: https:/