aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--INSTALLING.rst8
-rw-r--r--ansible/roles/postgres/files/postgresql.conf10
-rw-r--r--ansible/roles/postgres/tasks/main.yml8
3 files changed, 11 insertions, 15 deletions
diff --git a/INSTALLING.rst b/INSTALLING.rst
index 2a4bcb8..b04e226 100644
--- a/INSTALLING.rst
+++ b/INSTALLING.rst
@@ -4,8 +4,8 @@ Installing Gondul
Requirements
------------
-- Debian Stable (jessie) with backports (possibly newer)
-- Ansible v2.1 or newer (recommended: from backports)
+- Debian Stable (stretch) with backports (possibly newer)
+- Ansible v2.7 or newer (recommended: from backports)
- A harddrive of some size. Recommended: SSD. 200GB should be sufficient
for almost any party.
- CPU: Depends on client-load. Most semi-modern cpu's will be more than
@@ -27,9 +27,9 @@ As root:
# YOURUSER=kly
# apt-get install sudo git
# echo ${YOURUSER} ALL=NOPASSWD: ALL >> /etc/sudoers
- # echo deb http://http.debian.net/debian jessie-backports main non-free contrib > /etc/apt/sources.list.d/bp.list
+ # echo deb http://http.debian.net/debian stretch-backports main non-free contrib > /etc/apt/sources.list.d/bp.list
# apt-get update
- # apt-get install ansible/jessie-backports
+ # apt-get install ansible/stretch-backports
As ``$YOURUSER``::
diff --git a/ansible/roles/postgres/files/postgresql.conf b/ansible/roles/postgres/files/postgresql.conf
index cf6e67e..7c45ea4 100644
--- a/ansible/roles/postgres/files/postgresql.conf
+++ b/ansible/roles/postgres/files/postgresql.conf
@@ -38,15 +38,15 @@
# The default values of these variables are driven from the -D command-line
# option or PGDATA environment variable, represented here as ConfigDir.
-data_directory = '/var/lib/postgresql/9.4/main' # use data in another directory
+data_directory = '/var/lib/postgresql/9.6/main' # use data in another directory
# (change requires restart)
-hba_file = '/etc/postgresql/9.4/main/pg_hba.conf' # host-based authentication file
+hba_file = '/etc/postgresql/9.6/main/pg_hba.conf' # host-based authentication file
# (change requires restart)
-ident_file = '/etc/postgresql/9.4/main/pg_ident.conf' # ident configuration file
+ident_file = '/etc/postgresql/9.6/main/pg_ident.conf' # ident configuration file
# (change requires restart)
# If external_pid_file is not explicitly set, no extra PID file is written.
-external_pid_file = '/var/run/postgresql/9.4-main.pid' # write an extra PID file
+external_pid_file = '/var/run/postgresql/9.6-main.pid' # write an extra PID file
# (change requires restart)
@@ -450,7 +450,7 @@ log_timezone = 'UTC'
#track_functions = none # none, pl, all
#track_activity_query_size = 1024 # (change requires restart)
#update_process_title = on
-stats_temp_directory = '/var/run/postgresql/9.4-main.pg_stat_tmp'
+stats_temp_directory = '/var/run/postgresql/9.6-main.pg_stat_tmp'
# - Statistics Monitoring -
diff --git a/ansible/roles/postgres/tasks/main.yml b/ansible/roles/postgres/tasks/main.yml
index 6283a75..7aef2a6 100644
--- a/ansible/roles/postgres/tasks/main.yml
+++ b/ansible/roles/postgres/tasks/main.yml
@@ -3,15 +3,11 @@
#
- name: Install db-packages
apt:
- name: "{{ item }}"
+ name: ['postgresql', 'python-psycopg2', 'sudo']
state: present
- with_items:
- - postgresql-9.4
- - python-psycopg2
- - sudo
- name: Drop postgresql-config
copy:
- dest: /etc/postgresql/9.4/main/postgresql.conf
+ dest: /etc/postgresql/9.6/main/postgresql.conf
src: postgresql.conf
- name: Add db to hosts
lineinfile: