Initial commit uberspace ansible
This commit is contained in:
2
roles/postgres/templates/pgpass.j2
Normal file
2
roles/postgres/templates/pgpass.j2
Normal file
@ -0,0 +1,2 @@
|
||||
#hostname:port:database:username:password (min 64 characters)
|
||||
*:*:*:{{ uberspace_user }}:{{ postgres_password }}
|
||||
1
roles/postgres/templates/pgpass_temp.j2
Normal file
1
roles/postgres/templates/pgpass_temp.j2
Normal file
@ -0,0 +1 @@
|
||||
{{ postgres_password }}
|
||||
2
roles/postgres/templates/postgres_env.j2
Normal file
2
roles/postgres/templates/postgres_env.j2
Normal file
@ -0,0 +1,2 @@
|
||||
export PGHOST=localhost
|
||||
export PGPORT={{ postgres_port }}
|
||||
4
roles/postgres/templates/postgres_profile.j2
Normal file
4
roles/postgres/templates/postgres_profile.j2
Normal file
@ -0,0 +1,4 @@
|
||||
export PATH=$HOME/opt/postgresql/bin/:$PATH
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/opt/postgresql/lib
|
||||
export PGPASSFILE=$HOME/.pgpass
|
||||
|
||||
4
roles/postgres/templates/postgres_service.j2
Normal file
4
roles/postgres/templates/postgres_service.j2
Normal file
@ -0,0 +1,4 @@
|
||||
[program:postgresql]
|
||||
command=%(ENV_HOME)s/opt/postgresql/bin/postgres -D %(ENV_HOME)s/opt/postgresql/data/
|
||||
autostart=yes
|
||||
autorestart=yes
|
||||
Reference in New Issue
Block a user