initial import
This commit is contained in:
parent
5f54684dd8
commit
9bb1d70962
6
files/pg_hba.conf
Normal file
6
files/pg_hba.conf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# TYPE DATABASE USER ADDRESS METHOD
|
||||||
|
local all all ident
|
||||||
|
local all all md5
|
||||||
|
host all all 127.0.0.1/32 md5
|
||||||
|
host all all ::1/128 md5
|
||||||
|
host all all samenet md5
|
12
files/postgresql.conf
Normal file
12
files/postgresql.conf
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
listen_addresses = '*'
|
||||||
|
max_connections = 100
|
||||||
|
shared_buffers = 128MB
|
||||||
|
dynamic_shared_memory_type = sysv
|
||||||
|
log_timezone = 'Europe/Berlin'
|
||||||
|
datestyle = 'iso, mdy'
|
||||||
|
timezone = 'Europe/Berlin'
|
||||||
|
lc_messages = 'en_US.UTF-8'
|
||||||
|
lc_monetary = 'en_US.UTF-8'
|
||||||
|
lc_numeric = 'en_US.UTF-8'
|
||||||
|
lc_time = 'en_US.UTF-8'
|
||||||
|
default_text_search_config = 'pg_catalog.english'
|
27
tasks/main.yml
Normal file
27
tasks/main.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
- name: update apk cache
|
||||||
|
apk: update_cache=yes
|
||||||
|
|
||||||
|
- name: install postgresql
|
||||||
|
apk: name=postgresql state=present
|
||||||
|
|
||||||
|
- name: install postgresql-client
|
||||||
|
apk: name=postgresql-client state=present
|
||||||
|
|
||||||
|
- name: copy postgresql.conf
|
||||||
|
copy: src=postgresql.conf dest=/var/lib/postgresql/9.5/data/postgresql.conf owner=postgres group=postgres mode=0600
|
||||||
|
|
||||||
|
- name: copy pg_hba.conf
|
||||||
|
copy: src=pg_hba.conf dest=/var/lib/postgresql/9.5/data/pg_hba.conf owner=postgres group=postgres mode=0600
|
||||||
|
|
||||||
|
- name: stop postgresql
|
||||||
|
command: rc-service postgresql stop
|
||||||
|
|
||||||
|
- name: setup db cluster
|
||||||
|
command: /etc/init.d/postgresql setup
|
||||||
|
|
||||||
|
- name: start postgresql
|
||||||
|
command: rc-service postgresql restart
|
||||||
|
|
||||||
|
- name: enable postgresql
|
||||||
|
command: rc-update add postgresql default
|
Loading…
x
Reference in New Issue
Block a user