Files
JFrog-Cloud-Installers/Ansible/ansible_collections/jfrog/installers/roles/postgres/README.md

927 B

postgres

The postgres role will install Postgresql software and configure a database and user to support an Artifactory or Xray server.

Role Variables

  • db_users: This is a list of database users to create. eg. db_users: - { db_user: "artifactory", db_password: "Art1fAct0ry" }
  • dbs: This is the database to create. eg. dbs: - { db_name: "artifactory", db_owner: "artifactory" }

By default, the pg_hba.conf client authentication file is configured for open access for development purposes through the postgres_allowed_hosts variable:

postgres_allowed_hosts:
  - { type: "host", database: "all", user: "all", address: "0.0.0.0/0", method: "trust"}

THIS SHOULD NOT BE USED FOR PRODUCTION.

Update this variable to only allow access from Artifactory and Xray.

Example Playbook

---
- hosts: database
  roles:
    - postgres