diff options
author | Mihai Prica <prica.mihai@gmail.com> | 2013-06-11 14:30:41 +0300 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-08-28 18:41:56 -0400 |
commit | 9edb63604d5ff6d32f5abc788acef07b015a4d59 (patch) | |
tree | 9810f609864d122abc47c73c01b00157128066c6 /meta-openstack/recipes-devtools | |
parent | 14d719dc08ffada0629194ae871dbb0e0a9d3026 (diff) | |
download | meta-cloud-services-9edb63604d5ff6d32f5abc788acef07b015a4d59.tar.gz |
python-keystone: Changed DB backend to postgresql
Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
Diffstat (limited to 'meta-openstack/recipes-devtools')
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-keystone/keystone.conf | 3 | ||||
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb | 1 |
2 files changed, 3 insertions, 1 deletions
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 @@ | |||
75 | 75 | ||
76 | [sql] | 76 | [sql] |
77 | # The SQLAlchemy connection string used to connect to the database | 77 | # The SQLAlchemy connection string used to connect to the database |
78 | connection = sqlite:////etc/keystone/keystone.db | 78 | # connection = sqlite:////etc/keystone/keystone.db |
79 | connection = postgresql://nova:nova@localhost/keystone | ||
79 | 80 | ||
80 | # the timeout before idle sql connections are reaped | 81 | # the timeout before idle sql connections are reaped |
81 | # idle_timeout = 200 | 82 | # 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} () { | |||
39 | 39 | ||
40 | # Needed when using a MySQL backend | 40 | # Needed when using a MySQL backend |
41 | # mysql -u root -e "CREATE DATABASE keystone CHARACTER SET utf8;" | 41 | # mysql -u root -e "CREATE DATABASE keystone CHARACTER SET utf8;" |
42 | sudo -u postgres createdb keystone | ||
42 | keystone-manage db_sync | 43 | keystone-manage db_sync |
43 | keystone-manage pki_setup | 44 | keystone-manage pki_setup |
44 | } | 45 | } |