Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 973 Bytes

README.md

File metadata and controls

59 lines (42 loc) · 973 Bytes

Postgres

This role is written for internal use by Awesto and not designed to cover more general use-cases. You probably do not want to use it.

Requirements

None.

Role Variables

postgres_version: the version of PostgreSQL to use.

postgres_backup_retention_time: how long to keep backups in /var/local/backups. Specify the value in tmpreaper syntax. Defaults to '30d'.

postgres_databases: a list of mappings such as this:

    - postgres_databases:
      - database: mydb
        username: myuser
        password: secret

Dependencies

None.

Example Playbook

- hosts: dbservers
  roles:
  - postgres
  vars:
  - postgres_version: 9.6
  - postgres_databases:
    - database: mydb
      username: myuser
      password: secret
  - postgres_backup_retention_time: 60d

License

BSD

Author Information

René Fleschenberg [email protected]