git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e432974
)
- also give DB access to the boot server, which may run its own API
author
Mark Huang
<mlhuang@cs.princeton.edu>
Mon, 5 Feb 2007 19:11:06 +0000
(19:11 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Mon, 5 Feb 2007 19:11:06 +0000
(19:11 +0000)
plc.d/postgresql
patch
|
blob
|
history
diff --git
a/plc.d/postgresql
b/plc.d/postgresql
index
c16f152
..
0a1bf5a
100755
(executable)
--- a/
plc.d/postgresql
+++ b/
plc.d/postgresql
@@
-7,7
+7,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: postgresql,v 1.
9 2007/01/19 16:42:08
mlhuang Exp $
+# $Id: postgresql,v 1.
10 2007/01/19 17:25:27
mlhuang Exp $
#
# Source function library and configuration
#
# Source function library and configuration
@@
-90,12
+90,14
@@
case "$1" in
# Enable passwordless localhost access
echo "local all all trust" >>$pghba_conf
# Enable passwordless localhost access
echo "local all all trust" >>$pghba_conf
- # Enable access from the API and web servers
+ # Enable access from the API
, boot,
and web servers
PLC_API_IP=$(gethostbyname $PLC_API_HOST)
PLC_API_IP=$(gethostbyname $PLC_API_HOST)
+ PLC_BOOT_IP=$(gethostbyname $PLC_BOOT_HOST)
PLC_WWW_IP=$(gethostbyname $PLC_WWW_HOST)
(
echo "host $PLC_DB_NAME $PLC_DB_USER 127.0.0.1/32 password"
echo "host $PLC_DB_NAME $PLC_DB_USER $PLC_API_IP/32 password"
PLC_WWW_IP=$(gethostbyname $PLC_WWW_HOST)
(
echo "host $PLC_DB_NAME $PLC_DB_USER 127.0.0.1/32 password"
echo "host $PLC_DB_NAME $PLC_DB_USER $PLC_API_IP/32 password"
+ echo "host $PLC_DB_NAME $PLC_DB_USER $PLC_BOOT_IP/32 password"
echo "host $PLC_DB_NAME $PLC_DB_USER $PLC_WWW_IP/32 password"
# Drupal also uses PostgreSQL
echo "host drupal $PLC_DB_USER 127.0.0.1/32 password"
echo "host $PLC_DB_NAME $PLC_DB_USER $PLC_WWW_IP/32 password"
# Drupal also uses PostgreSQL
echo "host drupal $PLC_DB_USER 127.0.0.1/32 password"