wip
This commit is contained in:
@@ -45,31 +45,31 @@ printf "%s:%s\n" "$PGPOOL_ADMIN_USERNAME" (pg_md5 "$PGPOOL_ADMIN_PASSWORD") > /e
|
|||||||
chmod 600 /etc/pgpool2/pcp.conf ~/.pcppass
|
chmod 600 /etc/pgpool2/pcp.conf ~/.pcppass
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#{
|
{
|
||||||
# printf "listen_addresses = '*'\n"
|
printf "listen_addresses = '*'\n"
|
||||||
# printf "port = 5432\n"
|
printf "port = 5432\n"
|
||||||
# printf "unix_socket_directories = '/run'\n"
|
printf "unix_socket_directories = '/run'\n"
|
||||||
# printf "pcp_socket_dir = '/run'\n"
|
printf "pcp_socket_dir = '/run'\n"
|
||||||
# printf "enable_pool_hba = off\n"
|
printf "enable_pool_hba = off\n"
|
||||||
# printf "allow_clear_text_frontend_auth = on\n"
|
printf "allow_clear_text_frontend_auth = on\n"
|
||||||
# printf "process_management_mode = 'dynamic'\n"
|
printf "process_management_mode = 'dynamic'\n"
|
||||||
# printf "backend_clustering_mode = 'raw'\n"
|
printf "backend_clustering_mode = 'raw'\n"
|
||||||
# printf "health_check_timeout = 5\n"
|
printf "health_check_timeout = 5\n"
|
||||||
# printf "health_check_period = 5\n"
|
printf "health_check_period = 5\n"
|
||||||
# printf "health_check_user = 'pgpool'\n"
|
printf "health_check_user = 'pgpool'\n"
|
||||||
# printf "health_check_password = '%s'\n" "$PGPOOL_PASSWORD"
|
printf "health_check_password = '%s'\n" "$PGPOOL_PASSWORD"
|
||||||
#
|
|
||||||
# IFS=':'
|
IFS=':'
|
||||||
# n=0
|
n=0
|
||||||
# for backend in $PGPOOL_BACKEND
|
for backend in $PGPOOL_BACKEND
|
||||||
# do
|
do
|
||||||
# printf "backend_hostname%d = '%s'\n" $n $backend
|
printf "backend_hostname%d = '%s'\n" $n $backend
|
||||||
# printf "backend_port%d = 5432\n" $n
|
printf "backend_port%d = 5432\n" $n
|
||||||
# ((n+=1))
|
((n+=1))
|
||||||
# done
|
done
|
||||||
#} > /etc/pgpool2/pgpool.conf
|
} > /etc/pgpool2/pgpool.conf
|
||||||
|
|
||||||
|
|
||||||
sudo service ssh start
|
sudo service ssh start
|
||||||
|
|||||||
Reference in New Issue
Block a user