1
0
Fork 0
mirror of https://github.com/geerlingguy/ansible-role-postgresql.git synced 2024-11-11 13:50:50 -05:00

More comprehensive database setup, and fix versions for Debian/Ubuntu.

This commit is contained in:
Jeff Geerling 2016-09-29 15:06:34 -05:00
parent ccbd320aac
commit 1d6f7a9e11
5 changed files with 16 additions and 3 deletions

View file

@ -35,6 +35,10 @@ TODO.
lc_collate: 'en_US.UTF-8' # optional
lc_ctype: 'en_US.UTF-8' # optional
encoding: 'UTF-8' # optional
login_host: example.com # optional, defaults to 'localhost'
login_password: supersecure # optional
login_user: admin # optional, defaults to 'postgres'
port: 5432 # optional
TODO.

View file

@ -13,6 +13,11 @@ postgresql_databases: []
# lc_collate: 'en_US.UTF-8' # optional
# lc_ctype: 'en_US.UTF-8' # optional
# encoding: 'UTF-8' # optional
# login_host: example.com # optional, defaults to 'localhost'
# login_password: supersecure # optional
# login_user: admin # optional, defaults to 'postgres'
# port: 5432 # optional
# state: present # optional, defaults to 'present'
# Users to ensure exist.
postgresql_users: []

View file

@ -5,5 +5,9 @@
lc_collate: "{{ item.lc_collate | default('en_US.UTF-8') }}"
lc_ctype: "{{ item.lc_ctype | default('en_US.UTF-8') }}"
encoding: "{{ item.encoding | default('UTF-8') }}"
state: present
login_host: "{{ item.login_host | default('localhost') }}"
login_password: "{{ item.login_password | default(omit) }}"
login_user: "{{ item.login_user | default('postgres') }}"
port: "{{ item.port | default('5432') }}"
state: "{{ item.state | default('present') }}"
with_items: "{{ postgresql_databases }}"

View file

@ -1,5 +1,5 @@
---
__postgresql_version: "9.5"
__postgresql_version: "9.4"
__postgresql_bin_path: "/usr/lib/postgresql/{{ __postgresql_version }}/bin"
__postgresql_daemon: postgresql
__postgresql_packages:

View file

@ -1,5 +1,5 @@
---
__postgresql_version: "9.5"
__postgresql_version: "9.3"
__postgresql_bin_path: "/usr/lib/postgresql/{{ __postgresql_version }}/bin"
__postgresql_daemon: postgresql
__postgresql_packages: