summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend')
-rw-r--r--meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend b/meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend
index f131e21..7c28fa1 100644
--- a/meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend
+++ b/meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend
@@ -3,7 +3,7 @@ PRINC := "${@int(PRINC) + 1}"
3 3
4SRC_URI += "file://postgresql" 4SRC_URI += "file://postgresql"
5 5
6inherit useradd update-rc.d identity 6inherit useradd update-rc.d identity hosts
7 7
8do_install_append() { 8do_install_append() {
9 install -d ${D}${sysconfdir}/${PN} 9 install -d ${D}${sysconfdir}/${PN}
@@ -26,6 +26,10 @@ pkg_postinst_${PN} () {
26 26
27 sudo -u postgres initdb -D /etc/${PN}/ 27 sudo -u postgres initdb -D /etc/${PN}/
28 sleep 2 28 sleep 2
29 echo "listen_addresses = '*'" >> /etc/${PN}/postgresql.conf
30 echo "host all all ${CONTROLLER_IP}/32 trust" >> /etc/${PN}/pg_hba.conf
31 echo "host all all ${COMPUTE_IP}/32 trust" >> /etc/${PN}/pg_hba.conf
32 sleep 2
29 /etc/init.d/postgresql start 33 /etc/init.d/postgresql start
30 sleep 5 34 sleep 5
31 35