This role is for installing DBT-7.
Following are the requirements of this role.
- Ansible
edb_devops.edb_postgres
->setup_repo
role for setting the repository on the systems.
When executing the role via ansible these are the required variables:
- dbt7_pgdata
This variable is to be used to specify a custom PGDATA directory that DBT-7 will use separately from the default PGDATA that may be used in other playbooks. Thus do not set this to a directory that may be used elsewhere. You are not likely to use this unless you are testing specific source based installations of PostgreSQL or doing any other highly customized testing with logical or physical system configurations.
- dbt7-version
These playbooks can install any version of DBT-7 that is packaged from GitHub. See the following link for available versions: https://github.com/osdldbt/dbt7-packaging/releases
- have_tpcfile
The is a boolean use for CI purposes where we cannot redistribute TPC code thus the CI system will not attempt to run the tasks specific for setting up the TPC code.
- pg_version
Postgres Versions supported are: 10, 11, 12, 13 and 14
- tpcfile
This is the full path to the TPC-DS Tools zip file that must be downloaded by the you, the user, per TPC EULA agreement. The TPC-DS Tools can be requested at: https://www.tpc.org/tpc_documents_current_versions/current_specifications5.asp
These variables can be assigned in the pre_tasks
definition of the
section: How to include the setup_dbt7
role in your Playbook.
Content of the inventory.yml
file:
all:
children:
primary:
hosts:
pgsql1.dbt7.internal:
ansible_host: 10.1.1.3
private_ip: 10.1.1.3
dbt7: true
Content of the inventory.yml
file:
Below is an example of how to include the setup_dbt7
role:
---
- hosts: all
name: Postgres deployment playbook for DBT-3
become: yes
gather_facts: yes
any_errors_fatal: True
max_fail_percentage: 0
collections:
- edb_devops.edb_postgres
roles:
- role: setup_repo
when: "'setup_repo' in lookup('edb_devops.edb_postgres.supported_roles', wantlist=True)"
- role: install_dbserver
when: "'install_dbserver' in lookup('edb_devops.edb_postgres.supported_roles', wantlist=True)"
- role: init_dbserver
when: "'init_dbserver' in lookup('edb_devops.edb_postgres.supported_roles', wantlist=True)"
- role: setup_dbt7
when: "'setup_dbt7' in lookup('edb_devops.edb_postgres.supported_roles', wantlist=True)"
- role: tuning
when: "'tuning' in lookup('edb_devops.edb_postgres.supported_roles', wantlist=True)"
# To deploy community Postgres version 13 with the user centos
$ ansible-playbook playbook.yml \
-i inventory.yml \
-u centos \
--private-key <key.pem> \
--extra-vars="pg_version=13 pg_type=PG"
BSD
Author:
- Mark Wong
- EDB Postgres
- [email protected] www.enterprisedb.com