summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb8
1 files changed, 8 insertions, 0 deletions
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 ba63f98..fc4b3a0 100644
--- a/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb
+++ b/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb
@@ -52,6 +52,14 @@ pkg_postinst_${SRCNAME} () {
52 exit 1 52 exit 1
53 fi 53 fi
54 54
55 # This is to make sure postgres is configured and running
56 if ! pidof postmaster > /dev/null; then
57 sudo -u postgres initdb -D /etc/postgresql/
58 /etc/init.d/postgresql start
59 sleep 0.2
60 sudo -u postgres psql -c "CREATE ROLE admin WITH SUPERUSER LOGIN PASSWORD 'admin'"
61 fi
62
55 sudo -u postgres createdb keystone 63 sudo -u postgres createdb keystone
56 keystone-manage db_sync 64 keystone-manage db_sync
57 keystone-manage pki_setup 65 keystone-manage pki_setup