From 9edb63604d5ff6d32f5abc788acef07b015a4d59 Mon Sep 17 00:00:00 2001 From: Mihai Prica Date: Tue, 11 Jun 2013 14:30:41 +0300 Subject: python-keystone: Changed DB backend to postgresql Signed-off-by: Mihai Prica --- meta-openstack/recipes-devtools/python/python-keystone/keystone.conf | 3 ++- meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'meta-openstack/recipes-devtools/python') diff --git a/meta-openstack/recipes-devtools/python/python-keystone/keystone.conf b/meta-openstack/recipes-devtools/python/python-keystone/keystone.conf index 35ee65b..c58f3d4 100644 --- a/meta-openstack/recipes-devtools/python/python-keystone/keystone.conf +++ b/meta-openstack/recipes-devtools/python/python-keystone/keystone.conf @@ -75,7 +75,8 @@ [sql] # The SQLAlchemy connection string used to connect to the database -connection = sqlite:////etc/keystone/keystone.db +# connection = sqlite:////etc/keystone/keystone.db +connection = postgresql://nova:nova@localhost/keystone # the timeout before idle sql connections are reaped # idle_timeout = 200 diff --git a/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb b/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb index d584adf..efe6fec 100644 --- a/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb +++ b/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb @@ -39,6 +39,7 @@ pkg_postinst_${PN} () { # Needed when using a MySQL backend # mysql -u root -e "CREATE DATABASE keystone CHARACTER SET utf8;" + sudo -u postgres createdb keystone keystone-manage db_sync keystone-manage pki_setup } -- cgit v1.2.3-54-g00ecf