manala.postgresql

#######################################################################################################

:exclamation: DEPRECATION :exclamation:

This repository and the role associated are deprecated in favor of the Manala Ansible Collection

You will find informations on its usage on the collection repository

#######################################################################################################

Ansible Role: PostgreSQL Build Status

:exclamation: Report issues and send Pull Requests in the main Ansible Role repository :exclamation:

This role will deal with the setup of PostgreSQL.

It's part of the Manala Ansible stack but can be used as a stand alone component.

Requirements

None.

Dependencies

None.

Installation

Ansible 2+

Using ansible galaxy cli:

ansible-galaxy install manala.postgresql

Using ansible galaxy requirements file:

- src: manala.postgresql

Role Variables

Definition

Name Default Type Description
manala_postgresql_version ~ String REQUIRED - PostgreSQL version
manala_postgresql_install_packages ~ Array Dependency packages to install
manala_postgresql_install_packages_default ['postgresql-{{ manala_postgresql_version }}', 'postgresql-contrib-{{ manala_postgresql_version }}'] Array Default dependency packages to install
manala_postgresql_config [] Array Configuration parameters
manala_postgresql_config_template ~ String Configuration template path
manala_postgresql_config_hba [] Array Hba configuration parameters
manala_postgresql_config_hba_template ~ String Hba configuration template path

Configuration example

manala_postgresql_version: 9.4

PostgreSQL with custom configuration files:

manala_postgresql_config_template: config/default.dev.j2
manala_postgresql_config:
  - max_connections: 123
manala_postgresql_config_hba_template: config/hba/default.dev.j2
manala_postgresql_config_hba:
  - local   all             postgres                                peer
  - local   all             all                                     peer
  - host    all             all             127.0.0.1/32            md5
  - host    all             all             ::1/128                 md5

Example playbook

- hosts: servers
  roles:
    - { role: manala.postgresql }

Licence

MIT

Author information

Manala (http://www.manala.io/)

About

Handle postgresql

Install
ansible-galaxy install manala.postgresql
GitHub repository
License
Unknown
Downloads
5.4k
Owner
Manala is an open source project supported by the french web agency ELAO providing advanced ansible roles for website's infrastructures and far more.