Go to file
Robert Kaussow 5cc9b0abb5
continuous-integration/drone/push Build is passing Details
cleanup pipeline
2019-11-22 23:59:05 +01:00
defaults add loop control and remove no_log 2019-10-27 16:57:12 +01:00
handlers reload postgres after cert renewal 2019-08-06 16:54:09 +02:00
meta override meta author for readme 2019-11-07 09:24:51 +01:00
molecule add loop control and remove no_log 2019-10-27 16:57:12 +01:00
tasks add loop control and remove no_log 2019-10-27 16:57:12 +01:00
templates fix molecule 2019-10-26 15:09:33 +02:00
vars add variable postgres_base_dir 2019-03-20 09:26:18 +01:00
.drone.jsonnet cleanup pipeline 2019-11-22 23:59:05 +01:00
.drone.yml cleanup pipeline 2019-11-22 23:59:05 +01:00
.gitignore enable molecule tests 2019-06-10 15:05:20 +02:00
.later.yml cleanup pipeline 2019-11-22 23:59:05 +01:00
HEADER.md refactor ci pipeline 2019-10-18 13:18:43 +02:00
LICENSE Initial commit 2018-10-14 22:47:12 +02:00
README.md [SKIP CI] update readme 2019-11-07 08:29:47 +00:00

README.md

xoxys.postgres

Build Status

Setup PostgreSQL database

Table of content


Default Variables

postgres_repository_enabled

Default value

postgres_repository_enabled: false

postgres_version

Default value

postgres_version: 10

postgres_repository_filename

Default value

postgres_repository_filename: Postgresql-{{ postgres_version | regex_replace('\.')
  }}

postgres_user

Default value

postgres_user: postgres

postgres_group

Default value

postgres_group: postgres

postgres_log_destination

Default value

postgres_log_destination:
  - stderr

postgres_log_directory

Default value

postgres_log_directory: log

postgres_log_filename

Default value

postgres_log_filename: postgresql.log

postgres_log_rotation_age

Default value

postgres_log_rotation_age: 1d

postgres_log_rotation_size

Default value

postgres_log_rotation_size: 0

postgres_connection_port

Default value

postgres_connection_port: 5432

postgres_connection_addresses

Default value

postgres_connection_addresses:
  - localhost

postgres_socket_directories

Default value

postgres_socket_directories:
  - /var/run/postgresql

postgres_password_encryption

Default value

postgres_password_encryption: md5

postgres_tls_enabled

Default value

postgres_tls_enabled: false

postgres_tls_cert_filename

Default value

postgres_tls_cert_filename: mycert.pem

postgres_tls_key_filename

Default value

postgres_tls_key_filename: mykey.pem

postgres_tls_cert_source

Default value

postgres_tls_cert_source: mycert.pem

postgres_tls_key_source

Default value

postgres_tls_key_source: mykey.pem

postgres_users

Default value

postgres_users: []

Example usage

postgres_users:
  - name: jdoe required; the rest are optional
    password:  defaults to not set
    encrypted:  defaults to 'yes'
    priv:  defaults to not set
    role_attr_flags:  defaults to not set
    db:  defaults to not set
    login_host:  defaults to 'localhost'
    login_password:  defaults to not set
    login_user:  defaults to '{{ postgres_user }}'
    login_unix_socket:  defaults to 1st of postgres_socket_directories
    port:  defaults to not set
    state:  defaults to 'present'
    pam_user:  defaults to not set

postgres_users_extra

Default value

postgres_users_extra: []

postgres_dbs

Default value

postgres_dbs: []

postgres_dbs_extra

Default value

postgres_dbs_extra: []

postgres_clean_hba_file

Default value

postgres_clean_hba_file: true

postgres_hba_entries

Default value

postgres_hba_entries:
  - contype: local
    databases:
      - all
    users:
      - all
    auth_method: trust
  - contype: host
    databases:
      - all
    users:
      - all
    address: 127.0.0.1/32
    auth_method: md5
  - contype: host
    databases:
      - all
    users:
      - all
    address: ::1/128
    auth_method: md5

postgres_hba_entries_extra

Default value

postgres_hba_entries_extra: []

postgres_base_dir

Default value

postgres_base_dir: _osdefault_

postgres_db

Example usage

postgres_db:
  - name: "my_app"
    lc_collate: "en_US.UTF-8"
    lc_ctype: "en_US.UTF-8"
    encoding: "UTF-8"
    template: "template0"
    login_host: "localhost"
    login_password: "_omit_"
    login_user: "{{ postgres_user }}"
    login_unix_socket: "_omit_"
    port: "_omit_"
    owner: "_omit_"
    state: "present"

Dependencies

None.

License

MIT

Author

xoxys