summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python')
-rw-r--r--meta-openstack/recipes-devtools/python/python-glance_2013.1.bb2
-rw-r--r--meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb8
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova_2013.1.bb8
-rw-r--r--meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb9
4 files changed, 26 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb b/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb
index a64ac9e..72d5662 100644
--- a/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb
+++ b/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb
@@ -62,7 +62,7 @@ pkg_postinst_${SRCNAME} () {
62 if ! pidof postmaster > /dev/null; then 62 if ! pidof postmaster > /dev/null; then
63 sudo -u postgres initdb -D /etc/postgresql/ 63 sudo -u postgres initdb -D /etc/postgresql/
64 /etc/init.d/postgresql start 64 /etc/init.d/postgresql start
65 sleep 0.5 65 sleep 0.2
66 sudo -u postgres psql -c "CREATE ROLE admin WITH SUPERUSER LOGIN PASSWORD 'admin'" 66 sudo -u postgres psql -c "CREATE ROLE admin WITH SUPERUSER LOGIN PASSWORD 'admin'"
67 fi 67 fi
68 68
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
diff --git a/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb b/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb
index dbe4d4f..0c59c2d 100644
--- a/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb
+++ b/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb
@@ -76,6 +76,14 @@ pkg_postinst_${SRCNAME}-controller () {
76 exit 1 76 exit 1
77 fi 77 fi
78 78
79 # This is to make sure postgres is configured and running
80 if ! pidof postmaster > /dev/null; then
81 sudo -u postgres initdb -D /etc/postgresql/
82 /etc/init.d/postgresql start
83 sleep 0.2
84 sudo -u postgres psql -c "CREATE ROLE admin WITH SUPERUSER LOGIN PASSWORD 'admin'"
85 fi
86
79 sudo -u postgres createdb nova 87 sudo -u postgres createdb nova
80 nova-manage db sync 88 nova-manage db sync
81} 89}
diff --git a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb
index 56eaaf0..dfbe0dc 100644
--- a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb
+++ b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb
@@ -57,7 +57,16 @@ pkg_postinst_${SRCNAME} () {
57 exit 1 57 exit 1
58 fi 58 fi
59 59
60 # This is to make sure postgres is configured and running
61 if ! pidof postmaster > /dev/null; then
62 sudo -u postgres initdb -D /etc/postgresql/
63 /etc/init.d/postgresql start
64 sleep 0.2
65 sudo -u postgres psql -c "CREATE ROLE admin WITH SUPERUSER LOGIN PASSWORD 'admin'"
66 fi
67
60 sudo -u postgres createdb quantum 68 sudo -u postgres createdb quantum
69
61} 70}
62 71
63PACKAGES += " \ 72PACKAGES += " \