This role will deploy PostgreSQL into an OpenShift namespace.
This role requires a namespace in which the metrics exporter should be created together with few parameters for PostgreSQL instance. See the vars
configuration section for more info.
Including an example of how to use your role (for instance, with variables passed in as parameters):
- hosts: localhost
connection: local
gather_facts: False
roles:
- role: thoth-station.postgresql
namespace: thoth-test-core
The playbook accepts the following variables:
namespace
- OpenShift project where the PostgreSQL application should be deployed to (defaults tothoth-test-core
)postgresql_memory_limit
- memory limit for the provisioned PostgreSQL instance (defaults to8Gi
)postgresql_database_service_name
- name of the service (defaults topostgresql
)postgresql_user
- database user which will be created for accessing database content (defaults tothoth
)postgresql_password
- password which will be used for the database user - if not explictly provided, its autogenerated during provisioningpostgresql_database
- name of the PostgreSQL database (defaults topostgres
)postgresql_volume_capacity
- the default volume capacity used to persist data (defaults to1Gi
)postgresql_version
- version of PostgreSQL which should be used (defaults to9.6
) - this version has to be available in OpenShift's service cataloguestorage_class_name
- the persistent volume to be claimed for postgresql (It is set to 'default' when not set.)ceph_pv_secret_name
- ceph based persistent volume's required secret name (necessary when storage class type is ceph)ceph_pv_secret
- ceph based persistent volume secret (value is present in thoth gopass) (necessary when storage class type is ceph)
GPLv3
The Thoth Station Team.